TOOLBARCALLBACK

Summary

Handles each action that occurs in the toolbar.

Syntax

#include "LtTLB.h"

L_INT EXT_CALLBACK YourFunction(pToolbar, nButtonID, dwData, pUserData)

Parameters

pTOOLBARHANDLE pToolbar

Pointer to a toolbar handle.

L_UINT nButtonID

An integer that identifies the button that was responsible for creating the toolbar event.

L_UINT32 dwData

Reserved for future use.

L_VOID * pUserData

A void pointer that you can use it to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the pUserData parameter of the calling function.)

Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes

Comments

This function is called for each event that occurs in the toolbar. To receive notification of toolbar events the callback function must be set using L_TBSetCallback. To determine that current callback function that is handling toolbar events, call L_TBGetCallback.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to L_TBSetCallback.

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Toolbar C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.