示例#1
0
/*----------------------------------------------------------------------------------------------
	Initialize the application.
----------------------------------------------------------------------------------------------*/
void HwApp::Init(void)
{
	SuperClass::Init();

	AfWnd::RegisterClass("HwMainWnd", 0, 0, 0, COLOR_3DFACE, (int)kridHelloWorldIcon);

	// Open initial window
	WndCreateStruct wcs;
	wcs.InitMain("HwMainWnd");
	HwMainWndPtr qwnd;
	qwnd.Create();

	qwnd->CreateHwnd(wcs);
	qwnd->Show(m_nShow);
}
示例#2
0
/*----------------------------------------------------------------------------------------------
	Initialize the application.
----------------------------------------------------------------------------------------------*/
void DcApp::Init(void)
{
	SuperClass::Init();

	AfWnd::RegisterClass("DcMainWnd", 0, 0, 0, COLOR_3DFACE, (int)kridDllClientIcon);
	AfWnd::RegisterClass("DcClientWnd", kfwcsHorzRedraw | kfwcsVertRedraw, (int)IDC_ARROW, 0,
		COLOR_WINDOW);

	// Open initial window
	WndCreateStruct wcs;
	wcs.InitMain("DcMainWnd");
	DcMainWndPtr qwnd;
	qwnd.Create();

	qwnd->CreateHwnd(wcs);
	qwnd->Show(m_nShow);
}