I have a menu bar that shows both popup menus and direct commands. I liked to use the status bar to show a help tip when the cursor passes over the menu bar commands. To do so I have the following:
1- On a %WM_NCMOUSEMOVE message I check wParam = %HTMENU. If true then
2- I pass the screen coordinates to MenuItemFromPoint. This API call works on a point (cursor position):
This function does not work (Win NT4). May be there are problems on the "window coordinates": I tried with both client and screen coordinates, and with coordinates related on the top-left corner of the window.
This moment my program works correctly using a GetMenuItemRect loop (I don't like this since it is a slower method). Since both MenuItemFromPoint and GetMenuItemRect are new entries on NT4, I think they should both work (or not work). Any ideas?
Aldo
------------------
1- On a %WM_NCMOUSEMOVE message I check wParam = %HTMENU. If true then
2- I pass the screen coordinates to MenuItemFromPoint. This API call works on a point (cursor position):
POINT structure specifying the location to test. If hMenu specifies a menu bar, this parameter is in window coordinates. Otherwise, it is in client coordinates.
This moment my program works correctly using a GetMenuItemRect loop (I don't like this since it is a slower method). Since both MenuItemFromPoint and GetMenuItemRect are new entries on NT4, I think they should both work (or not work). Any ideas?
Aldo
------------------
Comment