Print Page | Close Window

CXTPControlComboBox selection changes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2325
Printed Date: 05 June 2024 at 8:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPControlComboBox selection changes
Posted By: andy_t
Subject: CXTPControlComboBox selection changes
Date 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




Replies:
Posted By: krulle
Date 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();
}


Posted By: andy_t
Date Posted: 16 June 2005 at 6:34am

Oh right, that seems to work.

Thanks for the help! 

.Andy




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