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 |
Paintbrush tool |
ID_TOOL_PAINT_BRUSH |
Line shape tool |
ID_TOOL_PAINT_SHAPE_LINE |
Rectangle shape tool |
ID_TOOL_PAINT_SHAPE_RECT |
Rounded rectangle shape tool |
ID_TOOL_PAINT_SHAPE_ROUNDRECT |
Ellipse shape tool |
ID_TOOL_PAINT_SHAPE_ELLIPSE |
Polygon shape tool |
ID_TOOL_PAINT_SHAPE_POLYGON |
Bezier shape tool |
ID_TOOL_PAINT_SHAPE_BEZIER |
Region rectangle tool |
ID_TOOL_PAINT_REGION_RECT |
Rounded rectangle region tool |
ID_TOOL_PAINT_REGION_ROUNDRECT |
Ellipse region tool |
ID_TOOL_PAINT_REGION_ELLIPSE |
Polygon region tool |
ID_TOOL_PAINT_REGION_POLYGON |
Surface region tool |
ID_TOOL_PAINT_REGION_SURFACE |
Border region tool |
ID_TOOL_PAINT_REGION_BORDER |
Color region tool |
ID_TOOL_PAINT_REGION_COLOR |
Surface fill tool |
ID_TOOL_PAINT_FILL_SURFACE |
Border fill tool |
ID_TOOL_PAINT_FILL_BORDER |
Color replace tool |
ID_TOOL_PAINT_FILL_COLORREPLACE |
Text tool |
ID_TOOL_PAINT_TEXT |
Zoom tool |
ID_TOOL_PAINT_ZOOM |
Border color picker tool |
ID_TOOL_PAINT_BORDERCOLORPICKER |
Mover tool |
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);
}
}