Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPControlComboBox selection changes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPControlComboBox selection changes

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


Joined: 19 October 2004
Location: Norway
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote andy_t Quote  Post ReplyReply Direct Link To This Post Topic: CXTPControlComboBox selection changes
    Posted: 06 June 2005 at 4:27am

How do I handle selection changes in CXTPControlComboBoxes that are embedded in a toolbar? Can't seem to see any event-messenges getting sent...

Thanks for any help,
.Andy

Back to Top
krulle View Drop Down
Newbie
Newbie


Joined: 05 October 2004
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote krulle Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2005 at 5:15am
I have subclassed CXTPControlComboBox and overloaded the OnExecute funcion like this:

void CXTPMyComboBox::OnExecute()
{
    int ix = GetCurSel();

    // Do something here

    __super::OnExecute();
}
Back to Top
andy_t View Drop Down
Newbie
Newbie


Joined: 19 October 2004
Location: Norway
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote andy_t Quote  Post ReplyReply Direct Link To This Post Posted: 16 June 2005 at 6:34am

Oh right, that seems to work.

Thanks for the help! 

.Andy

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.218 seconds.