View Single Post
  #1  
Old January 19th 10, 06:18 AM posted to microsoft.public.outlook.program_addins
KarthikonIT via OfficeKB.com
external usenet poster
 
Posts: 14
Default Handle Key board event for Office::msoControlComboBox

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.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/201001/1

Ads