Winbeginpaint - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Windows

WinBeginPaint

Declaration:
void WinBeginPaint (WINDOW * w )
Category(ies):
Windows
Description:
Save the current screen state and sets up the screen to draw for the
current window. WinBeginPaint is always paired with WinEndPaint which
restores the screen state.
Inputs:
w — WINDOW struct of a previously opened window.
Outputs:
None
Assumptions:
If an app has only one window then it can do a WinBeginPaint on its
CM_ACTIVATE message and a WinEndPaint on its CM_DEACTIVATE
message. If an app has multiple windows then routines that draw to
separate windows should have WinBeginPaint and WinEndPaint pairs
around them.
Side Effects:
The screen is setup to draw for this window.
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
WinEndPaint
Example:
CM_ACTIVATE:
EV_defaultHandler(e);
WinBeginPaint( &appW );
WinActivate( &appW );
WinStr( &appW, "Just activated\n" );
break;
case CM_DEACTIVATE:
WinEndPaint( &appW );
break;
TI-89 / TI-92 Plus Developer Guide
Not for Distribution
1155
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents