How can I set the text in the first section of the status bar, other than by using menu and toolbar prompts?
You can use SetWindowText to set the text in the first pane of the status bar. As a default setting, the first pane is a separator that automatically expands to fill the width of the status bar with the other panes right-justified on the bar. The SetWindowText function, called on the status bar variable, sets the text in the first pane only. If you want to set the text in any other pane, at any time other than in the ON_UPDATE_COMMAND_UI event handler, you can use the SetPaneText function. There are two ways that you can set the text in the main part of the status bar.
Related Questions
- Why can I click on items in the menu bar in Microsoft Office applications and why can I enter text into Microsoft Excel fields after using Alt-Tab to switch to a native Linux application?
- Why does the grey icon appear in the toolbar (Windows) or menu bar (Mac), even though the Vianect® transmitter is connected to the computer?
- Is there a trick to hide program menu and caption permanently, similar to toolbar and status bar?