home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / WRITEPAD.PAK / RULER.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-06  |  2.3 KB  |  50 lines

  1. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  2. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  3. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  4. // PARTICULAR PURPOSE.
  5. //
  6. // Copyright (C) 1993-1995  Microsoft Corporation.  All Rights Reserved.
  7. //
  8. // PURPOSE:
  9. //    Contains declarations for the toolbar module.
  10. //
  11.  
  12. //-------------------------------------------------------------------------
  13.  
  14. // All measurements are in twips. A twip is 1440th of an inch, or 1/20th of a point
  15. #define RM_GETMARGINS       (WM_USER+1)  // lParam points to three int array (L,R,I)
  16. #define RM_SETMARGINS       (WM_USER+2)  // lParam points to three int array (L,R,I)
  17. #define RM_GETTABCOUNT      (WM_USER+3)  // Returns number of tabs in ruler
  18. #define RM_GETTABS          (WM_USER+4)  // wParam sez how many tabs to get, lParam points to int array
  19. #define RM_SETTABS          (WM_USER+5)  // wParam = num tabs, lParam = array of ints
  20.  
  21. #define IDB_RULER             800 // Bitmap ID to make Ruler Image List
  22. #define ID_RULER              42  // Window ID for ruler
  23.  
  24. #define RULER_MAXTABS 25
  25. #define SZRULERNAME "cls_framework_ruler"
  26.  
  27. typedef struct tagNMRULER
  28.   {
  29.   NMHDR nmhdr;
  30.   int   iLeft;
  31.   int   iRight;
  32.   int   iFirstLineIndent;
  33.   }
  34. NMRULER, FAR * LPNMRULER;
  35.  
  36. #define RN_CHANGEDSETTINGS  4242U
  37.  
  38. LRESULT MsgRulerCreate(HWND hdlg, UINT uMessage, WPARAM wparam, LPARAM lparam);
  39. LRESULT MsgRulerDestroy(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam);
  40. LRESULT MsgRulerEraseBkgnd(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam);
  41. LRESULT MsgRulerPaint(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam);
  42. LRESULT MsgRulerLButtonDown(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam);
  43. LRESULT MsgRulerLButtonUp(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam);
  44. LRESULT MsgRulerMouseMove(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam);
  45. LRESULT MsgRulerGetMargins(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam);
  46. LRESULT MsgRulerSetMargins(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam);
  47. LRESULT MsgRulerGetTabCount(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam);
  48. LRESULT MsgRulerGetTabs(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam);
  49. LRESULT MsgRulerSetTabs(HWND hwnd, UINT uMessage, WPARAM wparam, LPARAM lparam);
  50.