Handler of WM_XTP_COMMAND |
Post Reply |
Author | |
FrankC
Groupie Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
Posted: 20 October 2008 at 6:20pm |
Do the Toolkit have the handler for the WM_XTP_COMMAND, similar like the ON_XTP_CREATECONTROL?
Thanks,
Frank
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes:
ON_XTP_EXECUTE(ID_PARA_INDENT, OnIndentLeft)
void CCustomThemesView::OnIndentLeft(NMHDR* pNMHDR, LRESULT* pResult)
{ NMXTPCONTROL* tagNMCONTROL = (NMXTPCONTROL*)pNMHDR; CXTPControlEdit* pControl = DYNAMIC_DOWNCAST(CXTPControlEdit, tagNMCONTROL->pControl); if (pControl)
{ SetIndentLeft(int(_ttof(pControl->GetEditText()) * 1000)); } *pResult = 1;
} |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
FrankC
Groupie Joined: 04 September 2008 Location: United States Status: Offline Points: 35 |
Post Options
Thanks(0)
|
Thanks Oleg. A Combobox is created on a toolbar. How can I capture the messages of the combobox, such as that from MFC as following? ON_CONTROL_REFLECT(CBN_DROPDOWN, OnDropdown) ON_CONTROL_REFLECT(CBN_CLOSEUP, OnCloseup) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
See CustomThemes sample.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |