Article View: comp.windows.ms.programmer
Article #1444Help! How to capture Window position
From: Thomas Dayton contractor
Date: Fri, 22 Feb 1991 18:54
Date: Fri, 22 Feb 1991 18:54
20 lines
1388 bytes
1388 bytes
Hello all. I would like to be able to "capture" the X, Y position and the width and height of all child windows upon exiting my application in order to restore the environment (a la Program Manager, File Manager) the next time the app is run. Have tried using GetWindowRect(), but this only tells me the current size of the window which isn't good if the window is iconic or maximized. I really want to know the "normal" position and size of the window. Obviously Windows knows this info, since it can restore an iconized window properly, but the SDK books do not disclose where this data is stored. Do you think this is intentional? I would be most grateful if someone could tell me where this information could be obtained for a given window handle. Thanks in advance, Thomas Dayton
Technical Details
Message-ID:
<25920001@hpkslx.mayfield.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!censor!geac!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!paperboy!think.com!zaphod.mps.ohio-state.edu!wuarchive!sdd.hp.com!hplabs!hpda!hpcuhb!hpkslx!thomasShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!paperboy!think.com!zaphod.mps.ohio-state.edu!wuarchive!sdd.hp.com!hplabs!hpda!hpcuhb!hpkslx!thomas From: thomas@hpkslx.mayfield.HP.COM (Thomas Dayton contractor) Newsgroups: comp.windows.ms.programmer Subject: Help! How to capture Window position Message-ID: <25920001@hpkslx.mayfield.HP.COM> Date: 22 Feb 91 18:54:35 GMT Article-I.D.: hpkslx.25920001 Organization: HP Response Center Lab Lines: 20