9 #define MAX_LOADSTRING 100 17 int APIENTRY
wWinMain(_In_ HINSTANCE hInstance,
18 _In_opt_ HINSTANCE hPrevInstance,
19 _In_ LPWSTR lpCmdLine,
23 UNREFERENCED_PARAMETER(hPrevInstance);
24 UNREFERENCED_PARAMETER(lpCmdLine);
37 HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(
IDC_LEGO));
42 while (GetMessage(&msg,
nullptr, 0, 0))
44 if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg))
46 TranslateMessage(&msg);
47 DispatchMessage(&msg);
51 return (
int) msg.wParam;
65 HBRUSH windowColor = CreateSolidBrush(RGB(97, 115, 177));
67 wcex.cbSize =
sizeof(WNDCLASSEX);
69 wcex.style = CS_HREDRAW | CS_VREDRAW;
73 wcex.hInstance = hInstance;
74 wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(
IDI_LEGO));
75 wcex.hCursor = LoadCursor(
nullptr, IDC_ARROW);
76 wcex.hbrBackground = windowColor;
77 wcex.lpszMenuName = MAKEINTRESOURCEW(
IDC_LEGO);
79 wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(
IDI_SMALL));
81 SetCursor(LoadCursor(
nullptr, IDC_ARROW));
83 return RegisterClassExW(&wcex);
96 CW_USEDEFAULT, 0, 1134, 796,
nullptr,
nullptr, hInstance,
nullptr);
104 ShowWindow(hWnd, nCmdShow);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM)
Application * application
WCHAR szTitle[MAX_LOADSTRING]
int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)
WCHAR szWindowClass[MAX_LOADSTRING]
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
ATOM MyRegisterClass(HINSTANCE hInstance)