|
GLG Toolkit, C / C++ API Library
Version 4.6
|
This group contains functions that are available only on Windows. More...
This group contains functions that are available only on Windows.
Functions | |
| void | GlgLoadExeIcon (GlgObject viewport, GlgLong icon_id) |
| Windows only: Loads small and big icons from the executable and associates them with the top level window of a viewport. More... | |
| GlgBoolean | GlgOnDrawMetafile (GlgObject viewport, HDC print_dc) |
| Windows only: Provides MFC metafile output support. More... | |
| GlgBoolean | GlgOnPrint (GlgObject viewport, HDC print_dc) |
| Windows only: Provides MFC printing support. More... | |
| GlgBoolean | GlgSetCursor (GlgObject viewport, char *resource_name, GlgLong cursor) |
| Windows only: Sets a custom cursor for a drawing or one of its child viewports. More... | |
Windows only: Loads small and big icons from the executable and associates them with the top level window of a viewport.
The function should be invoked after the drawing hierarchy has been set up.
| viewport | The drawing viewport. |
| icon_id | An icon ID in the resource file. |
| GlgBoolean GlgOnDrawMetafile | ( | GlgObject | viewport, |
| HDC | print_dc | ||
| ) |
Windows only: Provides MFC metafile output support.
Is used by the MFC container's OnDrawMetafile method to produce metafile for the GLG child window.
| viewport | Specifies a viewport. If viewport is a light viewport, the output will be generated for its parent viewport. |
| print_dc | Specifies the printing device context for metafile output. |
| GlgBoolean GlgOnPrint | ( | GlgObject | viewport, |
| HDC | print_dc | ||
| ) |
Windows only: Provides MFC printing support.
Is used by the MFC container's OnPrint method to print GLG child window.
| viewport | Specifies a viewport. If viewport is a light viewport, the output will be generated for its parent viewport. |
| print_dc | Specifies the printing device context. |
| GlgBoolean GlgSetCursor | ( | GlgObject | viewport, |
| char * | resource_name, | ||
| GlgLong | cursor | ||
| ) |
Windows only: Sets a custom cursor for a drawing or one of its child viewports.
| viewport | A viewport object or a viewport's parent. |
| resource_name | The resource path of a child viewport to set the cursor of, or NULL to set the cursor of the viewport specified by the viewport parameter. The resource path is relative to the object specified by the viewport parameter. |
| cursor | One of the predefined Windows cursor types. |
The custom cursor will be used when the mouse moves inside the viewport the custom cursor is assigned to.
While GlgSetCursorType uses only predefined cross-platform subset of cursor types, GlgSetCursor can use all cursor types defined on Windows.