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...
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("test")
//-->
</SCRIPT>
[/blue]
It works perfectly fine when I use javascript...
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...
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...
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 "A's" message from _within_ class "A". It seems quite...
Hello
I've created a class that inherits from the ATL-class "CComboBox". What I want to do now is capture some of the notifications that "CComboBox" sends, like CBN_SELENDOK before they are sent to the parent window. But I only know how to capture from a child control, not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.