int CALLBACK PropSheetCallback(HWND hWnd, UINT message, LPARAM lParam)
{
	extern int CALLBACK AfxPropSheetCallback(HWND, UINT message, LPARAM lParam);
	int nRes = AfxPropSheetCallback(hWnd, message, lParam);
	switch (message)
	{
	case PSCB_PRECREATE:
		((LPDLGTEMPLATE)lParam)->style |= (DS_3DLOOK | DS_SETFONT | WS_MAXIMIZEBOX | WS_MINIMIZEBOX
		| WS_THICKFRAME | WS_SYSMENU | WS_POPUP | WS_VISIBLE | WS_CAPTION);
		break;
	}
   return nRes;
}
Esempio n. 2
0
int CALLBACK PropSheetCallback(HWND hWnd, UINT message, LPARAM lParam)
{
	extern int CALLBACK AfxPropSheetCallback(HWND, UINT message, LPARAM lParam);

	int res= AfxPropSheetCallback(hWnd, message, lParam);

//TRACE(L"callbaack msg: %d\n", message);

	switch (message)
	{
	case PSCB_PRECREATE:
		// Set our own window styles
		reinterpret_cast<DLGTEMPLATE*>(lParam)->style |= DS_3DLOOK | DS_SETFONT | WS_THICKFRAME | WS_SYSMENU | WS_POPUP | WS_VISIBLE | WS_CAPTION;
		break;

	case PSCB_INITIALIZED:
		break;
	}

	return res;
}