Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "resource.h"
- #include "windows.h"
- #include "winuser.h"
- LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
- {
- if(msg == WM_CLOSE)
- {
- ExitProcess(0);
- return 0;
- }
- }
- int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
- {
- DialogBoxParam(hInstance,MAKEINTRESOURCE(IDD_MAINFORM), 0,0,0);
- MSG message;
- while(GetMessage(&message, NULL, 0, 0))
- {
- TranslateMessage(&message);
- DispatchMessage(&message);
- }
- return message.wParam;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement