Breadcrumbs

CDRFLEx.set_on_tp_popup

Features

This function is used to register a callback function to check the popup message when the tp_popup command is used in DRL. It is useful when functions that should be executed automatically are made.

Parameter

Parameter Name

Data Type

Default Value

Description

pCallbackFunc

TOnTpPopupCB

-

Refer to definition of callback function

Return

None.

Example

C++
void OnTpPopup(LPMESSAGE_POPUP tPopup)
{
    cout << "Popup Message: " << tPopup->_szText << endl;
    cout << "Message Level: " << tPopup->_iLevel << endl;
    cout << "Button Type: " << tPopup->_iBtnType << endl;
}
int main()
{
	drfl.set_on_tp_popup(OnTpPopupCB)
}