|
-
May 7th, 1999, 06:40 AM
#1
How to switch between windows
I receive data from the network and the basis of some ID in the data received i have to maximize an already running session of a program, process the data, possibiliy send some data back over the network and then minimize the window. There will be 4 such sessions running and will have to be maximized and minimised on the basis of the ID. The session will come up when the system is started and will go down when the system goes down. The working environment will be Windows 95 or 98 or NT.
-
May 7th, 1999, 08:03 AM
#2
Re: How to switch between windows
Each session (instance of the program) will have to set its main window title to something unique - for example, "Such-And-Such-An-App:ID=01", "Such-And-Such-An-App:ID=02", "Such-And-Such-An-App:ID=03" and "Such-And-Such-An-App:ID=04". You would then need to use FindWindow() to find the window with that string, and then you can activate the instance or send it data. You can call ActivateFrame() on the window pointer returned from FindWindow().
Does this help?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|