Title: RE: [msvc] CPoint from menu item

Yes, that's the call I was looking for! Thanks.
-Jean

-----Original Message-----
From: Ehsan Akhgari [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 10, 2003 6:41 AM
To: [EMAIL PROTECTED]
Subject: RE: [msvc] CPoint from menu item


> Given only the resource ID of a drop-down menu item, can I figure out
> the CRect of that menu item, or even the CRect of its parent menu?
> Actually I'm trying to get the CPoint of the mouse click on the menu,
> but the associated CRect would be close enough.

If you're inside a message handler, you can call GetMessagePos( ) which
returns the mouse position for the latest message.  Of course it might not
help, since menu clicks are not usually handled using WM_LBUTTONDOWN.

-------------
Ehsan Akhgari

List Owner: [EMAIL PROTECTED]

[ Email: [EMAIL PROTECTED] read.zl6]
[ WWW: http://www.beginthread.com/Ehsan ]

That which an age feels to be evil is usually an untimely after-echo of that
which was formerly felt to be good - the atavism of an older ideal. -Beyond
Good And Evil, F. W. Nietzsche

Reply via email to