|
|
|
Cross-Process Window Message
Example This is a really interesting sample VB5 project. Run this and you will see a "target" icon on an empty MDI form. Click and drag the "target" to any running app (notepad.exe or calc.exe for example). Kidnap will grab the external app, steal it's menu and make it a "child" window. I went so far as to make the menus functional in this demo, but until I learn more about cross-process subclassing, you are on your own if you want to subclass the external child window. *note* this sample uses subclassing which can cause problems in the VB IDE during break mode. If you want to step through the code, please comment out the SetWindowLong() statement in MDIForm_Load() and MDIForm_UnLoad() first.
You may freely use and modify this code in your Copyright (c) 1998-2000, Ray Mercer - All Rights Reserved |