Print Page | Close Window

Plz~ help me (combo-control)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Visual C++ MFC
Forum Description: Topics related to Codejock Visual C++ MFC products
URL: http://forum.codejock.com/forum_posts.asp?TID=15310
Printed Date: 13 May 2024 at 11:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Plz~ help me (combo-control)
Posted By: hean17
Subject: Plz~ help me (combo-control)
Date Posted: 07 October 2009 at 2:49am
I created combo-control on commandbar;
and inserted items to combo-control.
 
but, I don't know how recevice event of combo-control.
item-changed or item-clieked ....
 
help me~~
 
---------------------------------------------------------------------------------------------------------------------------------------------------------
CXTPToolBar* pNCControlToolbar = (CXTPToolBar*) pCommandBars-Add(_T("ncControlToolbar"), xtpBarTop);
  pNCControlToolbar->SetBarID(IDR_TOOLBAR_NC02);
  CXTPControlComboBox* pControlCombo = (CXTPControlComboBox*)pNCControlToolbar->GetControls()->Add(xtpControlComboBox, ID_NCCOMBO01);
  pControlCombo->SetWidth(130);
  pControlCombo->SetDropDownListStyle();
  pControlCombo->AddString(_T("0"));
----------------------------------------------------------------------------------------------------------------------------------------------------------
 
Spy++ can't catch event anything to changing item.
 
Just i wanna know same thing CBN_SELCHANGE or CBN_EDITCHANGE(originally visual C++'s combo box event)
 



Replies:
Posted By: markr
Date Posted: 12 October 2009 at 1:15pm
Search the command bar sample projects for use of ON_XTP_EXECUTE message map macro. It can be used to intercept selection change of combo box control in toolbar.



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