Admin Production ni-theme
Current Publication

CanvasEndBatchDraw

LabWindows/CVI

CanvasEndBatchDraw

int CanvasEndBatchDraw (int panelHandle, int controlID);

Purpose

Ends the batch drawing you started with CanvasStartBatchDraw.

Refer to the CanvasStartBatchDraw function reference for an example of how to use this function.

Supported Controls

You can use CanvasEndBatchDraw with canvas controls.

Parameters

Input
Name Type Description
panelHandle int Specifier for a particular panel that is currently in memory. You can obtain this handle from functions such as LoadPanel and NewPanel.
controlID int The defined constant, located in the .uir header file, that you assigned to the control in the User Interface Editor, or the ID returned by functions such as NewCtrl and DuplicateCtrl.

Return Value

Name Type Description
nestingDepth int Number of calls to CanvasStartBatchDraw that have not been matched by calls to CanvasEndBatchDraw (including this call). A negative value indicates that an error occurred.

Additional Information

Library: User Interface Library

Include file: userint.h

LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later

Examples

Refer to the following examples that use the CanvasEndBatchDraw function:

  • apps\iconedit\iconedit.cws

    Open example
  • apps\life\life.cws

    Open example
  • userint\canvas.cws

    Open example
  • userint\canvsbmk.cws

    Open example