Martin Horst
May 17th, 1999, 12:19 PM
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::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_NCPAINT :
{
NcPaint();
return 0;
}
}
return CDialog::DefWindowProc(message, wParam, lParam);
}
The NcPaint() function does the drawing stuff.
Hope someone can help me.
Thanks in advance
Martin Horst
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::DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_NCPAINT :
{
NcPaint();
return 0;
}
}
return CDialog::DefWindowProc(message, wParam, lParam);
}
The NcPaint() function does the drawing stuff.
Hope someone can help me.
Thanks in advance
Martin Horst