home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 6.ddi / OWLDOC.ZIP / BWCC-OWL.DOC next >
Encoding:
Text File  |  1992-06-10  |  29.7 KB  |  952 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.                              Borland Windows Custom Controls
  21.                              _________________________________________
  22.  
  23.  
  24.  
  25.                              ObjectWindows for C++
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.                                                 Borland Windows Custom Controls
  83.  
  84.  
  85.  
  86.             The Borland Windows Custom Controls (BWCC) is a collection of
  87.             stylish custom controls that implement the look and feel of
  88.             Borland-style Windows dialog boxes, such as the dialog boxes in
  89.             Resource Workshop and Turbo Pascal for Windows.
  90.  
  91.  
  92.  
  93.             =================================================================
  94.             BWCC custom controls
  95.             =================================================================
  96.  
  97.             o Bitmapped push buttons
  98.  
  99.               These controls use bitmaps to implement the behavior of
  100.               standard windows push buttons. They also implement two
  101.               enhancements over Windows standard buttons.
  102.  
  103.             o Static bitmaps
  104.  
  105.               These controls implement a "non-pushable" bitmap style for
  106.               displaying "splash" images.
  107.  
  108.             o Radio buttons
  109.  
  110.               These radio buttons implement the behavior of standard Windows
  111.               radio buttons and auto-radio buttons but are in a more
  112.               attractive style than standard Windows radio buttons.
  113.  
  114.             o Check boxes
  115.  
  116.               These check boxes implement the behavior of standard Windows
  117.               check boxes and auto-check boxes but are in a more attractive
  118.               style than standard Windows check boxes.
  119.  
  120.  
  121.  
  122.  
  123.  
  124.             Page 1
  125.  
  126.  
  127.  
  128.             o Group boxes
  129.  
  130.               These controls provide areas that appear to be cut into the
  131.               "chiseled steel" background. Other controls can be placed on
  132.               these areas. Gray panels themselves are "static" controls,
  133.               meaning that the user does not interact with them at run time.
  134.  
  135.             o Dips and bumps
  136.  
  137.               These thin lines act as vertical and horizontal dividers within
  138.               a dialog.
  139.  
  140.               - Dips (derivation: speed dip) separate areas within a dialog.
  141.                 (Borland uses them to separate push buttons from the rest of
  142.                 the dialog's controls.)
  143.  
  144.               - Bumps (derivation: speed bump) separate areas within a group
  145.                 box.
  146.  
  147.             o Custom dialog class
  148.  
  149.               The Borland custom dialog class does two things:
  150.  
  151.               - It paints the dialog window background with a brush
  152.                 appropriate to the display device--speckled (chiseled steel)
  153.                 for monitors with VGA capabilities and higher, white for EGA
  154.                 and monochrome.
  155.  
  156.               - It optimizes dialog drawing by taking over from the custom
  157.                 controls and drawing them directly on the surface of the
  158.                 dialog window. This "turbo painting" allows Borland's dialogs
  159.                 to implement a sophisticated look without a sluggish feel.
  160.  
  161.  
  162.  
  163.             =================================================================
  164.             Using BWCC or Custom Buttons in a program
  165.             =================================================================
  166.  
  167.             Using BWCC in an ObjectWindows program is easy.
  168.  
  169.             1. In your C++ source files use the ObjectWindows BWCC "TB"
  170.                classes (presented later) in place of their plain "T" analogs.
  171.                Be sure to include the requisite BWCC header files.
  172.  
  173.             2. In resource files, edit dialog entries to specify Windows
  174.                class "BORDLG".
  175.  
  176.             3. To ensure that BWCC.DLL will be dynamically loaded along with
  177.                your program, include a call to BWCCGetVersion (defined in
  178.                INCLUDE\BWCC.H) somwhere in your application. By
  179.  
  180.  
  181.  
  182.  
  183.             Page 2
  184.  
  185.  
  186.  
  187.                convention, the call to BWCCGetVersion is in your application
  188.                class's InitMainWindow member function.
  189.  
  190.             4. Link your program with the import library LIB\BWCC.LIB.
  191.                You must link BWCC.LIB with your program before you link
  192.                IMPORT.LIB.
  193.  
  194.             5. Make the dynamic link library BWCC.DLL available to your
  195.                application to use at run time (in addition to OWL31.DLL). For
  196.                Windows to find it, it must be in one of the following places:
  197.  
  198.                o The same directory as your application's .EXE file
  199.  
  200.                o The Windows startup directory
  201.  
  202.                o The Windows system directory
  203.  
  204.                o A directory on your PATH
  205.  
  206.  
  207.  
  208.             =================================================================
  209.             Using Borland dialogs
  210.             =================================================================
  211.  
  212.             Borland dialogs must have their resource's Windows class set to
  213.             "BORDLG". Such a dialog may be referred to by a conventional
  214.             ObjectWindows TDialog class. Note that there is no TBDialog
  215.             class.
  216.  
  217.  
  218.  
  219.  
  220.             =================================================================
  221.             TBButton                                                BBUTTON.H
  222.             =================================================================
  223.  
  224.             Derived from TButton.
  225.  
  226.             TBButton is an interface class that represents a BWCC bitmap push
  227.             button interface element. You must use a TBButton to create a
  228.             button control in a parent TWindow. You can also use a TBButton
  229.             to facilitate communication between your application and the
  230.             button controls of a TDialog.
  231.  
  232.             There are two types of push buttons. A regular button appears
  233.             with a thin border. A default button appears with a thick border
  234.             and represents the default action of the window (if user presses
  235.             Enter). There can only be one default push button in a window.
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.             Page 3
  243.             TBButton
  244.  
  245.  
  246.                  Member
  247.               functions
  248.             constructor
  249.  
  250.             TBButton(PTWindowsObject AParent, int AnId, LPSTR AText, int X,
  251.                      int Y, int W, int H, BOOL IsDefault, PTModule AModule =
  252.                      NULL);
  253.  
  254.             Constructs a button object with the supplied parent window
  255.             (AParent), control ID (AnId), associated text (AText), position
  256.             (X, Y) relative to the origin of the parent window's client area,
  257.             width (W), and height (H). Invokes TButton's constructor with
  258.             similar parameters. Adds BS_DEFPUSHBUTTON to the default styles
  259.             set for the TBButton (in Attr.Style), if IsDefault is TRUE.
  260.             Otherwise, it adds BS_PUSHBUTTON.
  261.  
  262.             See also: TButton::TButton
  263.  
  264.             constructor
  265.  
  266.             TBButton(PTWindowsObject AParent, int ResourceId,
  267.                      PTModule AModule = NULL);
  268.  
  269.             Constructs a TBButton object to be associated with a button
  270.             control of a TDialog. Invokes the TButton constructor with
  271.             identical parameters; the TButton constructor calls
  272.             DisableTransfer to exclude the button from the transfer mechanism
  273.             because they have no data to be transferred.
  274.  
  275.             The ResourceId parameter must correspond to a button resource
  276.             that you define.
  277.  
  278.             See also: TButton::TButton, TWindowsObject::DisableTransfer
  279.  
  280.             constructor
  281.  
  282.             TBButton(StreamableInit);                               protected
  283.  
  284.             TBButton stream constructor. Invokes TButton's stream
  285.             constructor. Called when a TBButton is instantiated using data
  286.             from an input stream.
  287.  
  288.             See also: TButton::TButton
  289.  
  290.             build
  291.  
  292.             static PTStreamable build();
  293.  
  294.             Invokes the TBButton(StreamableInit) constructor. Constructs an
  295.             object of the type TBButton prior to reading in its data members
  296.             from a stream.
  297.  
  298.  
  299.  
  300.  
  301.             Page 4
  302.                                                               TBButton
  303.  
  304.  
  305.             GetClassName
  306.  
  307.             virtual LPSTR GetClassName();                           protected
  308.  
  309.             Returns the name of TBButton's Windows registration class,
  310.             "BORBTN".
  311.  
  312.             See also: TWindowsObject::GetWindowClass
  313.  
  314.  
  315.  
  316.             =================================================================
  317.             TBCheckBox                                              BCHKBOX.H
  318.             =================================================================
  319.  
  320.             Derived from TCheckBox.
  321.  
  322.             TBCheckBox is an interface object that represents a BWCC check
  323.             box interface element in Windows. You must use a TBCheckBox to
  324.             create a BWCC check box control in a parent TWindow. You can use
  325.             a TBCheckBox to facilitate communication between your application
  326.             and the check box controls of a TDialog.
  327.  
  328.             Check boxes have two states: checked and unchecked. Three-state
  329.             check boxes have an additional grayed state. TBCheckBox member
  330.             functions are concerned primarily with managing the check box's
  331.             state. Optionally, a check box can be part of a group (TGroupBox)
  332.             that visually and functionally groups its controls.
  333.  
  334.  
  335.                  Member
  336.               functions
  337.             TBCheckBox(PTWindowsObject AParent, int AnId, LPSTR ATitle, int
  338.                        X, int Y, int W, int H, PTGroupBox AGroup,
  339.                        PTModule AModule = NULL);
  340.  
  341.             Constructs a check box object with the specified parent window
  342.             (AParent), control ID (AnId), associated text (ATitle), position
  343.             (X, Y) relative to the origin of the parent window's client area,
  344.             width (W), height (H), and associated group box (AGroup).
  345.             TBCheckBox::TBCheckBox invokes a TCheckbox constructor which sets
  346.             the check box's Attr.Style data member to WS_CHILD | WS_VISIBLE |
  347.             WS_TABSTOP | BS_AUTOCHECKBOX.
  348.  
  349.             See also: TCheckBox::TCheckBox
  350.  
  351.             constructor
  352.  
  353.             TBCheckBox(PTWindowsObject AParent, int ResourceId, PTGroupBox
  354.                        AGroup, PTModule AModule = NULL);
  355.  
  356.  
  357.  
  358.  
  359.  
  360.             Page 5
  361.             TBCheckBox
  362.  
  363.  
  364.             Constructs a TBCheckBox object to be associated with a check box
  365.             control of a TDialog. ResourceId must correspond to a check box
  366.             resource in the resource file. Invokes a TCheckBox constructor
  367.             which sets Group to AGroup, and enables the data transfer
  368.             mechanism by calling EnableTransfer.
  369.  
  370.             See also: TCheckBox::TCheckBox, TWindowsObject::EnableTransfer
  371.  
  372.             constructor
  373.  
  374.             TBCheckBox(StreamableInit);                             protected
  375.  
  376.             TBCheckBox stream constructor. Invokes TCheckBox's stream
  377.             constructor. Called when a TBCheckBox is instantiated using data
  378.             from an input stream.
  379.  
  380.             See also: TCheckBox::TCheckBox
  381.  
  382.             build
  383.  
  384.             static PTStreamable build();
  385.  
  386.             Invokes the TBCheckBox(StreamableInit) constructor. Constructs an
  387.             object of the type TBCheckBox prior to reading in its data
  388.             members from a stream.
  389.  
  390.             GetClassName
  391.                                                                     protected
  392.             virtual LPSTR GetClassName();
  393.  
  394.             Returns the name of TBCheckBox's Windows registration class,
  395.             "BORCHECK".
  396.  
  397.  
  398.  
  399.             =================================================================
  400.             TBDivider                                              BDIVIDER.H
  401.             =================================================================
  402.  
  403.             Derived from TControl.
  404.  
  405.             A TBDivider is an interface object that represents a static BWCC
  406.             divider. Dividers come in two flavors: dips and bumps. Dips
  407.             separate areas within a dialog. Bumps separate areas within a
  408.             group box.
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.             Page 6
  420.                                                              TBDivider
  421.  
  422.  
  423.                  Member
  424.               functions
  425.             TBDivider(PTWindowsObject AParent, int AnId, LPSTR AText, int X,
  426.                       int Y, int W, int H, BOOL IsVertical, BOOL IsBump,
  427.                       PTModule AModule = NULL);
  428.  
  429.             Constructs a static control object with the supplied parent
  430.             window (AParent), control ID (AnId), text (ATitle), position (X,
  431.             Y) relative to the origin of the parent window's client area,
  432.             width (W) and height (H). By default, the static control is
  433.             visible upon creation. Adds one of BSS_VBUMP, BSS_VDIP,
  434.             BSS_HBUMP, or BSS_HDIP to Attr.Style depending on the values of
  435.             IsVertical and IsBump. Invokes a TControl constructor which sets
  436.             Attr.Style to WS_CHILD | WS_VISIBLE | WS_GROUP | WS_TABSTOP.
  437.  
  438.             See also: TControl::TControl
  439.  
  440.             constructor
  441.  
  442.             TBDivider(PTWindowsObject AParent, int ResourceId,
  443.                       PTModule AModule = NULL);
  444.  
  445.             Constructs a TBDivider object to be associated with a static
  446.             control interface control of a TDialog. Invokes the TControl
  447.             constructor with similar parameters. Disables the data transfer
  448.             mechanism by calling DisableTransfer.
  449.  
  450.             The ResourceId parameter must correspond to a static control
  451.             resource that you define.
  452.  
  453.             See also: TControl::TControl
  454.  
  455.             constructor
  456.  
  457.             TBDivider(StreamableInit);                              protected
  458.  
  459.             TBDivider stream constructor. Invokes TControl's stream
  460.             constructor. Called when a TBDivider is instantiated using data
  461.             from an input stream.
  462.  
  463.             See also: TControl::TControl
  464.  
  465.             build
  466.  
  467.             static PTStreamable build();
  468.  
  469.             Invokes the TBDivider(StreamableInit) constructor. Constructs an
  470.             object of the type TBDivider prior to reading in its data members
  471.             from a stream.
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478.             Page 7
  479.             TBDivider
  480.  
  481.  
  482.             GetClassName
  483.  
  484.             virtual LPSTR GetClassName();                           protected
  485.  
  486.             Returns the name of TBDivider's Windows registration class,
  487.             "BORSHADE".
  488.  
  489.  
  490.  
  491.             =================================================================
  492.             TBGroupBox                                              BGRPBOX.H
  493.             =================================================================
  494.  
  495.             Derived from TGroupBox.
  496.  
  497.             An instance of a TBGroupBox is an interface object that
  498.             represents a corresponding gray BWCC group box element.
  499.  
  500.             Group boxes don't serve an active purpose onscreen. They visually
  501.             unify a group of selection boxes (check boxes and radio buttons)
  502.             or other controls. Behind the scenes they can take an important
  503.             role in handling state changes for their group of controls
  504.             (normally check boxes or radio buttons).
  505.  
  506.             For example, you may want to respond to a selection change in any
  507.             one of a group of radio buttons in a similiar manner. You can do
  508.             this by deriving a class from TBGroupBox that redefines the
  509.             member function SelectionChanged.
  510.  
  511.             Alternatively, you could respond to selection changes in the
  512.             group of radio buttons by defining a response for the group box's
  513.             parent. To do so, define a child-ID-based response member
  514.             function, using the ID of the group box. The group box will
  515.             automatically send a child-ID-based message to its parent
  516.             whenever the radio button selection state changes.
  517.  
  518.  
  519.                  Member
  520.               functions
  521.  
  522.             TBGroupBox(PTWindowsObject AParent, int AnId, LPSTR AText, int X,
  523.                        int Y, int W, int H, PTModule AModule = NULL);
  524.  
  525.             Constructs a group box object with the supplied parent window
  526.             (AParent), control ID (AnId), associated text (AText), position
  527.             (X, Y) relative to the origin of the parent window's client area,
  528.             width (W), and height (H). Invokes the TGroupBox constructor with
  529.             similar parameters, which modifies Attr.Style by removing
  530.             WS_TABSTOP. The TBGroupBox constructor then removes BS_GROUPBOX
  531.             and adds BSS_GROUP to Attr.Style. NotifyParent is set to TRUE in
  532.             the TGroupBox constructor; by default, the group box's parent
  533.  
  534.  
  535.  
  536.  
  537.             Page 8
  538.                                                             TBGroupBox
  539.  
  540.  
  541.             will be notified when a selection change occurs in any of the
  542.             group box's controls.
  543.  
  544.             See also: TGroupBox::TGroupBox
  545.  
  546.             constructor
  547.  
  548.             TBGroupBox(PTWindowsObject AParent, int ResourceId,
  549.                        PTModule AModule = NULL);
  550.  
  551.             Constructs a TBGroupBox object to be associated with a group box
  552.             control of a TDialog. Invokes the TGroupBox constructor with
  553.             identical parameters, which calls DisableTransfer to exclude
  554.             group boxes from the transfer mechanism because they have no data
  555.             to be transferred.
  556.  
  557.             The ResourceId parameter must correspond to a group box resource
  558.             that you define.
  559.  
  560.             See also: TGroupBox::TGroupBox, TWindowsObject::DisableTransfer
  561.  
  562.             constructor
  563.  
  564.             TBGroupBox(StreamableInit);                             protected
  565.  
  566.             TBGroupBox stream constructor. Invokes TGroupBox's stream
  567.             constructor. Called when a TBGroupBox is instantiated using data
  568.             from an input stream.
  569.  
  570.             See also: TGroupBox::TGroupBox
  571.  
  572.             build
  573.  
  574.             static PTStreamable build();
  575.  
  576.             Invokes the TBGroupBox(StreamableInit) constructor. Constructs an
  577.             object of the type TBGroupBox prior to reading in its data
  578.             members from a stream.
  579.  
  580.             GetClassName
  581.  
  582.             virtual LPSTR GetClassName();                           protected
  583.  
  584.             Returns the name of TBGroupBox's Windows registration class,
  585.             "BORSHADE".
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.             Page 9
  597.             TBRadioButton
  598.  
  599.  
  600.             =================================================================
  601.             TBRadioButton                                            BRADIO.H
  602.             =================================================================
  603.  
  604.             Derived from TRadioButton.
  605.  
  606.             A TBRadioButton is an interface object that represents an
  607.             attractive BWCC radio button element. Use TBRadioButton to create
  608.             a radio button control in a parent TWindow. A TBRadioButton can
  609.             also be used to communicate between your application and the
  610.             radio button controls of a TDialog.
  611.  
  612.             Radio buttons have two states: checked and unchecked. Optionally,
  613.             a radio button can be part of a group (TGroupBox) that visually
  614.             and logically groups its controls.
  615.  
  616.  
  617.                  Member
  618.               functions
  619.             TBRadioButton(PTWindowsObject AParent, int AnId, LPSTR ATitle,
  620.                           int X, int Y, int W, int H, PTGroupBox AGroup,
  621.                           PTModule AModule = NULL);
  622.  
  623.             Constructs a radio button object with the supplied parent window
  624.             (AParent), control ID (AnId), associated text (ATitle), position
  625.             (X, Y) relative to the origin of the parent window's client area,
  626.             width (W), height (H), and associated group box (AGroup). Invokes
  627.             the TRadioButton constructor with similar parameters, which sets
  628.             the Attr.Style data member to WS_CHILD | WS_VISIBLE |
  629.             BS_AUTORADIOBUTTON.
  630.  
  631.             See also: TRadioButton::TRadioButton
  632.  
  633.             constructor
  634.  
  635.             TBRadioButton(PTWindowsObject AParent, int ResourceId,
  636.                           PTGroupBox AGroup, PTModule AModule = NULL);
  637.  
  638.             Constructs a TBRadioButton object to be associated with a radio
  639.             button control of a TDialog. Invokes the TRadioButton constructor
  640.             with identical parameters. The ResourceId parameter must
  641.             correspond to a radio button resource that you define.
  642.  
  643.             constructor
  644.  
  645.             TBRadioButton(StreamableInit);                          protected
  646.  
  647.             TBRadioButton stream constructor. Invokes TRadioButton's stream
  648.             constructor. Called when a TBRadioButton is instantiated using
  649.             data from an input stream.
  650.  
  651.             See also: TRadioButton::TRadioButton
  652.  
  653.  
  654.  
  655.             Page 10
  656.                                                          TBRadioButton
  657.  
  658.  
  659.             build
  660.  
  661.             static PTStreamable build();
  662.  
  663.             Invokes the TBRadioButton(StreamableInit) constructor. Constructs
  664.             an object of the type TBRadioButton prior to reading in its data
  665.             members from a stream.
  666.  
  667.             GetClassName
  668.  
  669.             virtual LPSTR GetClassName();                           protected
  670.  
  671.             Returns the name of TBRadioButton's Windows registration class,
  672.             "BORRADIO".
  673.  
  674.  
  675.  
  676.             =================================================================
  677.             TBStatic                                                BSTATIC.H
  678.             =================================================================
  679.  
  680.             Derived from TStatic.
  681.  
  682.             A TBStatic is an interface object that represents a static text
  683.             interface element in Windows. A TBStatic must be used to create a
  684.             static control in a parent TWindow. A TBStatic can also be used
  685.             to facilitate modifications to the text of static controls in
  686.             TDialogs.
  687.  
  688.  
  689.                  Member
  690.               functions
  691.  
  692.             TBStatic(PTWindowsObject AParent, int AnId, LPSTR ATitle, int X,
  693.                      int Y, int W, int H, WORD ATextLen, PTModule AModule =
  694.                      NULL);
  695.  
  696.             Constructs a static control object with the supplied parent
  697.             window (AParent), control ID (AnId), text (ATitle), position (X,
  698.             Y) relative to the origin of the parent window's client area,
  699.             width (W), height (H), and text length(ATextLen). By default, the
  700.             static control is visible upon creation and has left-justified
  701.             text. (Attr.Style is set to WS_CHILD | WS_VISIBLE | WS_GROUP |
  702.             SS_LEFT.) Invokes a TStatic constructor.
  703.  
  704.             See also: TStatic::TStatic
  705.  
  706.             constructor
  707.  
  708.             TBStatic(PTWindowsObject AParent, int ResourceId, WORD ATextLen,
  709.                      PTModule AModule = NULL);
  710.  
  711.  
  712.  
  713.  
  714.             Page 11
  715.             TBStatic
  716.  
  717.  
  718.             Constructs a TBStatic object to be associated with a static
  719.             control interface control of a TDialog. Invokes the TStatic
  720.             constructor with similar parameters, which sets TextLen to
  721.             ATextLen. Disables the data transfer mechanism by calling
  722.             DisableTransfer.
  723.  
  724.             The ResourceId parameter must correspond to a static control
  725.             resource that you define.
  726.  
  727.             See also: TStatic::TStatic
  728.  
  729.             constructor
  730.  
  731.             TBStatic(StreamableInit);                               protected
  732.  
  733.             TBStatic stream constructor. Invokes TStatic's stream
  734.             constructor. Called when a TBStatic is instantiated using data
  735.             from an input stream.
  736.  
  737.             See also: TStatic::TStatic
  738.  
  739.             build
  740.  
  741.             static PTStreamable build();
  742.  
  743.             Invokes the TBStatic(StreamableInit) constructor. Constructs an
  744.             object of the type TBStatic prior to reading in its data members
  745.             from a stream.
  746.  
  747.             GetClassName
  748.  
  749.             virtual LPSTR GetClassName();                           protected
  750.  
  751.             Returns the name of TBStatic's Windows registration class,
  752.             "BORSTATIC".
  753.  
  754.  
  755.  
  756.             =================================================================
  757.             TBStaticBmp                                            BSTATBMP.H
  758.             =================================================================
  759.  
  760.             Derived from TControl.
  761.  
  762.             A TBStaticBmp is an interface object that represents a static
  763.             BWCC bitmap interface element used for displaying splash images.
  764.             A TBStaticBmp must be used to create a bitmap control in a parent
  765.             TWindow. A TBStaticBmp can also be used to facilitate
  766.             modifications to the text of bitmap controls in TDialogs.
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.             Page 12
  774.                                                            TBStaticBmp
  775.  
  776.  
  777.                  Member
  778.               functions
  779.             TBStaticBmp(PTWindowsObject AParent, int AnId, LPSTR AText, int
  780.                         X, int Y, int W, int H, PTModule AModule = NULL);
  781.  
  782.             Constructs a static bitmap object with the supplied parent window
  783.             (AParent), control ID (AnId), text (ATitle), position (X, Y)
  784.             relative to the origin of the parent window's client area, width
  785.             (W), and height (H). By default, the static control is visible
  786.             upon creation. Invokes a TControl constructor.
  787.  
  788.             See also: TControl::TControl
  789.  
  790.             constructor
  791.  
  792.             TBStaticBmp(PTWindowsObject AParent, int ResourceId,
  793.                         PTModule AModule = NULL);
  794.  
  795.             Constructs a TBStaticBmp object to be associated with a static
  796.             bitmap interface control of a TDialog. Invokes the TControl
  797.             constructor with similar parameters. Disables the data transfer
  798.             mechanism by calling DisableTransfer.
  799.  
  800.             The ResourceId parameter must correspond to a static control
  801.             resource that you define.
  802.  
  803.             See also: TControl::TControl, TWindowsObject::DisableTransfer
  804.  
  805.             constructor
  806.  
  807.             TBStaticBmp(StreamableInit);                            protected
  808.  
  809.             TBStaticBmp stream constructor. Invokes TControl's stream
  810.             constructor. Called when a TBStaticBmp is instantiated using data
  811.             from an input stream.
  812.  
  813.             See also: TControl::TControl
  814.  
  815.             build
  816.  
  817.             static PTStreamable build();
  818.  
  819.             Invokes the TBStaticBmp(StreamableInit) constructor. Constructs
  820.             an object of the type TBStaticBmp prior to reading in its data
  821.             members from a stream.
  822.  
  823.             GetClassName
  824.  
  825.             virtual LPSTR GetClassName();                           protected
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.             Page 13
  833.             TBWindow
  834.  
  835.  
  836.             Returns the name of TBStaticBmp's Windows registration class,
  837.             "BORBTN".
  838.  
  839.  
  840.  
  841.             =================================================================
  842.             TBWindow                                                BWINDOW.H
  843.             =================================================================
  844.  
  845.             TBWindow is derived from TWindow.
  846.  
  847.             TBWindow is a generic window with a light gray background that
  848.             will look attractive with BWCC.
  849.  
  850.  
  851.                  Member
  852.               functions
  853.             TBWindow(PTBWindowsObject AParent, LPSTR ATitle, PTModule AModule
  854.                      = NULL);
  855.  
  856.             Constructs a gray-background window object with the parent window
  857.             supplied in AParent. (AParent should be NULL for main windows,
  858.             which have no parent.) The associated text, usually the window's
  859.             caption, is copied from ATitle.
  860.  
  861.             See also: TWindow::TWindow
  862.  
  863.             constructor
  864.  
  865.             TBWindow(StreamableInit);                               protected
  866.  
  867.             TBWindow stream constructor. Called when a TBWindow is
  868.             instantiated using data from an input stream.
  869.  
  870.             See also: TWindow::TWindow
  871.  
  872.             build
  873.  
  874.             static PTStreamable build();
  875.  
  876.             Invokes the TBWindow(StreamableInit) constructor. Constructs an
  877.             object of the type TBWindow prior to reading in its data members
  878.             from a stream.
  879.  
  880.             See also: TBWindow::TBWindow
  881.  
  882.             GetClassName
  883.  
  884.             virtual LPSTR GetClassName();                           protected
  885.  
  886.             Returns "TBWindow", the name of the default Windows registration
  887.             class for a TBWindow.
  888.  
  889.  
  890.  
  891.             Page 14
  892.                                                               TBWindow
  893.  
  894.  
  895.             GetWindowClass
  896.  
  897.             virtual void GetWindowClass(WNDCLASS & AWndClass);
  898.             Fills the WNDCLASS structure, supplied in AWndClass, with the
  899.             default registration attributes appropriate for a TBWindow. These
  900.             attributes are the same as those for a TWindow except that the
  901.             background color is set to LTGRAY_BRUSH.
  902.  
  903.             See also: TBWindow::GetClassName, TWindow::GetWindowClass,
  904.             TWindowsObject::Register, TBWindow::Create
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.             Page 15
  951.  
  952.