Advertisement
Guest User

Untitled

a guest
May 26th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include "resource.h"
  2. #include "windows.h"
  3. #include "winuser.h"
  4.  
  5. LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
  6. {
  7. if(msg == WM_CLOSE)
  8. {
  9. ExitProcess(0);
  10. return 0;
  11. }
  12. }
  13.  
  14. int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
  15. {
  16. DialogBoxParam(hInstance,MAKEINTRESOURCE(IDD_MAINFORM), 0,0,0);
  17. MSG message;
  18. while(GetMessage(&message, NULL, 0, 0))
  19. {
  20. TranslateMessage(&message);
  21. DispatchMessage(&message);
  22. }
  23. return message.wParam;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement