Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Menu Runtime Creation

3 views
Skip to first unread message

M.Meyyappan

unread,
Nov 9, 1998, 3:00:00 AM11/9/98
to
Hi,
I am creating Menu at runtime using winapi InserMenu.
But I couldn't figure out how to write code for the menus created at run
time.
Any Help?

Regards
M.Meyyappan
Eutech Cybernetics Pte Ltd

Ben Baird (MSMVP)

unread,
Nov 10, 1998, 3:00:00 AM11/10/98
to
>I am creating Menu at runtime using winapi InserMenu.
>But I couldn't figure out how to write code for the menus created at run
>time.
>
You need to subclass your form and catch WM_COMMAND messages. If you've
never tried subclassing before, you can get a good example from my Web
site -- download SubCls32.zip from the Subclassing section in the Source
Code Area of my Web site.

--
Ben Baird, MVP
Visual Basic Thunder 3.0
http://www.cyberhighway.com/~psy/vbthunder/
Common Controls Replacement Project
http://www.mvps.org/ccrp/
Please keep your questions on the newsgroups.


0 new messages