// ObjectWindows - (C) Copyright 1991 by Borland International

//
// BWCC.H
//


// Purpose:    borland custom controls

#define BWCCVERSION	0x0100

#define BORDLGCLASS	"BorDlg"	// Our Custom Dialog class
#define BORDLGPROP	"FB"		// Borland dialog window uses
					// this property for instance data
					// users should not use a property
					// with this name!

#define IDHELP		998             // Id of help button

// button style definitions:

// the Borland buttons use Windows button styles for button
// type: i.e. BS_PUSHBUTTON/BS_DEFPUSHBUTTON


#define BUTTON_CLASS	"BorBtn"	// Our Bitmap Buttons
#define RADIO_CLASS	"BorRadio"	// Our radio buttons
#define CHECK_CLASS	"BorCheck"	// Our Checkboxes

// styles

#define BBS_BITMAP       0x8000L	// this is a bitmap static
#define BBS_DLGPAINT     0x4000L	// used at runtime by dialog class
#define BBS_PARENTNOTIFY 0x2000L	// Notify parent of TAB keys and focus
#define BBS_OWNERDRAW    0x1000L	// let parent paint via WM_DRAWITEM

// messages

#define BBM_SETBITS       ( BM_SETSTYLE + 10)

// notifications

#define BBN_SETFOCUS      ( BN_DOUBLECLICKED + 10)
#define BBN_SETFOCUSMOUSE ( BN_DOUBLECLICKED + 11)
#define BBN_GOTATAB       ( BN_DOUBLECLICKED + 12)
#define BBN_GOTABTAB      ( BN_DOUBLECLICKED + 13)

#define SHADE_CLASS	"BorShade"

#define BSS_GROUP	1L	// group box
#define BSS_HDIP	2L	// horizontal border
#define BSS_VDIP	3L	// hertical border
#define BSS_HBUMP	4L	// horizontal speed bump
#define BSS_VBUMP	5L	// vertical speed bump

#define BSS_DLGERASE	0x8000L // Dialog Window erases for us
#define BSS_DLGPAINT	0x4000L	// Dialog Window paints for us

#define STATIC_CLASS	"BorStatic"	// Our statics

#if !defined(EXPORT)
#define EXPORT _export
#endif

#if defined( __cplusplus )
extern "C" {
#endif  /* __cplusplus */

extern HANDLE FAR EXPORT PASCAL SpecialLoadDialog
(
	HANDLE  hResMod,
	const   LPSTR   lpResName,
	const   FARPROC fpDlgProc
);

extern HANDLE FAR EXPORT PASCAL MangleDialog
(
	HANDLE hDlg,
	HANDLE hResources,
	FARPROC fpDialogProc
);

extern LONG FAR EXPORT PASCAL BWCCDefDlgProc
(
	HWND hWnd,
	WORD message,
	WORD wParam,
	LONG lParam
);
extern LONG FAR EXPORT PASCAL BWCCDefWindowProc
(
	HWND hWnd,
	WORD message,
	WORD wParam,
	LONG lParam
);

extern LONG FAR EXPORT PASCAL BWCCDefMDIChildProc
(
	HWND hWnd,
	WORD message,
	WORD wParam,
	LONG lParam
);

extern int FAR EXPORT PASCAL BWCCMessageBox
(
	HWND hWndParent,
	LPSTR lpText,
	LPSTR lpCaption,
	WORD wType
);

extern HBRUSH FAR EXPORT PASCAL BWCCGetPattern( void );
extern WORD FAR EXPORT PASCAL BWCCGetVersion( void);

#if defined( __cplusplus )
}
#endif  /* __cplusplus */
