Hi, I saw a thread where wm_copydata failed due to the nvidia tray-icon app. MfG
Sebastian S
Posts
-
WM_COPYDATA failing? -
Message for invisible control ?First of all thanks a lot for your effort to help me. - The queueing system is a non-COM service. It uses messages to signal the queue-clients for incoming data. - My invisible control is such a queue-client. - My invisible control uses events to distribute the data-values to the other controls which visualize them. It would be no problem if my invisible control wouldn't be invisible. It seems to me that there is no window created if a control is marked "invisible" (which was a little mislead to me). I tried to create a window inside my control, but this fails, too... X| So I surrender and use the other possibility. My windowless control creates a thread which captures the queue-messages and fires the events.... ...but multithreaded event-firing makes me shiver. MfG, Sebastian
-
Message for invisible control ?I will try to explain the idea: The article "Firing Events among ActiveX Controls on the IE Browser" by Yasuhiko Yoshimura ( http://www.codeproject.com/com/firingeventsamongactivex.asp ) showed me a way to link up multiple client-controls to a server-control. The client-controls in my scenario are visualisations of data fired from the server-control. The server-control is a "interface" with no UI which: 1. Links up to a 3rd-Party-Queueing-System... 2. ... processes the incoming data... 3. ... and fires events to the client-controls for visualisation. And so the server-control shall be invisible. HTML-Page: .... But all this lays in far future. My Problem: The invisible server-control has to catch custom messages (defined by the 3rdPartyAPI). To simplify things and for testing I try to catch my own WM_APP+1 message. And in the way I'm trying to post/map my message it doesn't work. Was my explaining OK? Any idea will help me a lot. MfG Sebastian
-
Message for invisible control ?Hello ! 1. Sorry for my English 2. Bloody beginner 3. I have a ATL Full Control, invisible at runtime. It is placed in a HTML Page with the Tag. There is a custom Message: ----------------------------------------------------- #define MY_TEST (WM_APP + 1) .... LRESULT OnTest(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); .... BEGIN_MSG_MAP(CmyClass14) CHAIN_MSG_MAP(CComControl ) DEFAULT_REFLECTION_HANDLER() MESSAGE_HANDLER(MY_TEST, OnTest) END_MSG_MAP() ----------------------------------------------------- OK. Compiles fine. But how do I Post my Message? Here is what I tried: PostMessage(MY_TEST) or ::PostMessage(this->m_hWnd, MY_TEST, 0, 0) gives me an Assertion failure at runtime with "::IsWindow(hWnd)" That tells me PostMessage needs a Window. (?) PostThreadMessage(GetCurrentThreadID(), MY_TEST, 0, 0) or ::PostThreadMessage(GetCurrentThreadID(), MY_TEST, 0, 0) works, but the message handler OnTest is never called. What can I do ??? MfG Sebastian