OS/2, eCS & ArcaOS - Technical > Programming

Manipulating a PM window from another program

<< < (3/3)

Laurence Pithie:
One solution would be to  subclass the frame window and process WM_CLOSE and WM_QUIT messages in the custom window procedure.

Martin Vieregg:

--- Quote ---One solution would be to  subclass the frame window and process WM_CLOSE and WM_QUIT messages in the custom window procedure.
--- End quote ---

The window is the original PM VIO window where cmd.exe runs. I have no access to the code. It is as-is. I can only post messages to handles.

Laurence Pithie:
Pass the window handle of the Vio window as the first parameter of the WinSubClassWindow call with a pointer to the custom window procedure as the second parameter. Pass any messages that you don't explicitly process to the original window procedure (which is the return value from the WinSubClassWindow call) in a similar fashion to the way you pass messages you don't process to the standard window procedure in window classes you create in your own code. Because you can only subclass windows started in the same session you need ti issue this call from the helper app. There's a discussion on calling PM from AVIO here.
http://www.edm2.com/index.php/Calling_PM_from_AVIO_Applications

Navigation

[0] Message Index

[*] Previous page

Go to full version