![]() |
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)
Quote Reply
Topic: Handler of WM_XTP_COMMANDPosted: 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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 October 2008 at 2:05am |
|
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)
Quote Reply
Posted: 21 October 2008 at 10:05am |
|
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
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 October 2008 at 1:30am |
|
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 |