2.2.6.32.38 Window::Visible

ClassName

Window

AccessType

public

Name

Visible

Declaration

BOOL Visible

Remark

Examples

EX1

int Window_Visible_ex1()
{
    for(int ii = 0; ii <= OGW_NUM_WIN_TYPES; ii++)
    {
        Window ww(GetWindow(ii));
        printf("Index %d:", ii);
        if(ww)
        {
            if(ww.Visible)
            {
                RECT rect;
                ww.GetClientRect(&rect);
                printf("%[%d:%d], width=%d, height=%d\n", rect.left, rect.top, rect.right-rect.left, rect.bottom-rect.top);
            }
            else
                out_str("Hidden");
        }
        else
            out_str("Not available");
    }
    return 1;
}

Description

Gets or sets whether the window is visible

Header to Include

origin.h

See Also

Reference