![]() |
doubt in handling OnNcPaint( )
i have tied to a rectangle in caption bar of window but this doesn't work .am i doing any mistake.plz correct me .
Code: MFC
|
Re: doubt in handling OnNcPaint( )
Your mixing the CDC class with HDC handles and that won't work by forcing casts. Try replacing your first line with:
Code:
HDC dc = GetWindowDC()->m_hDC;Code:
::ReleaseDC(m_hWnd,dc); |
Re: doubt in handling OnNcPaint( )
thank u .its working.:)
|
| All times are GMT +5.5. The time now is 18:07. |