Hi Paul,
Perhaps if I explain what I was thinking of doing, you will understand my badly phrased question better.
In the background, there is a main window with a graphics area. Selecting one of several menu options brings up a data input 'form' (window). On that window, there is 'calculate' button. When that is pressed, the call back routine does the calculations and draws the resulting objects on the graphics area in the main window.
However, as the main window is resizable, it could be entirely behind the data input form, and then it looks as though nothing has happened but a brief flash.
Hence, although I wanted the form to stay displayed, I want the underlying master window to be most obvious. I have had various experiments, and decided that the best thing to do was to reduce the data input form window in size, but to park it somewhere where it can be seen. Eventually, I decided that %ww[minimise] combined with a move_window@ did what I wanted - which is to park the data entry form in an appropriate place on the graphics area where it can be seen, but doesn't cover anything much.
ShowWindow with SW_SHOW and SW_HIDE are indeed useful, and I guess that the advice on not using Show Window isn't against this usage, but against creating and destroying the window with the API function, as it could leave some Clearwin+ routines 'dangling'. However, you can't use ShowWindow (with SW_HIDE) while you are building a Clearwin window, as it doesn't work until the window is displayed - maybe it would work in a %sc callback, although I didn't try that - and after the window ws displayed, you lose immediate programming control if the window is 'modal'.
In looking up ShowWindow in the include files, I saw that it was a Boolean function, which is of course a logical (no pun intended!) translation of what is in the MSDN help info. This does mean that in the invocation:
IW = ShowWindow ( SW_HIDE, IHANDLE)
... IW has to be Logical as there is no logical to integer type coercion, even though FTN95 treats .true. and .false. as 0 and 1 (I forget which way round).
Anyway, I learnt a lot in my excursion into the API, so thanks.
Eddie