BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Open another applications popup menu.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
andrewmac@gmail.com
Guest





PostPosted: Wed Nov 09, 2005 8:02 pm    Post subject: Open another applications popup menu. Reply with quote




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





PostPosted: Fri Nov 11, 2005 9:58 pm    Post subject: Re: Open another applications popup menu. Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.