Click here to Skip to main content
15,918,471 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello all. This is my first question asked here on The Code Project, and I am looking for a solution to a pretty frustrating issue. I have successfully hooked Windows Messages to create my own custom Non Client area. It handles all mouse events, but when I click on any of the custom caption buttons, it draws the regular themed caption button corresponding with the button pushed (Close, Restore, etc.) It also won't handle the caption button's corresponding event unless the mouse is in both, the custom caption button's rectangle, and the original caption button's rectangle.


The form loaded without pressing any caption buttons: http://i43.tinypic.com/i59cad.jpg[^]

The form when the close button was pressed: http://i43.tinypic.com/23jfxjk.jpg[^]
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900