Vba right click menu

Vba right click menu

Anonymous
Not applicable
282 Views
1 Reply
Message 1 of 2

Vba right click menu

Anonymous
Not applicable
Hello,

I have some VBA userforms , with contextual right click menus , created with
API calls (CreatePopupMenu)
(using an example found on this NG).

Now I want to have some menus lines with icons on the left of the line .

How doing this ?

regards

Luc
0 Likes
283 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
2D,

I don't think this is the only way but it's the quickest one I can text.

....The WM_CONTEXTMENU message is sent by a control or window whenever the user performs the action associated with displaying a context menu. In order to pick up the message you simply subclass the appropriate window and plug in your icon....

You'll find some discussions regarding subclassing in this group but save, save, save

G'Luck

Bob Coward
0 Likes