|
Adding Custom Buttons
A File Manager extension can add custom buttons to the File Manager toolbar by
returning button information in response to the FMEVENT_TOOLBARLOAD message.
File Manager sends this message to the FMExtensionProc function of the extension only if the extension successfully installed a
custom menu during the processing of the FMEVENT_LOAD message. Use custom buttons
as accelerator keys for menu commands specified in the custom menu.
When FMExtensionProc receives the FMEVENT_TOOLBARLOAD message, the lParam parameter points to an FMS_TOOLBARLOAD structure. The File Manager extension must copy information about the custom
buttons to the structure, including the number of buttons and a specifier for
the bitmap containing the button images (either the identifier for a bitmap
resource or a handle to a memory bitmap). The extension must also include the
address of an array of EXT_BUTTON structures, each of which must contain a command identifier for the
corresponding button. If the button is an accelerator for a menu command, the button
identifier and corresponding menu-command identifier must be equal.
The bitmap containing the button images must be a bitmap resource or a memory
bitmap. The extension must copy either the resource identifier or the memory
bitmap's handle to the FMS_TOOLBARLOAD structure; and, in the case of a bitmap resource, the resource must be in the
extension's executable file.
The bitmap must contain one image for each specified button. The bitmap height
is always 15 pixels; the width is always a multiple of 16 pixels because each
button image must be 16 pixels wide. Button images are concatenated from left
to right. For example, the image of the first button specified in the array of EXT_BUTTON structures must be the leftmost image in the bitmap.
An extension can provide a line of Help text for a button by specifying the
identifier of a string resource in the idsHelp member of the EXT_BUTTON structure. When the user selects the button, File Manager retrieves the
string resource and displays it on the toolbar.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|