<윈도우 프로젝트 내용 정리>
- APIENTRY wWinMain(_In_HINSTANCE : Win 메인 함수의 시작
- LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING) : 문자열을 초기화
- LoadStringW(hInstance, IDC_SYENGINE, szWindowClass, MAX_LOADSTRING); : 변수 입력
- MyRegisterClass(hInstance); : MyRegisterClass 함수에 hinstance 변수 입력
- ATOM MyRegisterClass(HINSTANCE hInstance) : 선언된 ATOM 클래스로 이동
- WNDCLASSEXW wcex : 구조체 정의
- wcex.cbSize = sizeof(WNDCLASSEX) : 구조체 크기를 정의
- wcex.style = CS_HREDRAW | CS_VREDRAW : 윈도우가 출력되는 형태 정의
- wcex.lpfnWndProc = WndProc : 메시지 처리 함수 정의
- wcex.cbClsExtra = 0 : 클래스 여분 메모리 크기 정의
- wcex.cbWndExtra = 0 : 윈도우 여분 메모리 크기 정의
- wcex.hInstance = hInstance;
- wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_SYENGINE)) : 아이콘 정의
- wcex.hCursor = LoadCursor(nullptr, IDC_ARROW) : 커서 정의
- wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1) : 배경색 정의
- wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_SYENGINE) : 메뉴 이름 정의
- wcex.lpszClassName = szWindowClass : 윈도우 클래스 이름 정의
- wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)) : 작은 아이콘 등록
- return RegisterClassExW(&wcex) : ResisterClassExW함수에 wcex의 값을 입력