Programming Guide



sm_wcount

Obtains the number of currently open windows

int sm_wcount(void);

Returns

Description

sm_wcount returns the number of windows currently open. The number is equivalent to the number of windows in the window stack, excluding the base window.

Use this function with sm_wselect to activate another window from the window stack. For example, the following statement selects the screen beneath the current window:

sm_wselect(sm_wcount()-1);

See Also

sm_wselect