<윈도우 프로젝트 내용 정리>

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