MCPcopy Create free account
hub / github.com/SOUI2/soui / OnButtonClick

Method OnButtonClick

demo/CAdapter.h:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 bool OnButtonClick(EventCmd *pEvt)
55 {
56 SButton *pBtn = sobj_cast<SButton>(pEvt->sender);
57 int iItem = pBtn->GetRoot()->GetUserData();
58 SMessageBox(NULL, SStringT().Format(_T("button of %d item was clicked"), iItem), _T("haha"), MB_OK);
59 return true;
60 }
61};
62
63

Callers

nothing calls this directly

Calls 3

SMessageBoxFunction · 0.85
GetUserDataMethod · 0.45
FormatMethod · 0.45

Tested by

no test coverage detected