home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / borhead.zip / BPMCC.H < prev    next >
C/C++ Source or Header  |  1994-11-09  |  3KB  |  124 lines

  1. // Copyright 1992 by Borland International
  2.  
  3. //
  4. // BPMCC.H
  5. //
  6.  
  7.  
  8. #if !defined(__BPMCC_H)
  9.  
  10. #define __BPMCC_H
  11.  
  12. #if !defined(WORKSHOP_INVOKED)
  13.  
  14. #if !defined(OS2_INCLUDED)
  15. #include <os2.h>
  16. #endif
  17.  
  18.  
  19.  
  20. #endif
  21.  
  22.  
  23. // Purpose:    Borland Presentation  Manager Custom Controls  (BPMCC)
  24.  
  25. #define BPMCCVERSION    0x0100   // version 1.00
  26.  
  27.  
  28.  
  29. // from version 1.02 onward BPMCCGetversion returns a DWORD
  30. // The low-order word contains the version number
  31. // and the high-order word contains the locale
  32.  
  33. #define BPMCC_LOCALE_US     1
  34. #define BPMCC_LOCALE_JAPAN  2
  35.  
  36.  
  37.  
  38. // Borland custom control classes
  39.  
  40. #define BUTTON_CLASS    "BorBtn"    // Our Bitmap Buttons
  41. #define RADIO_CLASS    "BorRadio"    // Our Radio Buttons
  42. #define CHECK_CLASS    "BorCheck"    // Our Check Boxes
  43. #define SHADE_CLASS    "BorShade"    // Our shade boxes & lines
  44.  
  45. // button style definitions:
  46.  
  47. #define BBS_PUSHBUTTON       0x0000L
  48. #define BBS_CHECKBOX         0x0001L
  49. #define BBS_AUTOCHECKBOX     0x0002L
  50. #define BBS_RADIOBUTTON      0x0003L
  51. #define BBS_AUTORADIOBUTTON  0x0004L
  52. #define BBS_3STATE           0x0005L
  53. #define BBS_AUTO3STATE       0x0006L
  54. #define BBS_PRIMARYSTYLES    0x000FL
  55.  
  56. #define BBS_PARENTNOTIFY     0x0020L    // Notify parent of TAB keys and focus
  57. #define BBS_BITMAP           0x0040L    // this is a bitmap static
  58. #define BBS_HELP             0x0100L    // generate WM_HELP instead of WM_COMMAND
  59. #define BBS_SYSCOMMAND         0x0200L
  60. #define BBS_DEFAULT          0x0400L
  61. #define BBS_NOPOINTERFOCUS   0x0800L
  62. #define BBS_GRAYONLY         0x1000L     // Control always on gray background
  63. #define BBS_NOCURSORSELECT   0x2000L
  64. #define BBS_OWNERDRAW        0x8000L    // let parent paint via WM_DRAWITEM
  65.  
  66.  
  67. // messages
  68.  
  69. #define BBM_SETBITS       ( BM_SETDEFAULT + 10)
  70.  
  71. // notifications
  72.  
  73. #define BBN_SETFOCUS      ( BN_PAINT + 10)
  74. #define BBN_SETFOCUSMOUSE ( BN_PAINT + 11)
  75. #define BBN_GOTATAB       ( BN_PAINT + 12)
  76. #define BBN_GOTABTAB      ( BN_PAINT + 13)
  77.  
  78. // Add'l Owner Draw notification code for check boxes & radio buttons
  79.  
  80. #define BBDS_CHECKED  0x0800
  81.  
  82.  
  83. #define BSS_GROUP     1L  // recessed group box
  84. #define BSS_HDIP      2L  // horizontal border
  85. #define BSS_VDIP      3L  // vertical border
  86. #define BSS_HBUMP     4L  // horizontal speed bump
  87. #define BSS_VBUMP     5L  // vertical speed bump
  88. #define BSS_RGROUP    6L  // raised group box
  89. #define BSS_TYPEMASK  7L  // mask off shade type
  90.  
  91. #define BSS_CAPTION   0x8000L // Set off the caption
  92. #define BSS_CTLCOLOR  0x4000L // Send WM_CTLCOLOR messages to parent of control
  93. #define BSS_NOPREFIX  0x2000L // ~ in caption does not underline following letter
  94. #define BSS_GRAYONLY  0x1000L // always use gray background
  95. #define BSS_LEFT      0x0000L // Caption is left-justified
  96. #define BSS_CENTER    0x0100L // Caption is centered
  97. #define BSS_RIGHT     0x0200L // Caption is right-justified
  98. #define BSS_ALIGNMASK 0x0300L
  99.  
  100.  
  101. #if !defined(EXPORT)
  102. #define EXPORT _export
  103. #endif
  104.  
  105. #if !defined(PASCAL)
  106. #define PASCAL _pascal
  107. #endif
  108.  
  109. #if defined( __cplusplus )
  110. extern "C" {
  111. #endif  /* __cplusplus */
  112.  
  113.  
  114. extern ULONG  EXPORT PASCAL BPMCCGetVersion( void);
  115. extern USHORT EXPORT PASCAL BPMCCMessageBox(HWND hwndParent, HWND hwndOwner, PSZ pszText,
  116.                         PSZ pszTitle,USHORT usWindow, ULONG flStyle);
  117.  
  118. #if defined( __cplusplus )
  119. }
  120. #endif  /* __cplusplus */
  121.  
  122. #endif  /* __BPMCC_H */
  123.  
  124.