home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 7.ddi / WINCLUDE.ZIP / BWCC.H next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  3.2 KB  |  143 lines

  1. // ObjectWindows - (C) Copyright 1991,1992 by Borland International
  2.  
  3. //
  4. // BWCC.H
  5. //
  6.  
  7.  
  8. #if !defined(__BWCC_H)
  9. #define __BWCC_H
  10.  
  11. #if !defined(WORKSHOP_INVOKED)
  12.  
  13. #if !defined(__WINDOWS_H)
  14. #include <windows.h>
  15.  
  16. #endif
  17.  
  18. #endif
  19.  
  20. // Purpose:    Borland Windows Custom Controls  (BWCC)
  21.  
  22. #define BWCCVERSION    0x0102   // version 1.02
  23.  
  24. // from version 1.02 onward BWCCGetversion returns a DWORD
  25. // The low-order word contains the version number
  26. // and the high-order word contains the locale
  27.  
  28. #define BWCC_LOCALE_US     1
  29. #define BWCC_LOCALE_JAPAN  2
  30.  
  31.  
  32. #define BORDLGCLASS    "BorDlg"    // Our Custom Dialog class
  33. #define BORDLGPROP    "FB"        // Borland dialog window uses
  34.                     // this property for instance data
  35.                     // users should not use a property
  36.                     // with this name!
  37.  
  38. #define IDHELP        998             // Id of help button
  39.  
  40. // button style definitions:
  41.  
  42. // the Borland buttons use Windows button styles for button
  43. // type: i.e. BS_PUSHBUTTON/BS_DEFPUSHBUTTON
  44.  
  45.  
  46. #define BUTTON_CLASS    "BorBtn"    // Our Bitmap Buttons
  47. #define RADIO_CLASS    "BorRadio"    // Our Radio Buttons
  48. #define CHECK_CLASS    "BorCheck"    // Our Check Boxes
  49.  
  50. // styles
  51.  
  52. #define BBS_BITMAP       0x8000L    // this is a bitmap static
  53. #define BBS_DLGPAINT     0x4000L    // used at runtime by dialog class
  54. #define BBS_PARENTNOTIFY 0x2000L    // Notify parent of TAB keys and focus
  55. #define BBS_OWNERDRAW    0x1000L    // let parent paint via WM_DRAWITEM
  56.  
  57. // messages
  58.  
  59. #define BBM_SETBITS       ( BM_SETSTYLE + 10)
  60.  
  61. // notifications
  62.  
  63. #define BBN_SETFOCUS      ( BN_DOUBLECLICKED + 10)
  64. #define BBN_SETFOCUSMOUSE ( BN_DOUBLECLICKED + 11)
  65. #define BBN_GOTATAB       ( BN_DOUBLECLICKED + 12)
  66. #define BBN_GOTABTAB      ( BN_DOUBLECLICKED + 13)
  67.  
  68. #define SHADE_CLASS    "BorShade"
  69.  
  70. #define BSS_GROUP    1L    // group box
  71. #define BSS_HDIP    2L    // horizontal border
  72. #define BSS_VDIP    3L    // vertical border
  73. #define BSS_HBUMP    4L    // horizontal speed bump
  74. #define BSS_VBUMP    5L    // vertical speed bump
  75.  
  76. #define BSS_DLGERASE    0x8000L // Dialog Window erases for us
  77. #define BSS_DLGPAINT    0x4000L    // Dialog Window paints for us
  78.  
  79. #define STATIC_CLASS    "BorStatic"    // Our statics
  80.  
  81. #if !defined(EXPORT)
  82. #define EXPORT _export
  83. #endif
  84.  
  85. #if defined( __cplusplus )
  86. extern "C" {
  87. #endif  /* __cplusplus */
  88.  
  89. extern HGLOBAL FAR EXPORT PASCAL SpecialLoadDialog
  90. (
  91.     HINSTANCE hResMod,
  92.     const   LPSTR   lpResName,
  93.     const   DLGPROC fpDlgProc
  94. );
  95.  
  96. extern HGLOBAL FAR EXPORT PASCAL MangleDialog
  97. (
  98.     HGLOBAL   hDlg,
  99.     HINSTANCE hResources,
  100.     DLGPROC   fpDialogProc
  101. );
  102.  
  103. extern LRESULT FAR EXPORT PASCAL BWCCDefDlgProc
  104. (
  105.     HWND   hWnd,
  106.     UINT   message,
  107.     WPARAM wParam,
  108.     LPARAM lParam
  109. );
  110. extern LRESULT FAR EXPORT PASCAL BWCCDefWindowProc
  111. (
  112.     HWND   hWnd,
  113.     UINT   message,
  114.     WPARAM wParam,
  115.     LPARAM lParam
  116. );
  117.  
  118. extern LRESULT FAR EXPORT PASCAL BWCCDefMDIChildProc
  119. (
  120.     HWND   hWnd,
  121.     UINT   message,
  122.     WPARAM wParam,
  123.     LPARAM lParam
  124. );
  125.  
  126. extern int FAR EXPORT PASCAL BWCCMessageBox
  127. (
  128.     HWND   hWndParent,
  129.     LPCSTR lpText,
  130.     LPCSTR lpCaption,
  131.     UINT   wType
  132. );
  133.  
  134. extern HBRUSH FAR EXPORT PASCAL BWCCGetPattern( void );
  135. extern DWORD FAR EXPORT PASCAL BWCCGetVersion( void);
  136.  
  137. #if defined( __cplusplus )
  138. }
  139. #endif  /* __cplusplus */
  140.  
  141. #endif  /* __BWCC_H */
  142.  
  143.