Print Page | Close Window

Handler of WM_XTP_COMMAND

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12492
Printed Date: 24 June 2025 at 12:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Handler of WM_XTP_COMMAND
Posted By: FrankC
Subject: Handler of WM_XTP_COMMAND
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: FrankC
Date 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)



Posted By: Oleg
Date Posted: 22 October 2008 at 1:30am
Hi,
See CustomThemes sample.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net