Questions tagged [onncpaint]
3 questions
4
votes
4 answers
What message is processed during the process of minimize or maximize of a window?
I want to self-draw the title bar of a window with MFC. So I override the OnNcPaint() method of CMainFrame. Everything seems alright, until I click the item in the control menu to make it minimize or maximize. During the minizing or maximizing…

user26404
- 1,371
- 4
- 27
- 38
3
votes
1 answer
Does overriding OnNcPaint() affect the painting of the client area of a window?
I want to change the appearance of a window's caption bar, so I decided to override the OnNcPaint() method of CMainFrame. But when I did this, I found a problem. If there is another window covering my window, and I drag the window quickly, the…

user26404
- 1,371
- 4
- 27
- 38
0
votes
0 answers
CDialogEx:: OnNCPaint() increases the size of dialog window
I need to draw custom title bar, using Win10, VS2017, MFC, SDK10.0.16299.0.
When MyDialog::OnNcPaint() does not call CDialogEx::OnNcPaint(), the dialog frame is drawn incorrectly - the top corners are rounded while bottom corners are sharp, and…

Robert Zak
- 1
- 2