LRasterPaintWindow::CreateToolbar
#include "Ltwrappr.h"
static L_INT LRasterPaintWindow::CreateToolbar(pLToolbar, hWndParent, lpCaption)
LToolbar * pLToolbar; |
/* pointer to an LToolbar class object */ |
HWND hWndParent; |
/* window handle */ |
L_TCHAR * lpCaption; |
/* window title string */ |
Creates a digtalpaint toolbar.
Parameter |
Description |
pLToolbar |
Pointer to an LToolbar class object that references the newly created toolbar. |
hWndParent |
Window handle to the toolbar's parent window. |
lpCaption |
Pointer a null-terminated string to be used as the title for the toolbar window. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
The toolbar is created as a child window to the window specified in hwndParent.
LRasterPaintWindow::Initialize must be called before calling this function.
Please note that this DigitalPaint toolbar is an automation toolbar. This toolbar automatically handles the buttons and the necessary function calls. However, the handle of the toolbar must be set by calling LRasterPaintWindow::SetToolbar, before using the toolbar.
The digitalpaint toolbar contains the following buttons:
Description |
Button ID |
|
ID_TOOL_PAINT_BRUSH |
|
ID_TOOL_PAINT_SHAPE_LINE |
|
ID_TOOL_PAINT_SHAPE_RECT |
|
ID_TOOL_PAINT_SHAPE_ROUNDRECT |
|
ID_TOOL_PAINT_SHAPE_ELLIPSE |
|
ID_TOOL_PAINT_SHAPE_POLYGON |
|
ID_TOOL_PAINT_SHAPE_BEZIER |
|
ID_TOOL_PAINT_REGION_RECT |
|
ID_TOOL_PAINT_REGION_ROUNDRECT |
|
ID_TOOL_PAINT_REGION_ELLIPSE |
|
ID_TOOL_PAINT_REGION_POLYGON |
|
ID_TOOL_PAINT_REGION_SURFACE |
|
ID_TOOL_PAINT_REGION_BORDER |
|
ID_TOOL_PAINT_REGION_COLOR |
|
ID_TOOL_PAINT_FILL_SURFACE |
|
ID_TOOL_PAINT_FILL_BORDER |
|
ID_TOOL_PAINT_FILL_COLORREPLACE |
|
ID_TOOL_PAINT_TEXT |
|
ID_TOOL_PAINT_ZOOM |
|
ID_TOOL_PAINT_BORDERCOLORPICKER |
|
ID_TOOL_PAINT_MOVER |
Required DLLs and Libraries
LTPNT For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Functions: |
LRasterPaintWindow::Initialize, LRasterPaintWindow::FreeToolbar |
Example
L_VOID MyFunction(LRasterPaintWindow *pLRasterPntWnd, LToolbar * pLToolbar, HWND hWnd,
POINT ptPos)
{
LRasterPaintWindow::Initialize ();
if (pLRasterPntWnd->IsValid ())
{
LRasterPaintWindow::CreateToolbar(pLToolbar, hWnd, TEXT("Test Toolbar"));
LRasterPaintWindow::SetToolbar (pLToolbar);
LRasterPaintWindow::SetToolbarPosition (&ptPos);
LRasterPaintWindow::ShowToolbar (TRUE);
}
}