PolycodeTemplate.cpp 545 B

123456789101112131415161718192021
  1. #include <Polycode.h>
  2. #include "PolycodeTemplateApp.h"
  3. #include "PolycodeView.h"
  4. #include "windows.h"
  5. using namespace Polycode;
  6. int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
  7. {
  8. PolycodeView *view = new PolycodeView(hInstance, nCmdShow, L"Polycode Template");
  9. PolycodeTemplateApp *app = new PolycodeTemplateApp(view);
  10. MSG Msg;
  11. do {
  12. while (PeekMessage(&Msg, NULL, 0, 0, PM_REMOVE)) {
  13. TranslateMessage(&Msg);
  14. DispatchMessage(&Msg);
  15. }
  16. } while(app->Update());
  17. return Msg.wParam;
  18. }