Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using CMFCRibbonBar

86 views
Skip to first unread message

Jaqueline

unread,
Nov 6, 2009, 1:28:59 PM11/6/09
to
I'm using this control for the first time. I created a CMFCRibbonComboBox on
the control and want to get the SELCHANGE event.

On a dialog-box we create a ON_EN_SELCHANGE(<ID>, <Function>) and it works
fine. This ribbon was created on code not on resource editor (There exists
any resource editor for this kind of control?).
How can I get these events? I should create a subclass for my
CMFCRibbonComboBox?

Thanks.

AliR

unread,
Nov 6, 2009, 3:00:22 PM11/6/09
to
For that use ON_COMMAND with the ID of your combobox.

Say you want to catch it in a view, add an ON_COMMAND for it in your view's
message handler

ON_COMMAND(ID_MYCOMBO,OnMyCombo)


void CMyView::OnMyCombo()
{
m_pMyComboBox->GetCurSel();
}

AliR.

"Jaqueline" <jaqu...@no-answer.com> wrote in message
news:OdUQH8wX...@TK2MSFTNGP05.phx.gbl...

0 new messages