Reputation: 406
Related to, but a more general question than How to Maximize a Window in background?
It is possible to Minimize, Restore, Move and Resize, and/or Maximize an Application Window using the ShowWindow() and SetWindowPos() API's
Using these has the disadvantage of changing the Active Window and Z-Order
Is it possible to make these changes in The Background, so that the changes only become noticable the next time it is Activated?
A soultion using using API's or VB6 is preferred
"Rest assured that things will get worse, before they get a lot worse" - Anon.
Upvotes: 0
Views: 114
Reputation: 37192
SetWindowPos
doesn't have to change the z-order or activate the window.
SWP_NOZORDER
flag to prevent the z-order from changing.SWP_NOOWNERZORDER
flag to prevent the window's owner's z-order from changing (if the window is owned)SWP_NOACTIVATE
flag to prevent the window from being activated.These flags (and their values) are documented here.
Upvotes: 3