For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > October 2005 > Tracking menu rectangles









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Tracking menu rectangles
David Olsson

2005-09-28, 7:02 pm

Hello!

I would like to be able to track the rectangles on the display a popup
menu occupies. I've looked at the WM_ENTERMENULOOP and WM_EXITMENULOOP
but they provide no information on the popup menu's geometry. Is this
information accessible?

Thanks for any tips!

Best regards
David Olsson
Ilya Manin

2005-10-23, 3:59 am

You can try to find window with "MNU" class name and get its window
position.
Ex.
HWND hMenu = FindWindow(_T("MNU"), NULL);
RECT rtMenu;
GetWindowRect(hMenu, &rtMenu);


"David Olsson" <david.olsson@vimio.com> wrote in message
news:eEutqlDxFHA.720@TK2MSFTNGP10.phx.gbl...
> Hello!
>
> I would like to be able to track the rectangles on the display a popup
> menu occupies. I've looked at the WM_ENTERMENULOOP and WM_EXITMENULOOP but
> they provide no information on the popup menu's geometry. Is this
> information accessible?
>
> Thanks for any tips!
>
> Best regards
> David Olsson



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com