WinXAddStatusBar


hStatusBar = WinXAddStatusBar (hWnd, STRING initialStatus, id)

Adds a status bar to a window.

Parameter Description
hWnd The handle to the window that this status bar will be assigned to
STRING initialStatus A string containing the initial text to appear in the status bar. Text for different parts should be seperated by commas. The number of parts needed is determined from this parameter.
id A unique id for the status bar. Can be left 0.

Returns

The handle to the status bar or 0 on error

Remarks

The number of parts in the status bar is determined by the number of commas in the initialStatus parameter. Each comma represents a division between parts, so one comma = 2 parts and 2 commas = 3.

When the status bar is resized, all the parts are move so that they always take up equal amounts of space along the status bar.

Examples

'add a status bar to #hMain
hStatus = WinXAddStatusBar (#hMain, "This is part 1, This is part 2, , This is part 4", 0)

Related Links

WinXNewWindow