Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC
  New Posts New Posts RSS Feed - Plz~ help me (combo-control)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedPlz~ help me (combo-control)

 Post Reply Post Reply
Author
Message
hean17 View Drop Down
Newbie
Newbie


Joined: 07 October 2009
Location: Korea, South
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote hean17 Quote  Post ReplyReply Direct Link To This Post Topic: Plz~ help me (combo-control)
    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)
 
Back to Top
markr View Drop Down
Senior Member
Senior Member


Joined: 01 August 2004
Status: Offline
Points: 443
Post Options Post Options   Thanks (0) Thanks(0)   Quote markr Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.137 seconds.