--- mstools/samples/plgblt/plgblt.h 2018/08/09 18:20:39 1.1.1.1 +++ mstools/samples/plgblt/plgblt.h 2018/08/09 18:21:35 1.1.1.2 @@ -2,8 +2,9 @@ /* function prototypes for the window procedures. */ -LRESULT MainWndProc(HWND, UINT, WPARAM, LPARAM); -LRESULT DlgProc (HWND, UINT, WPARAM, LPARAM); +LRESULT CALLBACK MainWndProc(HWND, UINT, WPARAM, LPARAM); +LRESULT CALLBACK DlgProc (HWND, UINT, WPARAM, LPARAM); +LRESULT CALLBACK About (HWND, UINT, WPARAM, LPARAM); VOID DrawGrids (HDC, int, int); @@ -25,16 +26,27 @@ VOID DrawGrids (HDC, int, int); #define DID_DRAW 200 +#define IDM_COPY 300 +#define IDM_PASTE 301 +#define IDM_BOTH 302 +#define IDM_SPINOFF 310 +#define IDM_FLIPONCE 311 +#define IDM_SPIN5 312 +#define IDM_SPIN10 313 +#define IDM_SPIN30 314 +#define IDM_SPIN60 315 +#define IDM_SPIN90 316 +#define IDM_SPINTOPLEFT 317 +#define IDM_SPINCENTER 318 +#define IDM_MODE_BLACKONWHITE 320 +#define IDM_MODE_COLORONCOLOR 321 +#define IDM_MODE_WHITEONBLACK 322 +#define IDM_MODE_HALFTONE 323 +#define IDM_ABOUT 330 -/* accelerator IDs */ -#define AID_PASTE 55 -#define AID_COPY 56 -#define AID_CYCLE 57 - - /* Misc. defines for size, color, and appearance of drawing. */ #define GRIDCOLOR (COLORREF) 0x01000006 @@ -51,3 +63,4 @@ VOID DrawGrids (HDC, int, int); #define WM_PUTUPSRCRECT WM_USER+21 #define WM_PUTUPMASKPT WM_USER+22 #define WM_PLGBLT WM_USER+23 +#define WM_SPIN WM_USER+24