Skip navigation
Praveen M.
Currently Being Moderated

Event Handler for the Combo Box

Jun 29, 2009 1:03 AM



I have TextComboBoxWidget, I want to trap the return key event. For each key press the update function in Observer get exectued but I found the difference in only ClassID when the focus is lost,


I tried to write the event handler,

code in  .fr file is as

            IID_IEVENTHANDLER,  kMyComboBoxEHImpl,
            IID_IMYCOMBOEVENTHANDLER,  kComboBoxEventHandlerImpl ,

type MyTextComboBoxWidget(kViewRsrcType) : TextComboBoxWidget(ClassID = kMyComboBoxWidgetBoss){};


In factory.h the class is registered.


And kMyComboBoxEHImpl is inherited from the CEventHandler, as

class EditBoxEH2 : public CEventHandler


but, when I press any then the control is not comming in the constructor of the event handler, I am not getting what's going wrong?  Please help.




  • Currently Being Moderated
    Sep 8, 2011 12:06 AM   in reply to Praveen M.

    Hi Praveen,

    I am facing the same issue, had you got any solution for this?




    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points