18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

C++ APPLICATION PROGRAMMING INTERFACE<br />

To get the number of clicks, you must access the call_data, which has the type<br />

XmPushButtonCallbackStruct. To do so, you will need to cast the XtPointer to this<br />

callback struct type, then you can get the integer member click_count.<br />

void ClickCallback(Widget w, XtPointer client_data, XtPointer call_data)<br />

{<br />

XmPushButtonCallbackStruct* data = (XmPushButtonCallbackStruct*) call_data;<br />

std::cerr click_count

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!