home *** CD-ROM | disk | FTP | other *** search
/ TestDrive Super Store 2.3 / TESTDRIVE_2.ISO / realizer / custctrl / custctrl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-30  |  2.0 KB  |  57 lines

  1. /***************************************************
  2.  
  3.     CustCtrl.h
  4.  
  5.     Header file for Realizer (tm) Custom Controls
  6.     
  7.     Copyright ⌐ 1991-1992 Computer Associates International, Inc.
  8.     All rights reserved.
  9.  
  10. ****************************************************/
  11.  
  12.  
  13. /* Custom Control messages */
  14. #define CCM_QDEFAULTSIZE    (WM_USER + 0x100)
  15. #define CCM_GETFLAGS        (WM_USER + 0x101)
  16. #define CCM_GETNUM            (WM_USER + 0x102)
  17. #define CCM_GETSTRCOUNT        (WM_USER + 0x103)
  18. #define CCM_GETSTRLEN        (WM_USER + 0x104)
  19. #define CCM_GETSTR            (WM_USER + 0x105)
  20. #define CCM_FORMSIZED        (WM_USER + 0x106)
  21. #define CCM_SETNUM            (WM_USER + 0x107)
  22. #define CCM_SETSTR            (WM_USER + 0x108)
  23. #define CCM_RESETCONTENT    (WM_USER + 0x109)
  24.  
  25.  
  26. /*    CCF_* are bit masks for responding to the CCM_GETFLAGS message.
  27.  *    Return a sum of these to the CCM_GETFLAGS message, or don't
  28.  *    process CCM_GETFLAGS at all to get the default settings.
  29.  */
  30. #define CCF_FOCUS        1
  31.     /* By default, custom control will not receive focus. */
  32.     /* If the custom control processes key events, it should set CCF_FOCUS */
  33.     /* and process WM_SETFOCUS, WM_KILLFOCUS, AND visibly show the focus. */
  34.  
  35. #define CCF_INITGRAY    2
  36.     /* By default, custom controls are initially _Normal (not _Gray). */
  37.  
  38. #define CCF_NOENABLES    4
  39.     /* By default, the item will get a WM_ENABLE message every time the */
  40.     /* form becomes front or leaves the front.  If this flag is set, the */
  41.     /* item will get enables only when its _Normal/_Gray-state changes. */
  42.  
  43.  
  44. /*    By convention, the first numeric modifier in the FormSetObject
  45.     may modify the style of the custom control.  If the control ordinarily
  46.     takes integer-range modifiers, this constant can distinguish
  47.     ordinary modifiers from style modifiers as in:
  48.         FormSetObject(rsID, "cc_class", ...; _CCSTYLE + flag1 + flag2 ...)
  49. */
  50. #define CCSTYLE        65536                /* matches Realizer's _CCStyle */
  51.  
  52.  
  53.  
  54. /*    User-defined messages should be small positive offsets to CCMBASE.
  55. */
  56. #define CCMBASE        (WM_USER + 0x110)    /* matches Realizer's _CCM */
  57.