Handle Key board event for Office::msoControlComboBox

  • Thread starter KarthikonIT via OfficeKB.com
  • Start date
K

KarthikonIT via OfficeKB.com

Hi,
I m creating a plugin in MS Outlook in VC++
I have implemented the "_IDTExtensibility2" & "IRibbonExtensibility"
interface

I have added Office::msoControlComboBox control in the Outlook command bar.

I have implemented Button click event for the buttons I have added in Outlook
command bar.

I would like to know how to handle the event when the user types in the
editbox of "Office::msoControlComboBox" and hit ENTER KEY in Keyboard.




//SAMPLE CODE SNIPPET.

.h file

BEGIN_SINK_MAP(CButtonWrapper)

SINK_ENTRY_INFO(1, __uuidof(Office::_CommandBarButtonEvents),0x1,
OnButtonClick , &OnButtonClickInfo)
END_SINK_MAP()


.cpp

HRESULT __stdcall CButtonWrapper::OnButtonClick(LPDISPATCH lpBtnDisp,
VARIANT_BOOL *vbCancelDefault)
{
//Implementation for button click event handler.

}



Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top