 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
andrewmac@gmail.com Guest
|
Posted: Wed Nov 09, 2005 8:02 pm Post subject: Open another applications popup menu. |
|
|
Hello folks. I am trying to open the system menu of other applications
( like right clicking on a taskbar entry - that menu ) at a position of
my choice.
I have it working while my own application is the target, but I need to
do it for other applications as well, when I try it the menu never
shows up.
The code I have tryed ( and different variations ) is:
hMenuHandle := GetSystemMenu( Window.Handle, False );
TrackPopupMenu( hMenuHandle, TPM_LEFTALIGN, 25, 25, 0, Window.Handle,
nil );
Window.Handle is my own variable, and is the hwnd of the window I want
to get the system menu of. I checked hMenuHandle and it has a value, so
I'm guessing that part works.
The only other option I can think to get this working is using
GetMenuItem* to rebuild the menu, which I do not want to do unless I
absolutely have to.
Thank You.
|
|
| Back to top |
|
 |
Riki Wiki Google Guest
|
Posted: Fri Nov 11, 2005 9:58 pm Post subject: Re: Open another applications popup menu. |
|
|
Hoi Andrew
You need to repost your question on the Borland news server to make
everybody see it and possibly answer your question. Further, this
newsgroup do not officially exist.
Take a look here:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|