graphix
October 18th, 2008, 06:37 PM
Hello,
I'm trying to control another software from my software. Both of them are written in managed code but I've posted here since is a win32 problem.
The scenario at the time X (when the problem is spotted) is the following:
- the other software has two windows
- the main window is the parent and the second window is a modal dialog with OK and Cancel button
- my software is trying to click OK button from that dialog in order for the main window to become active
SendMessage((int)buttonOkHandle, BM_CLICK, 0, IntPtr.Zero);
The dialog window receives the message and closes but the parent window freezes after this. Do I have to send activation messages to the main window? I've tried wm_activate with no success.
Thank you
I'm trying to control another software from my software. Both of them are written in managed code but I've posted here since is a win32 problem.
The scenario at the time X (when the problem is spotted) is the following:
- the other software has two windows
- the main window is the parent and the second window is a modal dialog with OK and Cancel button
- my software is trying to click OK button from that dialog in order for the main window to become active
SendMessage((int)buttonOkHandle, BM_CLICK, 0, IntPtr.Zero);
The dialog window receives the message and closes but the parent window freezes after this. Do I have to send activation messages to the main window? I've tried wm_activate with no success.
Thank you