November 1st, 2003, 08:38 AM
With this code:
I can delete the items from a menu of an any application.
HMENU MAINMENU= GetMenu(Handle);
But how can I simulate the click on an item? For example I want to show the save as dialog of Notepad. I know that there is a way to do this with WM_MENUSELECT but I do not know how to use it.
Last edited by SirX; November 1st, 2003 at 01:09 PM.
November 1st, 2003, 01:12 PM
Well I found a way to open the "open file"-dialog. Now I have to pass a path into the "path-editbox" and after this I musst press the OK button. Does anybody knows a way how to do this? The only thing I have is the handle to the mainform.