window caption
-
I am trying to create a custom window caption for SDI application.I have taken help from http://www.codeproject.com/gdi/customcaption.asp The project on the above link use WM_NCPAINT,WM_NCACTIVATE and WM_SETTEXT handlers in the window procedure to draw and paint the caption bar.In this project whole caption bar has been customized. In my application,I don't want to draw and paint minimize,maximize and close buttons and let them be like the system's created default buttons.Actually these default buttons are getting drawn and painted but are not visible when the mainframe window gets activated.When I move the mouse on that region, then only those buttons are visible and work fine on clicking them.So, Can you please suggest me why those buttons may not be getting visible when the mainframe window gets activated?
With Regards Neeraj Sinha
-
I am trying to create a custom window caption for SDI application.I have taken help from http://www.codeproject.com/gdi/customcaption.asp The project on the above link use WM_NCPAINT,WM_NCACTIVATE and WM_SETTEXT handlers in the window procedure to draw and paint the caption bar.In this project whole caption bar has been customized. In my application,I don't want to draw and paint minimize,maximize and close buttons and let them be like the system's created default buttons.Actually these default buttons are getting drawn and painted but are not visible when the mainframe window gets activated.When I move the mouse on that region, then only those buttons are visible and work fine on clicking them.So, Can you please suggest me why those buttons may not be getting visible when the mainframe window gets activated?
With Regards Neeraj Sinha
Have you checked out if button->ShowWindow (TRUE) works? It would help if you post a bit of your code.
Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?