Dialog Bar is similar to a dialog that is attached to the frame window. Since Dialog Bar can be edited using the resource editor, it is convenient to use it, and you can position the sub-window on the Dialog Bar when designing. Used to display some prompt characters. The CDIALOGBAR class is used in the MFC to use the various operations of the Dialog Bar control. Create a window, NidTemplate is a dialog resource, NStyle, which can use the window ID corresponding to the Dialog Bar, NStyle, the NStyle control, the NSTYLE, the NStyle, which is the window ID corresponding to the Dialog Bar. style:
CBRS_TOP DIALOG BAR TCBRS_BOTTOM DIALOG BAR at the top of the parent window CBRS_LIALOG BAR at the bottom of the parent window CBRS_RIGHT DIALOG BAR in the parent window on the right of the parent window
For the generated message of Dialog Bar, you need to map and process in the parent window. For example, the button on the Dialog Bar needs to perform on_bn_clicked or on_command mapping in the parent window. The input box on the Dialog Bar can do ON_EN_CHANGE in the parent window, ON_EN_MAXTEXT Wait for the mapping corresponding to the input box.
Dialog Bar supports the related operations of on_update_command_ui, such as setText, enable.