void CElcSkinWnd::OnNcPaint() { if (m_bEnableSkin) NcPaint(); else Default(); }
void CEnEdit::OnNcPaint() { if (m_bFirstShow) { m_bFirstShow = FALSE; SetWindowPos(NULL, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOREDRAW); } Default(); // draw the icon and browse button CWindowDC dc(this); CRect rWindow; GetWindowRect(rWindow); NcPaint(&dc, rWindow); }