Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intercepting changes in other windows

Status
Not open for further replies.

CybOrg

Programmer
Nov 30, 1998
57
SE
Hi!

I'm coding a time-logging system that starts other apps (using 'Shell'), and/or switches to already started apps upon the click of a button. Now, some applications CAN start multiple sessions (like terminal emulators, Word, Excel), and in order to save memory, I'd like my application to simply start another 'document' instead of another instance of the executable. I suppose I could use DDE to accomplish the 'startup', and I can also get a grip on the window handle, but here's s'more:

1) I want the 'shelling' app to react when the user switches between document windows in the MDI app.
2) I want to activate a given window in the MDI app if it's already started.

Is there a better way than DDE? Something more 'modern', perhaps, yet memory-lean and snappy? ;-)

/Cy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top