CoolMenu
How to popup a menu as the mouse moves over a hotspot.
This sample is sort of a combination of the PopHwnd and CoolTool samples. It destroys and pops up menus as the mouse moves over a hotspot on a "toolbar". The application is hooked before PopupMenu is called so that the handle (and thus the RECT) of the new popup menu can be obtained.
About this post
Posted: 2017-06-24
By: BlackBeltVB
Viewed: 517 times
Categories
Attachments
COOLMENU.ZIP
Posted: 6/24/2017 7:11:24 AM
Size: 7,015 bytes
Requirements
This code originally appeared on BlackBeltVB.com, and has been republished here with the permission of Matt Hart.
Special Instructions
Uses the following API functions:
- CallNextHookEx
- CallWindowProc
- CopyMemory (RtlMoveMemory)
- GetCursorPos
- GetWindowRect
- PtInRect
- ScreenToClient
- SetWindowsHookEx
- SetWindowLong
- UnHookWindowsHookEx
- WM_CREATE
- WM_DESTROY
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.