#Windows
30-Aug-90 05:36:37
Sb: #118289-#Windows
Fm: Scott Litvinoff 72407,2626
To: Robert Albrecht 76154,1375
To turn a GIMMEZEROZERO window into a BACKDROP window simply use this code:
window->Flags^=GIMMEZEROZERO; RefreshWindowFrame(window); Forbid();
window->RPort->Layer->Flags|=BACKDROP; Permit(); BehindLayer(window);
window->Flags|=GIMMEZEROZERO; RefreshWindowFrame(window);
and there you have a BACKDROP GIMMEZEROZERO window.
to make the same window back to a normal window again use this:
window->Flags^=GIMMEZEROZERO; RefreshWindowFrame(window); Forbid();
window->RPort->Layer->Flags^=BACKDROP; Permit(); UpfrontLayer(window);
window->Flags|=GIMMEZEROZERO; RefreshWindowFrame(window);
and its back to normal
to use these routines with non-GZZ windows simply leave out the lines that
contain GIMMEZEROZERO and all the RefreshWindowFrame() calls.
The reason the actual change must be done while the window is not in GZZ
mode is that in GZZ mode the window border and what's in the window are in
separate layers.
Scott