Annotation of q_a/samples/subclass/subclass.h, revision 1.1.1.1

1.1       root        1: 
                      2: #define   IDM_BUTTON        101
                      3: #define   IDM_EDIT          102
                      4: #define   IDM_LIST          103
                      5: #define   IDM_TEST          110
                      6: 
                      7: 
                      8: 
                      9: /* function prototypes for the window procedures. */
                     10: long FAR PASCAL MainWndProc(HWND, UINT, UINT, LONG);
                     11: long FAR PASCAL SubclassWndProc(HWND, UINT, UINT, LONG);
                     12: 
                     13: VOID QueryWindowPos (HWND, LPRECT);
                     14: VOID PaintRect (HWND, LPRECT);
                     15: VOID SubclassWindow (HWND, WNDPROC);
                     16: DWORD ToggleMenu (HMENU, UINT);
                     17: LONG ShiftlParam(HWND, HWND, LONG);
                     18: 
                     19: 
                     20: 
                     21: #define WM_SC_CREATE  WM_USER+1
                     22: 
                     23: 
                     24: 
                     25: /* Different "Tracking actions." */
                     26: #define ACTIONNONE    0x0000
                     27: #define ACTIONMOVE    0x0001
                     28: #define ACTIONSIZEX   0x0002
                     29: #define ACTIONSIZEY   0x0004
                     30: #define ACTIONSIZEXY  0x0006
                     31: 
                     32: 
                     33: /* misc. defines for drawing and formating */
                     34: #define INC   5
                     35: #define EPSILON  (float) 0.0001
                     36: #define MAXCHARS 32
                     37: #define MINSIZE 5
                     38: 
                     39: 
                     40: /* Global variables. */
                     41: HWND   hwndMain;
                     42: HANDLE hInst;
                     43: BOOL   fTestMode;
                     44: 
                     45: 
                     46: /* structure pointed at by the extra user bytes. */
                     47: typedef struct tagExtraBytes{
                     48:     WNDPROC    pfnOldProc;
                     49:     RECT       rect;
                     50:     int        Action;   /* ACTIONSIZEXY, ACTIONMOVE, ... */
                     51: } ExtraBytes, *PExtraBytes;

unix.superglobalmegacorp.com

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