|
@@ -4,7 +4,7 @@ LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); |
|
|
|
|
|
|
|
|
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, |
|
|
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, |
|
|
PWSTR pCmdLine, int nCmdShow) { |
|
|
PWSTR pCmdLine, int nCmdShow) { |
|
|
|
|
|
|
|
|
|
|
|
LPCWSTR windowName = L"Window"; |
|
|
MSG msg; |
|
|
MSG msg; |
|
|
HWND hwnd; |
|
|
HWND hwnd; |
|
|
WNDCLASSW wc = { |
|
|
WNDCLASSW wc = { |
|
@@ -21,7 +21,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
RegisterClassW(&wc); |
|
|
RegisterClassW(&wc); |
|
|
hwnd = CreateWindowW(wc.lpszClassName, L"Window", |
|
|
|
|
|
|
|
|
hwnd = CreateWindowW(wc.lpszClassName, windowName, |
|
|
WS_OVERLAPPEDWINDOW | WS_VISIBLE, |
|
|
WS_OVERLAPPEDWINDOW | WS_VISIBLE, |
|
|
100, 100, 350, 250, NULL, NULL, hInstance, NULL); |
|
|
100, 100, 350, 250, NULL, NULL, hInstance, NULL); |
|
|
|
|
|
|
|
|