System menu disabling
-
Hi, I am developing a SDI app. I have disabled the System menu (Windows menu) and I display my own popup menu when the user clicks on the Icon on the title bar. But when the App is minimizid, when the user clicks on the App in the taskbar, my custom menu doesn't show up. Is there any way of popping up my own menu when the user clicks on the minimized app? Thanks in advance, Narahari Upadhya
-
Hi, I am developing a SDI app. I have disabled the System menu (Windows menu) and I display my own popup menu when the user clicks on the Icon on the title bar. But when the App is minimizid, when the user clicks on the App in the taskbar, my custom menu doesn't show up. Is there any way of popping up my own menu when the user clicks on the minimized app? Thanks in advance, Narahari Upadhya
How are you getting your menu to pop up? It sounds as if you're using WM_NCLBUTTONxxx, and I guess when it's in the task bar you don't get this kind of message - am I close? If this is correct, consider using GetSystemMenu(FALSE) and *modifying* that menu to be what you want. I would suggest that it's 'controversial' to meddle with the standard user interface if you can find other ways to achieve your goal. It may be a simple case of disabling all standard items and adding your items to the end...
-
How are you getting your menu to pop up? It sounds as if you're using WM_NCLBUTTONxxx, and I guess when it's in the task bar you don't get this kind of message - am I close? If this is correct, consider using GetSystemMenu(FALSE) and *modifying* that menu to be what you want. I would suggest that it's 'controversial' to meddle with the standard user interface if you can find other ways to achieve your goal. It may be a simple case of disabling all standard items and adding your items to the end...
Thats right. I am handling WM_NCLBUTTONXXX to popup my menu. The reason I don't want to use system menu at all is that I want to remove the default close, minimize and maximize buttons and add my own custom buttons there and hence I have to remove the system menu and show my own menu rather than modifying the system menu.
-
Thats right. I am handling WM_NCLBUTTONXXX to popup my menu. The reason I don't want to use system menu at all is that I want to remove the default close, minimize and maximize buttons and add my own custom buttons there and hence I have to remove the system menu and show my own menu rather than modifying the system menu.
I tried manipulating the system menu to add my own menu items.. it works perfectly fine except that eventhough I have Removed the system minimize, maximize and close buttons and drawing my own buttons on top of them, Whenever I click on the title bar, the system close box appears everytime. I heard its a XP related issue. Is there any way of getting rid of the close button? Thanks, Narahari Upadhya