Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- BHELP On-Line: CBRIEF Macro Help - inq_ctrl_state(ctl_id, [win_id]) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
inq_ctrl_state(ctl_id, [win_id])

     Usage: Gives the state of the window controls.  Defines for
            control names can be found in win_ctrl.h.

Parameters: Ctl_id .int. names the control in question.  Win_id .int.
            is optional, specifying the window.  If omitted, the
            current window is used.

            CONTROLS:   CLOSE_BTN   HORZ_SCROLL   VERT_THUMB
                        ZOOM_BTN    VERT_SCROLL   HORZ_THUMB

   Returns: That depends on the control specified:

        +----------------------------------------------------------+
        |              |                                           |
        | CLOSE_BTN    |  0 - Disabled                             |
        | ZOOM_BTN     |  1 - Enabled.  If this is HORZ_SCROLL,    |
        | VERT_SCROLL  |      then the bar is on the bottom of     |
        | HORZ_SCROLL  |      the screen.                          |
        |              |  2 - used by HORZ_SCROLL only, this is    |
        |              |      enabled, but the scroll bar is       |
        |              |      above the bottom line.               |
        |              | -1 - Enabled, but hidden.  It was hidden  |
        |              |      without specifying a window id.      |
        |              | -2 - Enabled, but hidden.  It was hidden  |
        |              |      by specifying a window id.           |
        |              | -3 - Enabled, but hidden.  It was done    |
        |              |      twice, both with and without         |
        |              |      specifying a window id.              |
        |--------------+-------------------------------------------|
        |              |                                           |
        | VERT_THUMB   |  0 - No thumb.  Only returned when the    |
        | HORZ_THUMB   |      the scroll bar is disabled.          |
        |              |  n - The position, in the range of 0-100  |
        |              |                                           |
        +----------------------------------------------------------+


See Also: set_ctrl_state

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson