Print Page | Close Window

getting notifications from CXTPControlComboBox

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=8251
Printed Date: 13 November 2025 at 11:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: getting notifications from CXTPControlComboBox
Posted By: vjedlicka
Subject: getting notifications from CXTPControlComboBox
Date Posted: 01 October 2007 at 1:48pm

Hello,

Can you please help with this?

I placed a combobox on a toolbar, like this

 m_comboFontSizes = (CXTPControlComboBox*)m_toolBar->GetControls()->Add(xtpControlComboBox, ID_COMBO_FONTSIZES, NULL, 1);


Now I need to know when the user edited the value. Before I used Extreme Toolkit, I used this handler:

ON_CBN_EDITCHANGE(ID_COMBO_FONTSIZES, OnChangeFontSizeE)


But it does not get called anymore. What can I do? Can I use CXTPControlComboBox for this?

Thsnk you
Vaclav




Replies:
Posted By: Oleg
Date Posted: 02 October 2007 at 1:00am
Hi,
 
Try this
 
ON_NOTIFY(CBN_EDITCHANGE, ID_COMBO_FONTSIZES, OnEditchangeFindCombo)
void CCustomThemesView::OnEditchangeFindCombo(NMHDR* /*pNMHDR*/, LRESULT* /*pRes*/)
{
 SendTrace(_T("CBN_EDITCHANGE"));
 
}


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


Posted By: vjedlicka
Date Posted: 03 October 2007 at 3:00pm

Your suggestion works, thanks a lot!

Vaclav



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