I have a thread that processes a video. If the thread is finished the process of a frame, er should send a message to a window and come back to work...and so I try that: SendMessageCallback(HWND(&son),WM_USER,0,0,0,0);
I try to catch the WM_USER message in the sonwindow with the function WndProc. Here is the code of this function:
Thanks for your response.
son is a pointer to my window, which should take the message.
I use: ResultsViewer^ son = (ResultsViewer^)GUI::ResultsViewer::ActiveForm;
isn't that all right??
Thanks again for your antwort.
now it works although I did't use this Handle property (I can't understand how to convert IntPtr to HWND....).
I write what I did, maybe helps somebody in the future.
I get the handle of my window through the function Findwindow
and then gets the window the messages !!!!
1 2
HWND hWindow = FindWindow(NULL,L"Name der Window");
SendMessage(hWindow,WM_USER,0,0);
I would appreciate if someone could me say, with a example, how this Handle Propety works, because I don't understand it.