Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 7th, 2005, 3:14 AM   #1
melwinator
Newbie
 
Join Date: Mar 2005
Posts: 11
Rep Power: 0 melwinator is on a distinguished road
Question dynamic menu creation.

hi to all,
i was wondering whether there is any way of adding dynamic menus to an exe file.
I dont want to create a menu array and then assign menu items at runtime.
I would also be very grateful if any one could provide me with an idea of how to go about this...
thnx
melwinator is offline   Reply With Quote
Old Apr 7th, 2005, 2:54 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
While it is possible to create and handle menus purely through API, it is very complex and tedious. I would suggest creating an array of menus that you populate at run-time. If you must use the API method, though, the relevant APIs would be CreateMenu GetMenu and SetMenu to manage the objects. To actually process window messages, (click etc) you'd need to subclass the object (CallWindowProc) and also write a universal menu handling function of some sort.
Googling or searching psc for CreateMenu should bring up some results. If you really want I can provide some code, though you'd be better to use VB.NET which supports dynamic menus properly.
Rory is offline   Reply With Quote
Old Apr 8th, 2005, 12:50 AM   #3
melwinator
Newbie
 
Join Date: Mar 2005
Posts: 11
Rep Power: 0 melwinator is on a distinguished road
thnx rory.....
melwinator is offline   Reply With Quote
Old Aug 10th, 2005, 2:58 AM   #4
jean
Newbie
 
Join Date: Aug 2005
Posts: 1
Rep Power: 0 jean is on a distinguished road
dynamic menu creation

i was wondering whether there is any way of adding dynamic menus to an exe file.
I want to create menu at runtime.

any body know how to create menu at run time, Plz send code to my
email id: mani_serpon@yahoo.co.in
jean is offline   Reply With Quote
Old Aug 10th, 2005, 11:24 AM   #5
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
how about you ask a question if you have one, we are not a coding service.
__________________
Profanity is the one language that all programmers understand.

Check out my Blog <---updated Nov 30 2007!
Pizentios is offline   Reply With Quote
Old Aug 10th, 2005, 11:38 AM   #6
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
You would at least expect the guy to check here at the forums for a response as opposed to having us take more of OUR time to send him the code in email.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Aug 11th, 2005, 2:44 PM   #7
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Heh heh heh, we have your email address...
Rory is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:57 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC