|
1. For right-click on window background

|
Menus are organized inside one main menu tree, and are
retrieved in wodFtpDLX as submenus - first submenu is
for background etc...
Each of those can be changed and adjusted to suit
your needs for your application. To do that, you should
do one of two things:
1. If you only want to disable some of the features
(or remove them!) from predefined menus, you need to
get HMENU handle of these menus (from ContextMenu
property) after wodFtpDLX has been initialized, then
grab appropriate submenu (first for background, second
for file...) and then you can use GetMenuItemInfo and
SetMenuItemInfo API calls to change any of these values
(or, for that sake, any other API that deals with
menus).
2. If you want to have completely different menus,
you can create them in VB (or other programming
environment) with respect to submenus - you must create
3 submenus that wodFtpDLX will load depending on user
click. Once such menu is created, you must pass its
HMENU value to ShowContextMenu event - at least once.
After that wodFtpDLX will use your menus.
Nice thing is that if you provide proper HWND value
of window that receives menu messages, wodFtpDLX will
SendMessage to that window and you can receive them in
appropirate functions. For example, if you create menu
in VB form and pass appropriate value to
ShowContextMenu event (look at our samples) then when
user clicks on menu your procedure will be called.
|