|
-
May 17th, 1999, 12:19 PM
#1
SUBJECT: NCPAINT doesn't work proberly
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
-
May 18th, 1999, 11:44 PM
#2
Re: SUBJECT: NCPAINT doesn't work proberly
hi,
you have to overide other messages which will be generated when you move
dialog box.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|