This posting is not really a question, it's more of an observation that may or may not be interesting.
In a program I am developing I do a bit of interprocess communication as follows
The above code had been hastily written and I had assumed that if hWndFGr was not the handle of my main application window then it must be the window of one of the processes launched from the my main window process. Of course, that is a wrong assumption and I found that when its wrong the system Folder Options dialog pops up in response to the above SendMessage call. Strangely, the dialog only pops up, at least on my system, when the program is installed in a sub folder of C:\Program Files.
BTW, %WM_INC_HYPER had been set to %WM_USER + 22.
Keith
------------------
[This message has been edited by Keith Waters (edited September 18, 2001).]
In a program I am developing I do a bit of interprocess communication as follows
Code:
hWndFGr = GetForegroundWindow() IF hWndFGr <> hWndMain THEN CALL SendMessage (hWndFGr, %WM_INC_HYPER, hWndMain, 0) END IF
BTW, %WM_INC_HYPER had been set to %WM_USER + 22.
Keith
------------------
[This message has been edited by Keith Waters (edited September 18, 2001).]
Comment