CStatusBar::SetPaneText

BOOLSetPaneText(intnIndex**,LPCTSTRlpszNewText,BOOLbUpdate=TRUE);**

Return Value

Nonzero if successful; otherwise 0.

Parameters

nIndex

Index of the pane whose text is to be set.

lpszNewText

Pointer to the new pane text.

bUpdate

If TRUE, the pane is invalidated after the text is set.

Remarks

Sets the pane text to the string pointed to by lpszNewText.

Example

//Sets and displays text for pane index 4 and id ID_PANE_FOUR
SetPaneText (4, "My New Status Bar Text", TRUE)

//UI handler in the message map updates the status bar text:
ON_UPDATE_COMMAND_UI ( ID_PANE_FOUR, OnUpdatePane )

//In the appropriate .cpp file add:
void CMyClass::OnUpdatePane (CCmdUI *pCmdUI)  {     pCmdUI->Enable ();  }

CStatusBar OverviewClass MembersHierarchy Chart

See Also   CStatusBar::GetPaneText