Why doesn't this code display the popupmenu where the mouse cursor is?
Dim CP as PointAPI
a& = GetCursorPos(CP)
PopupMenu MyMenu, , CP.X, CP.Y
I know that I can omit the X and Y parameters from the PopupMenu call and the menu will appear at the cursor position, but my problem is that I need to record where the mouse was while I display another form, and then show the menu where the mouse originally was when the click occured. The user could have moved the mouse between the click and the form appearing.
- Andy
_______________________________
"On a clear disk you can seek forever"
Dim CP as PointAPI
a& = GetCursorPos(CP)
PopupMenu MyMenu, , CP.X, CP.Y
I know that I can omit the X and Y parameters from the PopupMenu call and the menu will appear at the cursor position, but my problem is that I need to record where the mouse was while I display another form, and then show the menu where the mouse originally was when the click occured. The user could have moved the mouse between the click and the form appearing.
- Andy
_______________________________
"On a clear disk you can seek forever"