int JApp::Run() { if(!InitWindow()) return 0; MSG msg; while (GetMessage(&msg, NULL, 0, 0)) { if(PreProcMsg(&msg)) continue; TranslateMessage(&msg); DispatchMessage(&msg); } return (int) msg.wParam; }
int TApp::Run(void) { MSG msg; InitApp(); InitWindow(); while (::GetMessage(&msg, NULL, 0, 0)) { if (PreProcMsg(&msg)) continue; ::TranslateMessage(&msg); ::DispatchMessage(&msg); } return (int)msg.wParam; }