Exemplo n.º 1
0
int BKMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if ( CFrameWnd::OnCreate( lpCreateStruct ) == -1 ) return -1;

	initDirectDraw();

	timer = SetTimer( timer_ID, 20, NULL );

	setDefaultFontMenu();
	setDefaultRomMenu();

	canIteration = true;

	return 0;
}
Exemplo n.º 2
0
bool DXGame::initDirectX(HINSTANCE hInstance){
	if(!initDirectDraw()) return FALSE;
	//if(!initDirectSound()) return FALSE;
	if(!initDirectInput(hInstance)) return FALSE;
	return TRUE;
}