Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by TomasE

  1. TomasE

    catching event from activex-object

    Thanks for your suggestions. Unfortunately the problem remains, no matter what I do. I've come up with a (rather ugly) temporary solution though. I catch the event in the javascript and call the vbscript from there. The reason I must use vbscript is because I need to send a DATE-object to an...
  2. TomasE

    catching event from activex-object

    I'm having trouble catching events from an ActiveX-control on my webpage. Im using the following code to catch it. [COLOR=blue]<SCRIPT LANGUAGE=vbscript FOR=object1 EVENT=SelChange> <!-- MsgBox(&quot;test&quot;) //--> </SCRIPT> [/blue] It works perfectly fine when I use javascript...
  3. TomasE

    catching my own notifications

    I noticed that your using ON_CONTROL_REFLECT. I tried using reflection before but I didn't get it to work, so I assumed it wasn't the answer. But if you get it to work with MFC then it should work with ATL/WTl too. I haven't used the Class Wizard; so it's very likely that I've missed something...
  4. TomasE

    catching my own notifications

    Ok, but if I simply add a handler for the event like this class CAnotherComboBox : public CComboBox { public: // ... BEGIN_MSG_MAP(CAnotherComboBox) COMMAND_CODE_HANDLER(CBN_SELENDOK, OnSelEndOK) END_MSG_MAP() // ... }; , then it doesn't work; probably because the message is sent...
  5. TomasE

    catching my own notifications

    Thanks for the reply, but I don't think you understood the question. I should've mentioned that I'm a professional VC++ programmer, and the problem is a bit more complex. The trouble is that I need to capture class &quot;A's&quot; message from _within_ class &quot;A&quot;. It seems quite...
  6. TomasE

    catching my own notifications

    Hello I've created a class that inherits from the ATL-class &quot;CComboBox&quot;. What I want to do now is capture some of the notifications that &quot;CComboBox&quot; sends, like CBN_SELENDOK before they are sent to the parent window. But I only know how to capture from a child control, not...

Part and Inventory Search

Back
Top