The scenario is that I have a window list handle top-level windows and I want to move around them so that they To get organized in my z-order of my selection, I started the list again (with the window I want to end in the last part), Calling SetForegroundWindow on each one works for some time Was not, but like always, when I am between each call He stayed a little longer and then made a little improvement.
Is there a better way to do this?
Edit:
It looks like startwindpoint / defer window pose / endivewindows pose < / Code> Way to go However, I can not seem to work with more than one window at a time. When I limit the window list to a window, it works correctly when there are several windows in the list, only one of them appears. Here's the foxy code of what I'm doing:
HWND [] windows; HWWT final wadowhal = 0; HDWP Position Stretcher = BigDype Window POS (Windows Cloud); (Int i = 0; i & lt; windows.length; i ++) {positionStructure = DeferWindowPos (position structure, window [i], final wallowhal, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); } Endvarvindopos (position structure); I'm sure this is something small / clear that I'm missing here, but I'm not seeing it.
There is a special set of APIs for setting window positions for several windows: + Defer Windowopos + EndiveWindo POS (set windowoption will definitely work in a loop, but it can be more flicker)
Comments
Post a Comment