![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 11
Rep Power: 0
![]() |
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 ![]() |
|
|
|
|
|
#2 |
|
Expert Programmer
|
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. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Mar 2005
Posts: 11
Rep Power: 0
![]() |
thnx rory.....
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Aug 2005
Posts: 1
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() |
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! |
|
|
|
|
|
#6 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
|
|
#7 |
|
Expert Programmer
|
Heh heh heh, we have your email address...
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|