Hello.
I build an application using Windows Forms.
I spawn a thread that starts a Window Form. I am in a point where I need to send messages to these Windows. When I try to get a handle to the Form's Window (Form->Handle) I get a value of type "Intptr". On the other hand, the methods for sending (posting) messages Windows expect a window handle (HWND). All attempts to cast Intptr to CWnd's HWND did not work.
I have already set up the WndProc() function for each form's Window I popup. I just could not figure out how to send messages to these Windows.Does anyone know how to send messages to these kind of Windows.
I am not using MFC CWnd windows. I build System::Windows::Forms classes.
Thanks.
- Nidal
I build an application using Windows Forms.
I spawn a thread that starts a Window Form. I am in a point where I need to send messages to these Windows. When I try to get a handle to the Form's Window (Form->Handle) I get a value of type "Intptr". On the other hand, the methods for sending (posting) messages Windows expect a window handle (HWND). All attempts to cast Intptr to CWnd's HWND did not work.
I have already set up the WndProc() function for each form's Window I popup. I just could not figure out how to send messages to these Windows.Does anyone know how to send messages to these kind of Windows.
I am not using MFC CWnd windows. I build System::Windows::Forms classes.
Thanks.
- Nidal