Robert Zak
Robert Zak

Reputation: 1

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 dialog size increases in couple of pixels.

I need to keep the dialog in original size and shape. Any suggestions please ?

Upvotes: 0

Views: 133

Answers (0)

Related Questions