home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
warptlk3.zip
/
TOOLKIT
/
BETA
/
SAMPLES
/
ENTOOLKT
/
VIDEO
/
FSDIVE
/
FSDIVE.H
< prev
next >
Wrap
Text File
|
1995-08-24
|
4KB
|
97 lines
/**************************************************************************
*
* File Name : FSDIVE.H
*
* Description : global data header for FSDIVE.EXE
*
* Copyright : COPYRIGHT IBM CORPORATION, 1991, 1992
*
* DISCLAIMER OF WARRANTIES. The following [enclosed] code is
* sample code created by IBM Corporation. This sample code is not
* part of any standard or IBM product and is provided to you solely
* for the purpose of assisting you in the development of your
* applications. The code is provided "AS IS", without
* warranty of any kind. IBM shall not be liable for any damages
* arising out of your use of the sample code, even if they have been
* advised of the possibility of such damages.
*
****************************************************************************/
/* Menu items definitions
*/
#define ID_MAINWND 256
#define ID_OPTIONS 257
#define ID_SNAP 258
#define ID_EXIT 259
#define ID_NEWTEXT 260
#define ID_QUERY 261
#define ID_DIRECT 263
#define ID_USEDIVE 264
#define ID_FULLSCR 265
#define ID_DIALOG 262
#define ID_EF_11 11
#define ID_EF_12 12
#define ID_EF_13 13
#define ID_EF_14 14
#define ID_EF_15 15
#define ID_EF_16 16
#define ID_EF_17 17
#define ID_EF_18 18
#define ID_EF_19 19
#define ID_EF_20 20
#define WM_GetVideoModeTable 0x04A2
#define WM_SetVideoMode 0x04A0
#define WM_NotifyVideoModeChange 0x04A1
/* Maximum number of files to support
*/
#define MAX_FILE 14 /* Maximum number of bitmap files */
/* Windoe data structure
*/
typedef struct _WINDATA
{
BOOL fStartBlit;
BOOL fVrnDisabled; /* ???? Visual region enable/disable */
BOOL fChgSrcPalette; /* Flag for change of source palette */
BOOL fDataInProcess; /* ???? Visual region enable/disable */
BOOL fDirect; /* Indicates direct access or blit */
HWND hwndFrame; /* Frame window handle */
HWND hwndClient; /* Client window handle */
HDIVE hDive; /* DIVE handle */
ULONG ulnumColor; /* Number of colors in bitmaps */
ULONG ulWidth; /* Bitmap width in pels */
ULONG ulHeight; /* Bitmap Height in pels */
FOURCC fccColorFormat; /* Bitmap color format */
ULONG ulMaxFiles; /* Number of bimap files showing */
TID tidBlitThread; /* Thread ID for blitting routine */
ULONG ulSrcLineSizeBytes; /* source linesize */
LONG cxWidthWindow; /* Size of width of frame window */
LONG cyHeightWindow; /* Size of height of frame window */
LONG cxWidthBorder; /* Size of width of vertical border */
LONG cyWidthBorder; /* Size of width of horizontal border */
LONG cyTitleBar; /* Size of title bar */
LONG cyMenu; /* Size of menu */
LONG cxWindowPos; /* X position of frame window */
LONG cyWindowPos; /* Y position of frmae window */
POINTL plWindowPos; /* Position of display window */
RECTL rcls[50]; /* Visible region rectangles */
ULONG ulNumRcls; /* Number of visible region rectangles */
ULONG ulLineSizeBytes; /* Size of scan line bounded by window */
ULONG ulColorSizeBytes; /* Number of bytes per pel */
SWP swp; /* Standard window position structure */
} WINDATA, *PWINDATA;
typedef PBYTE *PPBYTE;