var<br> sText: string;<br>...<br>SendMessage(StatusBar.Handle, SB_GETTEXT, 0, Integer(PChar(sText)));<br><br>以下是MSDN中对消息SB_GETTEXT的解释:<br>The SB_GETTEXT message retrieves the text from the specified part of a status window. <br><br>SB_GETTEXT <br> wParam = (WPARAM) iPart; <br> lParam = (LPARAM) (LPSTR) szText; <br><br>Parameters<br>iPart <br> Zero-based index of the part from which to retrieve text. <br>szText <br> Pointer to the buffer that receives the text. This parameter is a null-terminated string. <br><br>Return Values<br>Returns a 32-bit value that consists of two 16-bit values. The low word specifies the length, in characters, of the text. The high word specifies the type of operation used to draw the text. The type can be one of the following values: 0 The text is drawn with a border to appear lower than the plane of the window. <br>SBT_NOBORDERS The text is drawn without borders. <br>SBT_POPOUT The text is drawn with a border to appear higher than the plane of the window. <br>SBT_RTLREADING The text will be displayed in the opposite direction to the text in the parent window. <br><br><br>If the text has the SBT_OWNERDRAW drawing type, this message returns the 32-bit value associated with the text instead of the length and operation type. <br><br>Remarks<br>Normal windows display text left-to-right (LTR). Windows can be mirrored to display languages such as Hebrew or Arabic that read right-to-left (RTL). If SBT_RTLREADING is set, the szText string will read in the opposite direction from the text in the parent window.<br><br>