OS/2, eCS & ArcaOS - Technical > Programming

Query pos. data of a minimized window


Andreas Schnellbacher:
Background: NEPMD supports save and restore of an EPM window. In the svn version I've even implemented to save and restore multiple EPM windows, but that doesn't matter.

That works with visible windows via WinQueryWindowPos (see NepmdQueryWindowPos in nepmdlib.c, line 1896) and WinSetWindowPos. (EPM is able to use C functions and window messages.)

Now I have a problem with minimized EPM windows. They open left bottom with small size, probably centered on 0, 0.

How can I query the pos. data for a minimized window and then also the minimized or maxmized state? (BTW: I found how to make minimized windows topmost, line 3688.)

OK, my own code for MakeWindowTopMost contains how to query the minimized state. It calls WinQueryWindowULong with QWL_STYLE. That one seems to be solved.


and you might have to force these values with WinSetWindowUShort on minimization, I am not sure.

Andreas Schnellbacher:
Thanks, I'll try.


[0] Message Index

Go to full version