Hi! I'm developing an MFC application and I've recently been searching for a good method to remove the icon from a Windows title bar, but retain the close button. The two obvious candidate solutions are turning off the system menu style or using the tool window style, but I would prefer not to disable the system menu or use the shrunken tool window title bar. Many MFC applications have this functionality, so I wonder: am I missing some standard way of doing this? Thanks for any suggestions.
views:
1106answers:
5
A:
what about getting rid of the system menu and then putting it back in another place yourseld (say next to the close button etc.)?
Keng
2008-08-13 17:12:52
A:
Aidan Ryan
2008-08-14 00:49:13
+1
A:
You can use WM_NCRBUTTONDOWN to detect if the user has right-clicked on your caption and then bring up the system menu.
Andrew Grant
2008-08-14 01:28:13