LToolbar::ToolbarCallBack

Summary

User-overrideable LToolbar::ToolbarCallBack function to process certain events.

Syntax

#include "ltwrappr.h"

virtual L_INT LToolbar::ToolbarCallBack (nButtonID, dwData)

Parameters

L_UINT nButtonID

The button that was responsible for creating this toolbar event.

L_UINT32 dwData

User-defined data that will retrieved with the toolbar information.

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, you must derive a class from LToolbar and override this function. In addition, the use of the callback function must be enabled by calling LToolbar::EnableToolbarCallBack.

Required DLLs and Libraries

See Also

Functions

Topics

Example

class LUserToolbar:public LToolbar 
 
{ 
 
protected : 
 
virtual L_INT   ToolBarCallBack(L_UINT nButton, L_UINT32 dwData); 
 
}; 
 
L_INT LUserToolbar::ToolBarCallBack(L_UINT nButton, L_UINT32 dwData) 
 
{ 
   UNREFERENCED_PARAMETER(nButton); 
   UNREFERENCED_PARAMETER(dwData); 
 
 
   //do your work; 
 
   return 0; 
 
} 
 
// the user should call LToolbar::EnableToolBarCallBack() 
 
L_INT LToolbar__ToolBarCallBackExample() 
{ 
   LUserToolbar userToolbar; 
 
   userToolbar.EnableToolbarCallBack (TRUE); 
 
   return SUCCESS; 
} 
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

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