.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 1st, 2003, 08:38 AM
SirX SirX is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 64 SirX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 30 sec
Reputation Power: 6
simulate MenuClick

With this code:
Code:
HMENU MAINMENU= GetMenu(Handle);
HMENU SubMenu1=GetSubMenu(MAINMENU,0);
HMENU SubMenu2=GetSubMenu(SubMenu1,0);
DeleteMenu(SubMenu2,2,MF_BYPOSITION);


I can delete the items from a menu of an any application.
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.

Reply With Quote
  #2  
Old November 1st, 2003, 01:12 PM
SirX SirX is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 64 SirX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 30 sec
Reputation Power: 6
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > simulate MenuClick


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT