Pushbutton drop down menu problem

forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
BSB

Pushbutton drop down menu problem

Post by BSB » 13 Aug 2007, 14:03

 Posted by:  BSB 

Hi folks,

I found the attached sample application from the forum where clicking a
pushbutton will display a dropdown menu. The issue is when the dropdown menu
is displayed, clicking Windows Button + M to minimize the application
displays the menu on the desktop. Please see the attached images.

Is there any solution for this ?

Thanks in advance.
Seshu.

You do not have the required permissions to view the files attached to this post.

Gerhard Achrainer

Re: Pushbutton drop down menu problem

Post by Gerhard Achrainer » 13 Aug 2007, 14:34

 Posted by:  g.achrainer 

Hi Seshu,

you might want to try "EndMenu" from "user32.dll". When calling it in
response to "WM_WINDOWPOSCHANGING", it will suppress an open menu as shown
in your screens.

Regards,

Gerhard

BSB

Re: Pushbutton drop down menu problem

Post by BSB » 13 Aug 2007, 16:01

 Posted by:  BSB 

Gerhard,

It works. Thanks a lot.

Seshu.

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests