Aracılığıyla paylaş


CWnd::IsWindowVisible

Belirli pencere görünürlük durumunu belirler.

BOOL IsWindowVisible( ) const;

Dönüş Değeri

Sıfır olmayan if CWnd görülebilir (sahip WS_VISIBLE stili bit kümesi ve ana penceresi görünür).Dönüş değeri durumunu yansıtan çünkü WS_VISIBLE stili bit dönüş değeri olabilir sıfır dahi olsa CWnd diğer windows tarafından tamamen getirilmemeli.

Notlar

Bir pencere ile gösterilen görünürlük durumuna sahip WS_VISIBLE stili bit.Bu stil biti ayarlandığında bir çağrı ile ShowWindow üye işlev penceresi görüntülenir ve pencere stili bit kümesine sahip olduğu sürece sonraki çizim penceresinde görüntülenir.

Herhangi bir çizim sahip bir pencereye WS_VISIBLE pencere diğer windows tarafından kapsanan veya onun üst pencere tarafından kırpılmış stil görüntülenmez.

Örnek

// This example uses the CWnd::IsWindowVisible() function to
// determine if a dialog box is visible. If it is not, it calls
// CWnd::ShowWindow with the SW_SHOWNORMAL command.
void CMainFrame::DisplayModeless()
{
   if(!m_Modeless.IsWindowVisible())
   {
      m_Modeless.ShowWindow(SW_SHOWNORMAL);
   }
}

// This example uses the CWnd::IsWindowVisible() function to
// determine if a dialog box is visible. If it is, it calls
// CWnd::ShowWindow with the SW_HIDE command.
void CMainFrame::HideModeless()
{
   if(m_Modeless.IsWindowVisible())
   {
      m_Modeless.ShowWindow(SW_HIDE);
   }
}

Gereksinimler

Başlık: afxwin.h

Ayrıca bkz.

Başvuru

CWnd Sınıfı

Hiyerarşi grafik

CWnd::ShowWindow

IsWindowVisible