Windows C++ Library
Public Member Functions | Static Public Attributes | Protected Attributes
CWnd Class Reference

#include <Wnd.hpp>

Inheritance diagram for CWnd:
CMsgWnd CPropertySheet CDialog CPopupWnd CMainDlg CPropertyPage CCtrlWnd CFrameWnd CHintBar CSplitWnd CStatusBar CStatusBarPanel CStdWnd CToolBar CView CDlgFrame CSDIFrame

List of all members.

Public Member Functions

 CWnd ()
 CWnd (HWND hWnd)
 CWnd (const CWnd &rhs)
virtual ~CWnd ()
CWndoperator= (const CWnd &rhs)
HWND Handle () const
bool Destroy ()
bool Show (int iStyle=SW_SHOW)
bool IsVisible () const
void Enable (bool bEnable=true)
bool IsEnabled ()
bool IsMinimised () const
bool IsMaximised () const
void Focus ()
void Title (const tchar *lpszTitle)
void Title (const tstring &title)
 Set the window title.
CString Title () const
void Font (const CFont &rFont, bool bRedraw=true)
CFont Font () const
void WindowExStyle (DWORD dwExStyle)
DWORD WindowExStyle () const
void WindowStyle (DWORD dwStyle)
DWORD WindowStyle () const
void Centre ()
void Move (const CRect &rNewPos, bool bRepaint=true)
CRect WindowRect () const
virtual CRect ClientRect () const
CRect ChildRect (const CWnd &rWnd) const
CRect Placement () const
void WindowPos (HWND hPos, bool bShow)
void WindowPos (HWND hPos, const CRect &rcPos, bool bShow)
CWnd Control (int iID) const
LRESULT SendMessage (UINT iMsg, WPARAM wParam=0, LPARAM lParam=0L) const
bool PostMessage (UINT iMsg, WPARAM wParam=0, LPARAM lParam=0L) const
bool PostCommand (uint iCmd) const
bool PostCtrlMsg (uint iMsg, uint iCtrlID, HWND hCtrl) const
WCL::TimerID StartTimer (WCL::TimerID iTimerID, uint iTimeout)
void StopTimer (WCL::TimerID iTimerID)
void Redraw (bool bRedraw)
void Invalidate (const CRect &rArea, bool bErase=true)
void Invalidate (bool bErase=true)
void Update ()
void RepaintNow ()
void DrawMenuBar ()
int AlertMsg (const tchar *pszMsg,...) const
int QueryMsg (const tchar *pszMsg,...) const
int NotifyMsg (const tchar *pszMsg,...) const
int FatalMsg (const tchar *pszMsg,...) const

Static Public Attributes

static CWndMap s_WndMap
static CWnd g_oDesktop

Protected Attributes

HWND m_hWnd

Constructor & Destructor Documentation

CWnd::CWnd ( ) [inline]
CWnd::CWnd ( HWND  hWnd) [inline]
CWnd::CWnd ( const CWnd rhs) [inline]
CWnd::~CWnd ( ) [inline, virtual]

Member Function Documentation

CWnd & CWnd::operator= ( const CWnd rhs) [inline]
HWND CWnd::Handle ( ) const [inline]
bool CWnd::Destroy ( ) [inline]
bool CWnd::Show ( int  iStyle = SW_SHOW) [inline]
bool CWnd::IsVisible ( ) const [inline]
void CWnd::Enable ( bool  bEnable = true) [inline]
bool CWnd::IsEnabled ( ) [inline]
bool CWnd::IsMinimised ( ) const [inline]
bool CWnd::IsMaximised ( ) const [inline]
void CWnd::Focus ( ) [inline]
void CWnd::Title ( const tchar *  lpszTitle) [inline]
void CWnd::Title ( const tstring &  title) [inline]

Set the window title.

CString CWnd::Title ( ) const
void CWnd::Font ( const CFont rFont,
bool  bRedraw = true 
) [inline]
CFont CWnd::Font ( ) const [inline]
void CWnd::WindowExStyle ( DWORD  dwExStyle) [inline]
DWORD CWnd::WindowExStyle ( ) const [inline]
void CWnd::WindowStyle ( DWORD  dwStyle) [inline]
DWORD CWnd::WindowStyle ( ) const [inline]
void CWnd::Centre ( )
void CWnd::Move ( const CRect rNewPos,
bool  bRepaint = true 
) [inline]
CRect CWnd::ClientRect ( ) const [virtual]

Reimplemented in CFrameWnd.

CRect CWnd::ChildRect ( const CWnd rWnd) const
void CWnd::WindowPos ( HWND  hPos,
bool  bShow 
) [inline]
void CWnd::WindowPos ( HWND  hPos,
const CRect rcPos,
bool  bShow 
) [inline]
CWnd CWnd::Control ( int  iID) const [inline]
LRESULT CWnd::SendMessage ( UINT  iMsg,
WPARAM  wParam = 0,
LPARAM  lParam = 0L 
) const [inline]
bool CWnd::PostMessage ( UINT  iMsg,
WPARAM  wParam = 0,
LPARAM  lParam = 0L 
) const [inline]
bool CWnd::PostCommand ( uint  iCmd) const [inline]
bool CWnd::PostCtrlMsg ( uint  iMsg,
uint  iCtrlID,
HWND  hCtrl 
) const [inline]
WCL::TimerID CWnd::StartTimer ( WCL::TimerID  iTimerID,
uint  iTimeout 
) [inline]
void CWnd::StopTimer ( WCL::TimerID  iTimerID) [inline]
void CWnd::Redraw ( bool  bRedraw) [inline]
void CWnd::Invalidate ( const CRect rArea,
bool  bErase = true 
) [inline]
void CWnd::Invalidate ( bool  bErase = true) [inline]
void CWnd::Update ( ) [inline]
void CWnd::RepaintNow ( ) [inline]
void CWnd::DrawMenuBar ( ) [inline]
int CWnd::AlertMsg ( const tchar *  pszMsg,
  ... 
) const
int CWnd::QueryMsg ( const tchar *  pszMsg,
  ... 
) const
int CWnd::NotifyMsg ( const tchar *  pszMsg,
  ... 
) const
int CWnd::FatalMsg ( const tchar *  pszMsg,
  ... 
) const

Member Data Documentation

HWND CWnd::m_hWnd [protected]

The documentation for this class was generated from the following files: