pT->DrawPaneTitle(dc.m_hDC);  if(m_wndClient.m_hWnd == NULL) pT->DrawPane(dc.m_hDC);
if(wParam != NULL) { pT->DoEraseBackground((HDC)wParam); pT->DoPaint((HDC)wParam); } else { CPaintDC dc(m_hWnd); pT->DoEraseBackground(dc.m_hDC); pT->DoPaint(dc.m_hDC); }
	LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)	{		CPaintDC dc(m_hWnd);		T* pT = static_cast<T*>(this);		pT->DrawPaneTitle(dc.m_hDC);		if(m_wndClient.m_hWnd == NULL)   // no client window			pT->DrawPane(dc.m_hDC);		return 0;	}