Discussion:
one small doubt..
(too old to reply)
Sree
2009-09-16 10:39:03 UTC
Permalink
Hi Friends,
i am using windows xp (sp2) operating system.

when i used spy++ for notepad and wordpad and when i select menu items it is
showing WM_MENUSELECT msg and if i clicked menu item it showing WM_COMMAND.



but when i used spy++ for sql server 2005 and vs2005 and when i select menu
items it is not showing any messages( i mean WM_MENUSELECT is not showing)
what is the problem...is there any new message generate for these appln when
i select menu item?...

i really confused with this...i want to get menu text...i did for notepad
and wordpad(using WM_MENUSELECT). then how can i achive the same for
these(VS2005,SQL2005).is not possible for this? if possible tell me which msg
i have to trap?


Thanks in advance
--
--------------------------------------------
At last i learned something for today...:)
Alex Blekhman
2009-09-16 13:35:44 UTC
Permalink
Post by Sree
but when i used spy++ for sql server 2005 and vs2005 and when i
select menu items it is not showing any messages( i mean
WM_MENUSELECT is not showing) what is the problem...is there any
new message generate for these appln when i select menu item?...
It is because VS2005 and MS SQL Server Studio don't use regular
Windows menus like Notepad or WordPad. VS2005 and many other
Office-like applications use their own special windows in order to
implement menus.

Alex
Sree
2009-09-16 14:32:01 UTC
Permalink
Thanks for your reply alex,
then is there any way to get menu text that are clicked by the user(VS2005
or office ). is it possible with hooking ( i am working on vc++6.0). or is
there any other way?


Thanks in advance...
--
--------------------------------------------
At last i learned something for today...:)
Post by Alex Blekhman
Post by Sree
but when i used spy++ for sql server 2005 and vs2005 and when i
select menu items it is not showing any messages( i mean
WM_MENUSELECT is not showing) what is the problem...is there any
new message generate for these appln when i select menu item?...
It is because VS2005 and MS SQL Server Studio don't use regular
Windows menus like Notepad or WordPad. VS2005 and many other
Office-like applications use their own special windows in order to
implement menus.
Alex
Dinesh Venugopalan
2009-09-17 04:16:32 UTC
Permalink
You can use MSAA Apis for this.

More information at
http://msdn.microsoft.com/en-us/library/dd317990(VS.85).aspx

Hope this helps

Dinesh
Post by Sree
Thanks for your reply alex,
then is there any way to get menu text that are clicked by the user(VS2005
or office ). is it possible with hooking ( i am working on vc++6.0). or is
there any other way?
Thanks in advance...
--
--------------------------------------------
At last i learned something for today...:)
Post by Alex Blekhman
Post by Sree
but when i used spy++ for sql server 2005 and vs2005 and when i
select menu items it is not showing any messages( i mean
WM_MENUSELECT is not showing) what is the problem...is there any
new message generate for these appln when i select menu item?...
It is because VS2005 and MS SQL Server Studio don't use regular
Windows menus like Notepad or WordPad. VS2005 and many other
Office-like applications use their own special windows in order to
implement menus.
Alex
Loading...