| View previous topic :: View next topic |
| Author |
Message |
Woody Valued Newbie

Joined: 10 Jul 2003 Posts: 29
|
Posted: Tue Oct 28, 2003 3:34 pm Post subject: |
|
|
CodeScript,
Thanks for the assistance!
What I am looking to do is to create a plugin for another app in short. I want to create a new menu on the app. So very similar to what you have given as an example but a standard menu w/ menu items instead of a pop-up menu. Will the setparent.zip work for this?
Thank you,  _________________ - Woody |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Oct 28, 2003 4:02 pm Post subject: |
|
|
I think U need a dll for that. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Woody Valued Newbie

Joined: 10 Jul 2003 Posts: 29
|
Posted: Tue Oct 28, 2003 4:08 pm Post subject: API Reference |
|
|
CodeScript,
Reviewing the API reference I believe what I would need to use is CreateMenu verses CreatePopupMenu both contained in the user32.lib.
Does this sound accurate to you?
Thanks, _________________ - Woody |
|
| Back to top |
|
 |
Woody Valued Newbie

Joined: 10 Jul 2003 Posts: 29
|
Posted: Tue Oct 28, 2003 4:18 pm Post subject: DLL Approach |
|
|
I have also looked into the vdswnd.dll approach to this issue as well. However I am unable to get the vdswnd.dll to function in vds 5 or the wnd command to function (with the vdsdll.dll from vdsdll3) in vds 5.  _________________ - Woody |
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Tue Oct 28, 2003 6:11 pm Post subject: |
|
|
You could try the ssmenu.dll. If you use the window class of the main exe, you should propably be able to add a menu to that window and catch the events in your own program
Regards,
Vic
BTW:
I don't know if you're trying to create plugin for MSN, but if so, you can only add your menus to the 'conversation' windows, not to the main exe  _________________ phpBB Development Team |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Oct 28, 2003 6:22 pm Post subject: |
|
|
| Woody wrote: | | Reviewing the API reference I believe what I would need to use is CreateMenu |
Yes you can create and display a menu bar and menu but you should respond to it too.
VDS runtime recieves the menu events by WM_COMMAND messages.
Now if you change the parent these messages would be posted to your foreign window and that won't respond anyway. I have checked it. It's not possible as far as I believe though I may stand corrected.
So you need to setup a hook (using a dll) and get a copy of the WM_COMMAND messages and findout which menu item user has clicked.
Poupmenus events are tracked in a different way irrespectibe of where the menu is displayed the parent remains same.
IMHO you can imitate a menu somewhat by using bitbtns/aniicons in a row. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
|