Guest User

Untitled

a guest
Nov 29th, 2021
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #include "wxx_wincore.h"
  2.  
  3. // Note:
  4. // Add the Win32++\include directory to project's additional include directories
  5.  
  6.  
  7. // A class that inherits from CWnd. It is used to create the window.
  8. class CMyWindow : public CWnd {
  9. public:
  10. CMyWindow() {}
  11. virtual void OnDestroy() { PostQuitMessage(0); } // Ends the program
  12. virtual ~CMyWindow() {}
  13. };
  14.  
  15.  
  16. int APIENTRY WinMain(HINSTANCE, HINSTANCE, LPSTR, int) {
  17. // Start Win32++
  18. CWinApp MyApp;
  19.  
  20. // Create a CMyWindow object
  21. CMyWindow MyWindow;
  22.  
  23. // Create (and display) the window
  24. MyWindow.Create();
  25.  
  26. // Run the application's message loop
  27. return MyApp.Run();
  28. }
Advertisement
Add Comment
Please, Sign In to add comment