The following screen shot shows the status bar in the Microsoft Windows Paint application. The status bar is the area at the bottom of the window that contains Help text and coordinate information. The window procedure for the status bar automatically sets the initial size and position of the window, ignoring the values specified in the CreateWindowEx function.
The width is the same as that of the parent window's client area. The height is based on the metrics of the font that is currently selected into the status bar's device context and on the width of the window's borders. The drawing area does not include the window's borders. A minimum height is useful for drawing in an owner-drawn status bar.
For more information, see Owner-Drawn Status Bars later in this chapter. The message includes the address of a three-element array that receives the widths. A status bar can have many different parts, each displaying a different line of text.
The array contains one element for each part, and each element specifies the client coordinate of the right edge of a part. A status bar can have a maximum of parts, although applications typically use far fewer than that.
The drawing technique determines whether the text has a border and, if it does, the style of the border. It also determines whether the parent window is responsible for drawing the text. For more information, see the Owner-Drawn Status Bars section below.
By default, text is left-aligned within the specified part of a status bar. Text to the right of a single tab character is centered, and text to the right of a second tab character is right-aligned. These messages deal only with the part that has an index of zero, allowing you to treat the status bar much like a static text control.
Temporarily hide these elements to provide a more immersive experience. The Photos app, for example, hides the status bar and other interface elements when the user browses full-screen photos. Avoid permanently hiding the status bar. Without a status bar, people must leave your app to check the time or see if they have a Wi-Fi connection. Let people redisplay a hidden status bar by using a simple, discoverable gesture.
When browsing full-screen photos in the Photos app, a single tap shows the status bar again. The Word status bar displays the current page number of the document, total pages, number of words, and if there are any proofing errors.
If text is highlighted in the document, the number of words in that highlighted portion of text is displayed. A zoom slider is also displayed, allowing a user to zoom in or out of a document. All new browsers no longer have the option to show and hide the status bar. The below information is for users who are still using older browsers. The status bar in Windows Explorer is displayed by default, but only shows basic information about a select file or folder.
To see more details about a file, you can enable the Details pane using the steps below. Newer versions of Opera no longer have a full status bar. Instead, a pop-up mini status bar is displayed at the bottom left of the Opera window when hovering over a web page hyperlink. In older versions of Opera, the status bar can be shown or hidden by following the steps below.
0コメント