troubleshooting Question

Adding OnPaint to a dialog class in WTL

Avatar of yossikally
yossikally asked on
System Programming
11 Comments1 Solution2570 ViewsLast Modified:
The class is declared as
class CMainDlg : public CDialogImpl<CMainDlg>
I want to handle WM_PAINT at the dialog, but I can't have the parent version run as well if I just put the handler in the message map, so the controls don't get drawn.  Unlike MFC where I call CDialog::OnPaint,
If I call CDialogImpl<CMainDlg>::OnPaint, the compiler dosn't like it at all.

10x
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros