Appendix A: System Routines — Windows
1151
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
WinActivate
Declaration:
void
WinActivate
(WINDOW
* w
)
Category(ies):
Windows
Description:
Make the window the current active window. This will cause the following
events:
1. The currently active window will be deactivated (its border will be
changed to a single-line border).
2. The border for the window will switch to a double-line border. (Unless it
is a full screen window.)
3. The current screen state will be reset to the current windows defaults
(draw attributes, current X, Y location, . . . ).
4. The window will be marked as visible (see
WinHide
).
Inputs:
w
— WINDOW struct of a previously opened window.
Outputs:
None
Assumptions:
None
Side Effects:
Deactivates the currently active window.
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: WinBeginPaint, WinDeactivate, WinHide
Example:
/* When a app gets the CM_ACTIVATE message it usually activates its window. */
case CM_ACTIVATE:
EV_defaultHandler(e);
WinBeginPaint( &appW );
WinActivate( &appW );
break;