Ejemplo n.º 1
0
void CPPPropertySheet::OnPaletteChanged(CWnd* pFocusWnd)
{
	ASSERT(pFocusWnd != NULL);

	HWND hDlg = GetSafeHwnd();
 	HWND hwndPaletteChange = pFocusWnd->GetSafeHwnd();
	if (IsOurWindow(hwndPaletteChange))
		FORWARD_WM_PALETTECHANGED(hDlg, hwndPaletteChange, SendMessageToChildren);
}
Ejemplo n.º 2
0
afx_msg void CInPlaceFrame::OnPaletteChanged(CWnd* pFocusWnd)
{
	if (pFocusWnd)
	{
		if (IsOurWindow(pFocusWnd->GetSafeHwnd()))
		{
			FORWARD_WM_PALETTECHANGED(GetSafeHwnd(), 
				pFocusWnd->GetSafeHwnd(),SendMessageToChildren);
		}
	}

/****************************************
UNDER CONSTRUCTION .............
	CServerDoc *pDoc = (CServerDoc*)GetActiveDocument();
	ASSERT(pDoc);
	if (pDoc)
	{
		CServerView *pView = pDoc->GetActiveView();
		ASSERT(pView);
		if (pView)
		{
			if (pFocusWnd != pView)
			{
				if (lpBltScreen->hPal)
				{
					CDC *pDC = pView->GetDC();
					pDC->SelectPalette(CPalette::FromHandle(lpBltScreen->hPal), TRUE);
					pView->ReleaseDC(pDC);
				}
			}
			else
			{
				FORWARD_WM_PALETTECHANGED(GetSafeHwnd(), 
					pFocusWnd->GetSafeHwnd(),SendMessageToChildren);
			}
		}
	}
****************************************/
}
Ejemplo n.º 3
0
void Dialog_OnPaletteChanged(HWND hDlg, HWND hwndPaletteChange)
/***********************************************************************/
{
if (IsOurWindow(hwndPaletteChange))
	FORWARD_WM_PALETTECHANGED(hDlg, hwndPaletteChange, SendMessageToChildren);
}