|
#include "stdafx.h"
#include "CeDialog.h"
#include "CeModule.h"
/*static*/
CeAppModule* CeAppModule::m_pApp = NULL;
/*virtual*/
int CeAppModule::OnRun()
{
MSG msg;
while (::GetMessage(&msg, NULL, 0, 0))
{
// translate any window menu accelerator commands
if (::TranslateAccelerator(msg.hwnd, m_hAccel, &msg))
continue;
// translate for modal/child dialogs
if (CeDialog::IsDialogMsg(&msg))
continue;
// handle the message
::TranslateMessage(&msg);
::DispatchMessage(&msg);
}
return (msg.wParam);
}
/*virtual*/
int CeAppModule::OnInitInstance(HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
return 0;
}
/*virtual*/
int CeAppModule::OnExitInstance()
{
return 0;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.