home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / wksinst / rwbcinc.pak / BWCC.H next >
C/C++ Source or Header  |  1991-09-09  |  3KB  |  120 lines

  1. // ObjectWindows - (C) Copyright 1991 by Borland International
  2.  
  3. //
  4. // BWCC.H
  5. //
  6.  
  7.  
  8. // Purpose:    borland custom controls
  9.  
  10. #define BWCCVERSION    0x0100
  11.  
  12. #define BORDLGCLASS    "BorDlg"    // Our Custom Dialog class
  13. #define BORDLGPROP    "FB"        // Borland dialog window uses
  14.                     // this property for instance data
  15.                     // users should not use a property
  16.                     // with this name!
  17.  
  18. #define IDHELP        998             // Id of help button
  19.  
  20. // button style definitions:
  21.  
  22. // the Borland buttons use Windows button styles for button
  23. // type: i.e. BS_PUSHBUTTON/BS_DEFPUSHBUTTON
  24.  
  25.  
  26. #define BUTTON_CLASS    "BorBtn"    // Our Bitmap Buttons
  27. #define RADIO_CLASS    "BorRadio"    // Our radio buttons
  28. #define CHECK_CLASS    "BorCheck"    // Our Checkboxes
  29.  
  30. // styles
  31.  
  32. #define BBS_BITMAP       0x8000L    // this is a bitmap static
  33. #define BBS_DLGPAINT     0x4000L    // used at runtime by dialog class
  34. #define BBS_PARENTNOTIFY 0x2000L    // Notify parent of TAB keys and focus
  35. #define BBS_OWNERDRAW    0x1000L    // let parent paint via WM_DRAWITEM
  36.  
  37. // messages
  38.  
  39. #define BBM_SETBITS       ( BM_SETSTYLE + 10)
  40.  
  41. // notifications
  42.  
  43. #define BBN_SETFOCUS      ( BN_DOUBLECLICKED + 10)
  44. #define BBN_SETFOCUSMOUSE ( BN_DOUBLECLICKED + 11)
  45. #define BBN_GOTATAB       ( BN_DOUBLECLICKED + 12)
  46. #define BBN_GOTABTAB      ( BN_DOUBLECLICKED + 13)
  47.  
  48. #define SHADE_CLASS    "BorShade"
  49.  
  50. #define BSS_GROUP    1L    // group box
  51. #define BSS_HDIP    2L    // horizontal border
  52. #define BSS_VDIP    3L    // hertical border
  53. #define BSS_HBUMP    4L    // horizontal speed bump
  54. #define BSS_VBUMP    5L    // vertical speed bump
  55.  
  56. #define BSS_DLGERASE    0x8000L // Dialog Window erases for us
  57. #define BSS_DLGPAINT    0x4000L    // Dialog Window paints for us
  58.  
  59. #define STATIC_CLASS    "BorStatic"    // Our statics
  60.  
  61. #if !defined(EXPORT)
  62. #define EXPORT _export
  63. #endif
  64.  
  65. #if defined( __cplusplus )
  66. extern "C" {
  67. #endif  /* __cplusplus */
  68.  
  69. extern HANDLE FAR EXPORT PASCAL SpecialLoadDialog
  70. (
  71.     HANDLE  hResMod,
  72.     const   LPSTR   lpResName,
  73.     const   FARPROC fpDlgProc
  74. );
  75.  
  76. extern HANDLE FAR EXPORT PASCAL MangleDialog
  77. (
  78.     HANDLE hDlg,
  79.     HANDLE hResources,
  80.     FARPROC fpDialogProc
  81. );
  82.  
  83. extern LONG FAR EXPORT PASCAL BWCCDefDlgProc
  84. (
  85.     HWND hWnd,
  86.     WORD message,
  87.     WORD wParam,
  88.     LONG lParam
  89. );
  90. extern LONG FAR EXPORT PASCAL BWCCDefWindowProc
  91. (
  92.     HWND hWnd,
  93.     WORD message,
  94.     WORD wParam,
  95.     LONG lParam
  96. );
  97.  
  98. extern LONG FAR EXPORT PASCAL BWCCDefMDIChildProc
  99. (
  100.     HWND hWnd,
  101.     WORD message,
  102.     WORD wParam,
  103.     LONG lParam
  104. );
  105.  
  106. extern int FAR EXPORT PASCAL BWCCMessageBox
  107. (
  108.     HWND hWndParent,
  109.     LPSTR lpText,
  110.     LPSTR lpCaption,
  111.     WORD wType
  112. );
  113.  
  114. extern HBRUSH FAR EXPORT PASCAL BWCCGetPattern( void );
  115. extern WORD FAR EXPORT PASCAL BWCCGetVersion( void);
  116.  
  117. #if defined( __cplusplus )
  118. }
  119. #endif  /* __cplusplus */
  120.