CyCoPaTh
September 17th, 2001, 07:03 AM
I have written a small program to basically list a submenu in a label array...it can there fore be totally skinnable. Now what I want to do is make this 'virtual' submenu actually functional, ie when you click on one of the virtual menu items it actually performs the correct task to the set hwnd. Is this possible ? at the moment all my program really gets is the caption and the hwnd of the menu and items, is that enough to do this ? PLEASE PLEASE PLEASE help me out here, ive searching for weeks.
Thanx so much
Chris Clough
Clearcode
September 24th, 2001, 09:49 AM
If you send a WM_COMMAND message to the main window with the lPaream being the menu's command id (use GetMenuInfo API for this) then it triggers a menu click just as if the user had done so.
Hope this helps,
Duncan
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.