Solved

WM_NCPAINT in a CDialog?

Posted on 1997-12-27
2
1,052 Views
Last Modified: 2013-11-20
How can I succesfully map an OnNcPaint handler to a CDialog class? All attempts at using ON_MESSAGE(WM_NCPAINT,??) and with classwizard have failed. Classwizard does not have an entry for OnNcPaint in a CDialog.

Thanks
0
Comment
Question by:dcramer
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 1313137
You won't be able to use ClassWizard because it won't let you do that. However, you can use

  ON_WM_NCPAINT()

in your message map.

Then have a function call OnNcPaint() in your dialog class.


0
 

Author Comment

by:dcramer
ID: 1313138
Thanks.. That worked great...
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Pressing cancel button with C# UI Automation 3 40
NotAlone Challenge 20 70
wordcount challenge 11 74
Change to event 1 73
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now