OWLNext    7.0
Borland's Object Windows Library for the modern age
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
bwcc.h
Go to the documentation of this file.
1//
2/// \file
3/// Legacy support for Borland Windows Custom Controls (BWCC)
4//
5// Part of OWLNext - the next generation Object Windows Library
6// Copyright (c) 1995, 1996 by Borland International, All Rights Reserved
7//
8// For more information, including license details, see
9// http://owlnext.sourceforge.net
10//
11
12// Borland Windows Custom Controls
13// (C) Copyright 1991-1998 by Borland International
14
15
16
17#if !defined(__BWCC_H)
18#define __BWCC_H
19
20#if defined(OWL_SUPPORT_BWCC)
21
22#ifndef RC_INVOKED
23#pragma warn -nak /* Ignore non-ansi keywords */
24#endif
25
26#if !defined(WORKSHOP_INVOKED)
27
28#if !defined(__WINDOWS_H)
29#include <windows.h>
30
31#endif
32
33#endif
34
35#define BWCCVERSION 0x0200 // version 2.00
36
37// from version 1.02 onward BWCCGetversion returns a DWORD
38// The low-order word contains the version number
39// and the high-order word contains the locale
40
41#define BWCC_LOCALE_US 1
42#define BWCC_LOCALE_JAPAN 2
43
44
45#define BORDLGPROP "FB" // Borland dialog window uses
46 // this property for instance data
47 // users should not use a property
48 // with this name!
49
50#if !defined( IDHELP)
51
52#define IDHELP 998 // Id of help button
53
54#endif
55
56#define BORDLGCLASS "BorDlg" // Our Custom Dialog class
57#define BORGRAYCLASS "BorDlg_Gray" // Our Custom Dialog class - gray background
58#define BUTTON_CLASS "BorBtn" // Our Bitmap Buttons
59#define RADIO_CLASS "BorRadio" // Our Radio Buttons
60#define CHECK_CLASS "BorCheck" // Our Check Boxes
61#define STATIC_CLASS "BorStatic" // Our statics
62#define SHADE_CLASS "BorShade" // Our Group Boxes and Dividers
63
64#if !defined(EXPORT)
65#define EXPORT __declspec(dllexport)
66#endif
67
68#define BWCCAPI EXPORT APIENTRY
69
70// button style definitions:
71
72// the Borland buttons use Windows button styles for button
73// type: i.e. BS_PUSHBUTTON/BS_DEFPUSHBUTTON
74
75// styles
76
77#define BBS_BITMAP 0x8000L // this is a bitmap static
78#define BBS_PARENTNOTIFY 0x2000L // Notify parent of TAB keys and focus
79#define BBS_OWNERDRAW 0x1000L // let parent paint via WM_DRAWITEM
80
81// messages
82
83#define BBM_SETBITS ( BM_SETSTYLE + 10)
84
85// notifications
86
87#define BBN_SETFOCUS ( BN_DOUBLECLICKED + 10)
88#define BBN_SETFOCUSMOUSE ( BN_DOUBLECLICKED + 11)
89#define BBN_GOTATAB ( BN_DOUBLECLICKED + 12)
90#define BBN_GOTABTAB ( BN_DOUBLECLICKED + 13)
91#define BBN_MOUSEENTER ( BN_DOUBLECLICKED + 14)
92#define BBN_MOUSELEAVE ( BN_DOUBLECLICKED + 14)
93
94
95// The following is the name of the window message passed to
96// RegisterWindowMessage for CtlColor processing for group box shades:
97#define BWCC_CtlColor_Shade "BWCC_CtlColor_Shade"
98
99#define BSS_GROUP 1L // recessed group box
100#define BSS_HDIP 2L // horizontal border
101#define BSS_VDIP 3L // vertical border
102#define BSS_HBUMP 4L // horizontal speed bump
103#define BSS_VBUMP 5L // vertical speed bump
104#define BSS_RGROUP 6L // raised group box
105
106#define BSS_CAPTION 0x8000L // Set off the caption
107#define BSS_CTLCOLOR 0x4000L // Send WM_CTLCOLOR messages to parent of control
108#define BSS_NOPREFIX 0x2000L // & in caption does not underline following letter
109#define BSS_LEFT 0x0000L // Caption is left-justified
110#define BSS_CENTER 0x0100L // Caption is centered
111#define BSS_RIGHT 0x0200L // Caption is right-justified
112#define BSS_ALIGNMASK 0x0300L
113
114
115#if defined( __cplusplus )
116extern "C" {
117#endif /* __cplusplus */
118
120(
121
125);
126
128(
132);
133
135(
136 HWND hWnd,
140);
142(
143 HWND hWnd,
147);
148
149
151(
152 HWND hWnd,
156);
157
159(
160 HWND hWnd,
164);
165
166extern int BWCCAPI BWCCMessageBox
167(
171 UINT wType
172);
173
174
175extern HBRUSH BWCCAPI BWCCGetPattern( void );
176
177extern DWORD BWCCAPI BWCCGetVersion( void);
178
180
181extern BOOL BWCCAPI BWCCIntlTerm ( VOID );
182
184
185#if defined( __cplusplus )
186}
187#endif /* __cplusplus */
188
189#ifndef RC_INVOKED
190#pragma warn .nak /* Ignore non-ansi keywords */
191#endif
192
193#else //#if defined(OWL_SUPPORT_BWCC)
194
195#error bwcc.h should be include only when OWL_SUPPORT_BWCC is defined
196
197#endif //#if defined(OWL_SUPPORT_BWCC)
198
199#endif /* __BWCC_H */