replyreply
June 12th, 2009, 03:39 PM
hi
My problem is in WM_NCPAINT message, i want to determine if the window uses custom title bar (owner drawn), so i started spy++ and processed it Message Proc, now according to WM_NCPAINT documentation ( http://msdn.microsoft.com/en-us/library/dd145212(VS.85).aspx ) that if an application processes this message (which means painted the frames) it mush returns zero, but the problem is the return of WM_NCPAINT is always zero (since that even if the user didn't return zero, the message proc will return NULL)
so is there's solution for this or another way to determine owner drawn windows ?
My problem is in WM_NCPAINT message, i want to determine if the window uses custom title bar (owner drawn), so i started spy++ and processed it Message Proc, now according to WM_NCPAINT documentation ( http://msdn.microsoft.com/en-us/library/dd145212(VS.85).aspx ) that if an application processes this message (which means painted the frames) it mush returns zero, but the problem is the return of WM_NCPAINT is always zero (since that even if the user didn't return zero, the message proc will return NULL)
so is there's solution for this or another way to determine owner drawn windows ?