Saturday, February 20, 2010

To check the visibility status of a window(or control)in Wiin32/VC++

1.

if(WS_VISIBLE&(GetWindowLongPtr(GetDlgItem(hwndDialog,IDC_EDIT1),GWL_STYLE)) )
{
//Control is visible
}

2.

if( TRUE == IsWindowVisible(GetDlgItem(hDialog, IDC_EDIT1))){
{
//Control is visible
}

No comments:

Post a Comment