Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,i am working on a project and i want to pop up file menu of notepad
using SendMessage
IT'S VERY URGENT PLEASE HELP.
Posted
Updated 7-Sep-11 0:18am
v2

You can SendMessage the WM_COMMAND message with 'File' menu item ID or else send the 'Alt' + 'F' key sequence to the Notepad Window.

I think you should have tried GOOGLE before posting the question. :)
 
Share this answer
 
v2
In Windows 7, you can use the Automation API[^]

In Windows XP, you can use FindWindow[^] to get a handle to the Notepad window, then (as the other solution suggests), SendMessage( notepad_hwnd, ... );

See also: Restating the obvious about the WM_COMMAND message[^]
 
Share this answer
 
thank you all.
But I want to click on file menu and then select menu item from it
this all by using sendmessage or postmessage.
 
Share this answer
 
Comments
Paul Heil 10-Nov-11 16:28pm    
Both solutions posted use SendMessage or PostMessage.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900