File:  [OS/2 SDKs] / pmsdk / samples / avioskel / skel.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:28:13 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: pmsdk-1988, HEAD
Microsoft OS/2 SDK PM 08-08-1988

#define CATTRBYTES 1
#define VIO_PS_ROWS 50
#define VIO_PS_COLUMNS 255
/**********************************************************************\
* Color definitions for background fill
\**********************************************************************/

#define LT_BLUE     0x0000007FL
#define WHITE       0x00FFFFFFL


/**********************************************************************\
* Count of msec for async message box and window flash rate
\**********************************************************************/

#define CMSECFLASH   1000
#define CMSECASYNC  10000


/**********************************************************************\
* Size of maximum string size allocated
\**********************************************************************/

#define CCHMAXSTRING   50


/**********************************************************************\
*  Resource Ids
\**********************************************************************/

#define ID_SKEL        1
#define IDD_ABOUT      2
#define IDD_SKEL       3


/**********************************************************************\
*  IDD - ID for Dialog item
*  IDM - ID for Menu commands
*  IDS - ID for String table
*  IDT - ID for Timers
\**********************************************************************/

#define IDNULL         -1

#define IDMOPTIONS     10
#define IDMFLASH       11
#define IDMABOUT       12
#define IDMCOMMANDS    20
#define IDMCOLOR       21
#define IDMBLACK       22
#define IDMDIALOG      23
#define IDMSTART       24
#define IDMEND         25

#define IDSCONTENT     10
#define IDSCLOSE       11
#define IDSOKCLOSE     12
#define IDSSAVE        13
#define IDSOKSAVE      14
#define IDSASYNC       15
#define IDSOKASYNC     16
#define IDSABOUT       18
#define IDSTITLE       19
#define IDSDEFAULT     20

#define IDTASYNC       18
#define IDTFLASH       19

/********************\
* The main procedure *
\********************/

SHORT cdecl main( int, char *[]);

/********************************************************************\
* These procedures must be declared FAR because they are exported
* and called by OS/2 Windows Presentation Manager.
\********************************************************************/

ULONG FAR PASCAL SkelAboutDlg( HWND, USHORT, MPARAM, MPARAM );
ULONG FAR PASCAL SkelWndProc ( HWND, USHORT, MPARAM, MPARAM );
BOOL  FAR PASCAL SkelInitApp ( VOID );


/********************************************************************\
*  These procedures are declared here to get type and parameter
*  checking for calls between modules.  The compiler switches -AS and
*  -AM for SMALL and MIDDLE model will make them NEAR and FAR
*  respectively, so there is no explicit declaration as NEAR or FAR.
\********************************************************************/

VOID SkelCharInput ( HWND, SHORT, SHORT, SHORT );
VOID SkelCommand   ( HWND, SHORT, SHORT, BOOL );
VOID SkelCreate    ( HWND, LONG );
VOID SkelEndSession( HWND, BOOL );
VOID SkelSetFocus  ( HWND );
VOID SkelHorzScroll( HWND, SHORT, SHORT );
VOID SkelPaint	   ( HWND, HPS );
VOID SkelQueryQuit ( HWND );
VOID SkelTimer	   ( HWND, USHORT );
VOID SkelVertScroll( HWND, SHORT, USHORT );
VOID InvisoCursor( VOID );

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.