Programming Guide |
Obtains the number of currently open windows
int sm_wcount(void);
- 1 The number of windows open.
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);