Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
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;
}