Click to See Complete Forum and Search --> : How to switch between windows
sanjay_delhi_ibm
May 7th, 1999, 06:40 AM
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.
Jason Teagle
May 7th, 1999, 08:03 AM
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?
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.