/*[]=====================================================================[]*/ /*[] LEADTOOLS for Windows - []*/ /*[] []*/ /*[] []*/ /*[] Copyright (c) 1991-2000 LEAD Technologies, Inc. []*/ /*[] All Rights Reserved. []*/ /*[]=====================================================================[]*/ #define DO_FLIP 1 #define DO_INTENSITY 2 #define DO_COLORRES 3 #define DO_RESIZE 4 #define DO_ROTATE 5 #define DO_QUIT 6 #ifndef UNREFERENCED_PARAMETER #define UNREFERENCED_PARAMETER(P) \ { \ (P) = (P); \ } #endif typedef struct tagDATA { HPALETTE hPalette; /* Logical Palette used for painting. */ L_TCHAR szFilename[128]; /* File name to load. */ FILEINFO FileInfo; /* FILEINFO structure. */ BITMAPHANDLE BitmapHandle; /* BITMAP HANDLE to hold the image. */ L_CHAR ProcessNum; /* Operation to do. */ } DATA; L_INT nTimer; /* Timer used for display delay. */ L_INT nCount; /* Counter used with Timer. */ L_BOOL bResetCount; /* Flag for resetting the counter. */ L_BOOL bFirst; /* First time processing? */ RECT rWndSize; /* RECT for initially sizing the window. */ DATA Data; /* Pointer to DATA structure. */ #define RECTWIDTH(lpRect) (((LPRECT) lpRect)->right - ((LPRECT) lpRect)->left) #define RECTHEIGHT(lpRect) (((LPRECT) lpRect)->bottom - ((LPRECT) lpRect)->top) L_BOOL InitApplication (HANDLE hInstance); L_BOOL InitInstance (HANDLE hInstance, L_INT nCmdShow); L_INT32 EXT_FUNCTION MainWndProc (HWND hWnd, L_UINT Message, WPARAM wParam, LPARAM lParam); BOOL Window_OnCreate (HWND hwnd, CREATESTRUCT FAR * lpCreateStruct); VOID Window_OnTimer (HWND hWnd, UINT id); VOID Window_OnPaletteChanged (HWND hWnd, HWND hWndPaletteChange); BOOL Window_OnQueryNewPalette (HWND hWnd); VOID Window_OnActivate(HWND hwnd, UINT state, HWND hwndActDeact, BOOL fMinimized); VOID Window_OnPaletteChanging(HWND hWnd, HWND hWndPaletteChange); VOID Window_SysColorChange(HWND hwnd); VOID Window_OnPaint (HWND hwnd); VOID Window_OnDestroy (HWND hwnd);