Hi,

I'm writing a new dialog class which changes the
visible appearence. Therefore I overwrote the
DefWindowProc to handle the WM_NCPAINT message
by myself. The problem now is that Windows
sometimes do it's own drawing stuff and don't
call my new draw function. This happens when I
move the window or when the window gets inactive.

The program code looks like that:

LRESULT CNCTestDlg:efWindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_NCPAINT :
{
NcPaint();
return 0;
}
}

return CDialog:efWindowProc(message, wParam, lParam);
}

The NcPaint() function does the drawing stuff.


Hope someone can help me.

Thanks in advance

Martin Horst