[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1156
  • Last Modified:

WM_NCPAINT in a CDialog?

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
dcramer
Asked:
dcramer
1 Solution
 
Tommy HuiEngineerCommented:
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
 
dcramerAuthor Commented:
Thanks.. That worked great...
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now