home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CWnd

CObject
   |
   +--CCmdTarget
         |
         +--CWnd

   in AFXWIN.H
Direct Known Subclasses:
CAnimateCtrl, CButton, CComboBox, CControlBar, CDateTimeCtrl, CDialog, CEdit, CFrameWnd, CHeaderCtrl, CHotKeyCtrl, CIPAddressCtrl, CListBox, CListCtrl, CMonthCalCtrl, COleControl, CProgressCtrl, CPropertySheet, CReBarCtrl, CRichEditCtrl, CScrollBar, CSliderCtrl, CSocketWnd, CSpinButtonCtrl, CSplitterWnd, CStatic, CStatusBarCtrl, CTabCtrl, CToolBarCtrl, CToolTipCtrl, CTreeCtrl, CView

class CWnd
extends CCmdTarget


Inner Classes, Typedefs, and Enums
enum CWnd::AdjustType
          
enum CWnd::RepositionFlags
          
 
Field Summary
 HWND m_hWnd
          
 HWND m_hWndOwner
          
 UINT m_nFlags
          
protected int m_nModalResult
          
protected static const UINT m_nMsgDragList
          
protected COleControlContainer* m_pCtrlCont
          
protected COleControlSite* m_pCtrlSite
          
protected COleDropTarget* m_pDropTarget
          
protected WNDPROC m_pfnSuper
          
protected static AFX_CORE_DATA const AFX_MSGMAP messageMap
          
 static AFX_CORE_DATA const CWnd wndBottom
          
 static AFX_CORE_DATA const CWnd wndNoTopMost
          
 static AFX_CORE_DATA const CWnd wndTop
          
 static AFX_CORE_DATA const CWnd wndTopMost
          
   
Fields inherited from class CCmdTarget
messageMap, commandMap, dispatchMap, connectionMap, interfaceMap, eventsinkMap, m_dwRef, m_pOuterUnknown, m_xInnerUnknown, m_xDispatch, m_bResultExpected, m_xConnPtContainer
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
private  CWnd( HWND hWnd )
          
  CWnd()
          
  virtual ~CWnd()
          
 
Method Summary
 BOOL _EnableToolTips( BOOL bEnable, UINT nFlag )
          
 static void PASCAL _FilterToolTipMessage( MSG* pMsg, CWnd* pWnd )
          
 void ActivateTopParent()
          
 UINT ArrangeIconicWindows()
          
 BOOL Attach( HWND hWndNew )
          
 void AttachControlSite( CWnd* pWndParent )
          
protected void AttachControlSite( CHandleMap* pMap )
          
 virtual void BeginModalState()
          
 CDC* BeginPaint( LPPAINTSTRUCT lpPaint )
          
 void BindDefaultProperty( DISPID dwDispID, VARTYPE vtProp, LPCTSTR szFieldName, CWnd* pDSCWnd )
          
 void BindProperty( DISPID dwDispId, CWnd* pWndDSC )
          
 void BringWindowToTop()
          
 virtual void CalcWindowRect( LPRECT lpClientRect, UINT nAdjustType = adjustBorder )
          
 static void PASCAL CancelToolTips( BOOL bKeys = FALSE )
          
 void CenterWindow( CWnd* pAlternateOwner = NULL )
          
 BOOL ChangeClipboardChain( HWND hWndNext )
          
 virtual BOOL CheckAutoCenter()
          
 void CheckDlgButton( int nIDButton, UINT nCheck )
          
 void CheckRadioButton( int nIDFirstButton, int nIDLastButton, int nIDCheckButton )
          
 CWnd* ChildWindowFromPoint( POINT point ) const
          
 CWnd* ChildWindowFromPoint( POINT point, UINT nFlags ) const
          
 void ClientToScreen( LPRECT lpRect ) const
          
 void ClientToScreen( LPPOINT lpPoint ) const
          
 void CloseWindow()
          
 virtual BOOL ContinueModal()
          
 virtual BOOL Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL )
          
 void CreateCaret( CBitmap* pBitmap )
          
 BOOL CreateControl( const CLSID& clsid, LPCTSTR pszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL )
          
 BOOL CreateControl( const CLSID& clsid, LPCTSTR pszWindowName, DWORD dwStyle, const POINT* ppt, const SIZE* psize, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL )
          
 BOOL CreateControl( LPCTSTR pszClass, LPCTSTR pszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL )
          
protected BOOL CreateDlg( LPCTSTR lpszTemplateName, CWnd* pParentWnd )
          
protected BOOL CreateDlgIndirect( LPCDLGTEMPLATE lpDialogTemplate, CWnd* pParentWnd, HINSTANCE hInst )
          
protected BOOL CreateDlgIndirect( LPCDLGTEMPLATE lpDialogTemplate, CWnd* pParentWnd )
          
 BOOL CreateEx( DWORD dwExStyle, LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, LPVOID lpParam = NULL )
          
 BOOL CreateEx( DWORD dwExStyle, LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, HMENU nIDorHMenu, LPVOID lpParam = NULL )
          
 void CreateGrayCaret( int nWidth, int nHeight )
          
 void CreateSolidCaret( int nWidth, int nHeight )
          
protected LRESULT Default()
          
protected virtual LRESULT DefWindowProc( UINT message, WPARAM wParam, LPARAM lParam )
          
 static void PASCAL DeleteTempMap()
          
 virtual BOOL DestroyWindow()
          
 HWND Detach()
          
 int DlgDirList( LPTSTR lpPathSpec, int nIDListBox, int nIDStaticPath, UINT nFileType )
          
 int DlgDirListComboBox( LPTSTR lpPathSpec, int nIDComboBox, int nIDStaticPath, UINT nFileType )
          
 BOOL DlgDirSelect( LPTSTR lpString, int nIDListBox )
          
 BOOL DlgDirSelectComboBox( LPTSTR lpString, int nIDComboBox )
          
protected virtual void DoDataExchange( CDataExchange* pDX )
          
 void DragAcceptFiles( BOOL bAccept = TRUE )
          
 void DrawMenuBar()
          
 BOOL EnableScrollBar( int nSBFlags, UINT nArrowFlags = ESB_ENABLE_BOTH )
          
 void EnableScrollBarCtrl( int nBar, BOOL bEnable = TRUE )
          
 BOOL EnableToolTips( BOOL bEnable = TRUE )
          
 BOOL EnableTrackingToolTips( BOOL bEnable = TRUE )
          
 BOOL EnableWindow( BOOL bEnable = TRUE )
          
 virtual void EndModalLoop( int nResult )
          
 virtual void EndModalState()
          
 void EndPaint( LPPAINTSTRUCT lpPaint )
          
 BOOL ExecuteDlgInit( LPVOID lpResource )
          
 BOOL ExecuteDlgInit( LPCTSTR lpszResourceName )
          
 void FilterToolTipMessage( MSG* pMsg )
          
 static CWnd* PASCAL FindWindow( LPCTSTR lpszClassName, LPCTSTR lpszWindowName )
          
 BOOL FlashWindow( BOOL bInvert )
          
 static CWnd* PASCAL FromHandle( HWND hWnd )
          
 static CWnd* PASCAL FromHandlePermanent( HWND hWnd )
          
 static CWnd* PASCAL GetActiveWindow()
          
 static CWnd* PASCAL GetCapture()
          
 static CPoint PASCAL GetCaretPos()
          
 int GetCheckedRadioButton( int nIDFirstButton, int nIDLastButton )
          
 void GetClientRect( LPRECT lpRect ) const
          
 static CWnd* PASCAL GetClipboardOwner()
          
 static CWnd* PASCAL GetClipboardViewer()
          
 LPUNKNOWN GetControlUnknown()
          
protected static const MSG* PASCAL GetCurrentMessage()
          
 CDC* GetDC()
          
 CDC* GetDCEx( CRgn* prgnClip, DWORD flags )
          
 CWnd* GetDescendantWindow( int nID, BOOL bOnlyPerm = FALSE ) const
          
 static CWnd* PASCAL GetDescendantWindow( HWND hWnd, int nID, BOOL bOnlyPerm )
          
 static CWnd* PASCAL GetDesktopWindow()
          
 int GetDlgCtrlID() const
          
 void GetDlgItem( int nID, HWND* phWnd ) const
          
 CWnd* GetDlgItem( int nID ) const
          
 UINT GetDlgItemInt( int nID, BOOL* lpTrans = NULL, BOOL bSigned = TRUE ) const
          
 int GetDlgItemText( int nID, LPTSTR lpStr, int nMaxCount ) const
          
 int GetDlgItemText( int nID, CString& rString ) const
          
 IUnknown* GetDSCCursor()
          
 DWORD GetExStyle() const
          
 static CWnd* PASCAL GetFocus()
          
 CFont* GetFont() const
          
 static CWnd* PASCAL GetForegroundWindow()
          
 HICON GetIcon( BOOL bBigIcon ) const
          
 CWnd* GetLastActivePopup() const
          
 CMenu* GetMenu() const
          
protected virtual const AFX_MSGMAP* GetMessageMap() const
          
 CWnd* GetNextDlgGroupItem( CWnd* pWndCtl, BOOL bPrevious = FALSE ) const
          
 CWnd* GetNextDlgTabItem( CWnd* pWndCtl, BOOL bPrevious = FALSE ) const
          
 CWnd* GetNextWindow( UINT nFlag = GW_HWNDNEXT ) const
          
 static CWnd* PASCAL GetOpenClipboardWindow()
          
 CWnd* GetOwner() const
          
 CWnd* GetParent() const
          
 CFrameWnd* GetParentFrame() const
          
 CWnd* GetParentOwner() const
          
 void GetProperty( DISPID dwDispID, VARTYPE vtProp, void* pvProp ) const
          
 HWND GetSafeHwnd() const
          
 static CWnd* PASCAL GetSafeOwner( CWnd* pParent = NULL, HWND* pWndTop = NULL )
          
 static HWND PASCAL GetSafeOwner_( HWND hWnd, HWND* pWndTop )
          
 virtual CScrollBar* GetScrollBarCtrl( int nBar ) const
          
 BOOL GetScrollInfo( int nBar, LPSCROLLINFO lpScrollInfo, UINT nMask = SIF_ALL )
          
 int GetScrollLimit( int nBar )
          
 int GetScrollPos( int nBar ) const
          
 void GetScrollRange( int nBar, LPINT lpMinPos, LPINT lpMaxPos ) const
          
 DWORD GetStyle() const
          
protected virtual WNDPROC* GetSuperWndProcAddr()
          
 CMenu* GetSystemMenu( BOOL bRevert ) const
          
 CFrameWnd* GetTopLevelFrame() const
          
 CWnd* GetTopLevelOwner() const
          
 CWnd* GetTopLevelParent() const
          
 CWnd* GetTopWindow() const
          
 BOOL GetUpdateRect( LPRECT lpRect, BOOL bErase = FALSE )
          
 int GetUpdateRgn( CRgn* pRgn, BOOL bErase = FALSE )
          
 CWnd* GetWindow( UINT nCmd ) const
          
 DWORD GetWindowContextHelpId() const
          
 CDC* GetWindowDC()
          
 BOOL GetWindowPlacement( WINDOWPLACEMENT* lpwndpl ) const
          
 void GetWindowRect( LPRECT lpRect ) const
          
 int GetWindowRgn( HRGN hRgn ) const
          
 void GetWindowText( CString& rString ) const
          
 int GetWindowText( LPTSTR lpszStringBuf, int nMaxCount ) const
          
 int GetWindowTextLength() const
          
 static BOOL PASCAL GrayCtlColor( HDC hDC, HWND hWnd, UINT nCtlColor, HBRUSH hbrGray, COLORREF clrText )
          
 BOOL HandleFloatingSysCommand( UINT nID, LPARAM lParam )
          
 void HideCaret()
          
 BOOL HiliteMenuItem( CMenu* pMenu, UINT nIDHiliteItem, UINT nHilite )
          
 operator HWND() const
          
protected BOOL InitControlContainer()
          
 void Invalidate( BOOL bErase = TRUE )
          
 void InvalidateRect( LPCRECT lpRect, BOOL bErase = TRUE )
          
 void InvalidateRgn( CRgn* pRgn, BOOL bErase = TRUE )
          
 void AFX_CDECL InvokeHelper( DISPID dwDispID, WORD wFlags, VARTYPE vtRet, void* pvRet, const BYTE* pbParamInfo,... )
          
 BOOL IsChild( const CWnd* pWnd ) const
          
 BOOL IsDialogMessage( LPMSG lpMsg )
          
 UINT IsDlgButtonChecked( int nIDButton ) const
          
 virtual BOOL IsFrameWnd() const
          
 BOOL IsIconic() const
          
 BOOL IsTopParentActive() const
          
 BOOL IsWindowEnabled() const
          
 BOOL IsWindowVisible() const
          
 BOOL IsZoomed() const
          
 BOOL KillTimer( int nIDEvent )
          
 BOOL LockWindowUpdate()
          
 void MapWindowPoints( CWnd* pwndTo, LPPOINT lpPoint, UINT nCount ) const
          
 void MapWindowPoints( CWnd* pwndTo, LPRECT lpRect ) const
          
 int MessageBox( LPCTSTR lpszText, LPCTSTR lpszCaption = NULL, UINT nType = MB_OK )
          
 BOOL ModifyStyle( DWORD dwRemove, DWORD dwAdd, UINT nFlags = 0 )
          
 static BOOL PASCAL ModifyStyle( HWND hWnd, DWORD dwRemove, DWORD dwAdd, UINT nFlags )
          
 static BOOL PASCAL ModifyStyleEx( HWND hWnd, DWORD dwRemove, DWORD dwAdd, UINT nFlags )
          
 BOOL ModifyStyleEx( DWORD dwRemove, DWORD dwAdd, UINT nFlags = 0 )
          
 void MoveWindow( int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE )
          
 void MoveWindow( LPCRECT lpRect, BOOL bRepaint = TRUE )
          
protected void OnActivate( UINT nState, CWnd* pWndOther, BOOL bMinimized )
          
protected void OnActivateApp( BOOL bActive, HTASK hTask )
          
protected LRESULT OnActivateTopLevel( WPARAM, LPARAM )
          
 virtual BOOL OnAmbientProperty( COleControlSite* pSite, DISPID dispid, VARIANT* pvar )
          
protected void OnAskCbFormatName( UINT nMaxCount, LPTSTR lpszString )
          
protected void OnCancelMode()
          
protected void OnCaptureChanged( CWnd* pWnd )
          
protected void OnChangeCbChain( HWND hWndRemove, HWND hWndAfter )
          
protected void OnChar( UINT nChar, UINT nRepCnt, UINT nFlags )
          
protected int OnCharToItem( UINT nChar, CListBox* pListBox, UINT nIndex )
          
protected void OnChildActivate()
          
protected virtual BOOL OnChildNotify( UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult )
          
protected void OnClose()
          
protected virtual BOOL OnCommand( WPARAM wParam, LPARAM lParam )
          
protected void OnCompacting( UINT nCpuTime )
          
protected int OnCompareItem( int nIDCtl, LPCOMPAREITEMSTRUCT lpCompareItemStruct )
          
protected void OnContextMenu( CWnd* pWnd, CPoint pos )
          
protected BOOL OnCopyData( CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct )
          
protected int OnCreate( LPCREATESTRUCT lpCreateStruct )
          
protected HBRUSH OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor )
          
protected void OnDeadChar( UINT nChar, UINT nRepCnt, UINT nFlags )
          
protected void OnDeleteItem( int nIDCtl, LPDELETEITEMSTRUCT lpDeleteItemStruct )
          
protected void OnDestroy()
          
protected void OnDestroyClipboard()
          
protected BOOL OnDeviceChange( UINT nEventType, DWORD dwData )
          
protected void OnDevModeChange( LPTSTR lpDeviceName )
          
protected LRESULT OnDisplayChange( WPARAM, LPARAM )
          
protected LRESULT OnDragList( WPARAM, LPARAM )
          
protected void OnDrawClipboard()
          
protected void OnDrawItem( int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct )
          
protected void OnDropFiles( HDROP hDropInfo )
          
protected void OnEnable( BOOL bEnable )
          
protected void OnEndSession( BOOL bEnding )
          
protected void OnEnterIdle( UINT nWhy, CWnd* pWho )
          
protected void OnEnterMenuLoop( BOOL bIsTrackPopupMenu )
          
protected BOOL OnEraseBkgnd( CDC* pDC )
          
protected void OnExitMenuLoop( BOOL bIsTrackPopupMenu )
          
 virtual void OnFinalRelease()
          
protected void OnFontChange()
          
protected UINT OnGetDlgCode()
          
protected void OnGetMinMaxInfo( MINMAXINFO* lpMMI )
          
 HBRUSH OnGrayCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor )
          
 void OnHelp()
          
 void OnHelpFinder()
          
 void OnHelpIndex()
          
protected BOOL OnHelpInfo( HELPINFO* lpHelpInfo )
          
 void OnHelpUsing()
          
protected void OnHScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar )
          
protected void OnHScrollClipboard( CWnd* pClipAppWnd, UINT nSBCode, UINT nPos )
          
protected void OnIconEraseBkgnd( CDC* pDC )
          
protected void OnInitMenu( CMenu* pMenu )
          
protected void OnInitMenuPopup( CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu )
          
protected void OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags )
          
protected void OnKeyUp( UINT nChar, UINT nRepCnt, UINT nFlags )
          
protected void OnKillFocus( CWnd* pNewWnd )
          
protected void OnLButtonDblClk( UINT nFlags, CPoint point )
          
protected void OnLButtonDown( UINT nFlags, CPoint point )
          
protected void OnLButtonUp( UINT nFlags, CPoint point )
          
protected void OnMButtonDblClk( UINT nFlags, CPoint point )
          
protected void OnMButtonDown( UINT nFlags, CPoint point )
          
protected void OnMButtonUp( UINT nFlags, CPoint point )
          
protected void OnMDIActivate( BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd )
          
protected void OnMeasureItem( int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct )
          
protected LRESULT OnMenuChar( UINT nChar, UINT nFlags, CMenu* pMenu )
          
protected void OnMenuSelect( UINT nItemID, UINT nFlags, HMENU hSysMenu )
          
protected int OnMouseActivate( CWnd* pDesktopWnd, UINT nHitTest, UINT message )
          
protected void OnMouseMove( UINT nFlags, CPoint point )
          
protected BOOL OnMouseWheel( UINT nFlags, short zDelta, CPoint pt )
          
protected void OnMove( int x, int y )
          
protected void OnMoving( UINT nSide, LPRECT lpRect )
          
protected BOOL OnNcActivate( BOOL bActive )
          
protected void OnNcCalcSize( BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp )
          
protected BOOL OnNcCreate( LPCREATESTRUCT lpCreateStruct )
          
protected void OnNcDestroy()
          
protected UINT OnNcHitTest( CPoint point )
          
protected void OnNcLButtonDblClk( UINT nHitTest, CPoint point )
          
protected void OnNcLButtonDown( UINT nHitTest, CPoint point )
          
protected void OnNcLButtonUp( UINT nHitTest, CPoint point )
          
protected void OnNcMButtonDblClk( UINT nHitTest, CPoint point )
          
protected void OnNcMButtonDown( UINT nHitTest, CPoint point )
          
protected void OnNcMButtonUp( UINT nHitTest, CPoint point )
          
protected void OnNcMouseMove( UINT nHitTest, CPoint point )
          
protected void OnNcPaint()
          
protected void OnNcRButtonDblClk( UINT nHitTest, CPoint point )
          
protected void OnNcRButtonDown( UINT nHitTest, CPoint point )
          
protected void OnNcRButtonUp( UINT nHitTest, CPoint point )
          
protected virtual BOOL OnNotify( WPARAM wParam, LPARAM lParam, LRESULT* pResult )
          
protected LRESULT OnNTCtlColor( WPARAM wParam, LPARAM lParam )
          
protected void OnPaint()
          
protected void OnPaintClipboard( CWnd* pClipAppWnd, HGLOBAL hPaintStruct )
          
protected void OnPaletteChanged( CWnd* pFocusWnd )
          
protected void OnPaletteIsChanging( CWnd* pRealizeWnd )
          
protected void OnParentNotify( UINT message, LPARAM lParam )
          
protected LRESULT OnQuery3dControls( WPARAM, LPARAM )
          
protected HCURSOR OnQueryDragIcon()
          
protected BOOL OnQueryEndSession()
          
protected BOOL OnQueryNewPalette()
          
protected BOOL OnQueryOpen()
          
protected void OnRButtonDblClk( UINT nFlags, CPoint point )
          
protected void OnRButtonDown( UINT nFlags, CPoint point )
          
protected void OnRButtonUp( UINT nFlags, CPoint point )
          
protected LRESULT OnRegisteredMouseWheel( WPARAM wParam, LPARAM lParam )
          
protected void OnRenderAllFormats()
          
protected void OnRenderFormat( UINT nFormat )
          
protected BOOL OnSetCursor( CWnd* pWnd, UINT nHitTest, UINT message )
          
protected void OnSetFocus( CWnd* pOldWnd )
          
protected void OnSettingChange( UINT uFlags, LPCTSTR lpszSection )
          
protected void OnShowWindow( BOOL bShow, UINT nStatus )
          
protected void OnSize( UINT nType, int cx, int cy )
          
protected void OnSizeClipboard( CWnd* pClipAppWnd, HGLOBAL hRect )
          
protected void OnSizing( UINT nSide, LPRECT lpRect )
          
protected void OnSpoolerStatus( UINT nStatus, UINT nJobs )
          
protected void OnStyleChanged( int nStyleType, LPSTYLESTRUCT lpStyleStruct )
          
protected void OnStyleChanging( int nStyleType, LPSTYLESTRUCT lpStyleStruct )
          
protected void OnSysChar( UINT nChar, UINT nRepCnt, UINT nFlags )
          
protected void OnSysColorChange()
          
protected void OnSysCommand( UINT nID, LPARAM lParam )
          
protected void OnSysDeadChar( UINT nChar, UINT nRepCnt, UINT nFlags )
          
protected void OnSysKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags )
          
protected void OnSysKeyUp( UINT nChar, UINT nRepCnt, UINT nFlags )
          
protected void OnTCard( UINT idAction, DWORD dwActionData )
          
protected void OnTimeChange()
          
protected void OnTimer( UINT nIDEvent )
          
 virtual int OnToolHitTest( CPoint point, TOOLINFO* pTI ) const
          
protected int OnVKeyToItem( UINT nKey, CListBox* pListBox, UINT nIndex )
          
protected void OnVScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar )
          
protected void OnVScrollClipboard( CWnd* pClipAppWnd, UINT nSBCode, UINT nPos )
          
protected void OnWindowPosChanged( WINDOWPOS* lpwndpos )
          
protected void OnWindowPosChanging( WINDOWPOS* lpwndpos )
          
protected void OnWinIniChange( LPCTSTR lpszSection )
          
protected virtual BOOL OnWndMsg( UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult )
          
 BOOL OpenClipboard()
          
 BOOL OpenIcon()
          
 BOOL operator!=( const CWnd& wnd ) const
          
 BOOL operator==( const CWnd& wnd ) const
          
 BOOL PostMessage( UINT message, WPARAM wParam = 0, LPARAM lParam = 0 )
          
protected virtual void PostNcDestroy()
          
 virtual BOOL PreCreateWindow( CREATESTRUCT& cs )
          
 virtual void PreSubclassWindow()
          
 BOOL PreTranslateInput( LPMSG lpMsg )
          
 virtual BOOL PreTranslateMessage( MSG* pMsg )
          
 void Print( CDC* pDC, DWORD dwFlags ) const
          
 void PrintClient( CDC* pDC, DWORD dwFlags ) const
          
 BOOL RedrawWindow( LPCRECT lpRectUpdate = NULL, CRgn* prgnUpdate = NULL, UINT flags = RDW_INVALIDATE| RDW_UPDATENOW| RDW_ERASE )
          
protected BOOL ReflectChildNotify( UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult )
          
protected static BOOL PASCAL ReflectLastMsg( HWND hWndChild, LRESULT* pResult = NULL )
          
 int ReleaseDC( CDC* pDC )
          
 void RepositionBars( UINT nIDFirst, UINT nIDLast, UINT nIDLeftOver, UINT nFlag = reposDefault, LPRECT lpRectParam = NULL, LPCRECT lpRectClient = NULL, BOOL bStretch = TRUE )
          
 int RunModalLoop( DWORD dwFlags = 0 )
          
 void ScreenToClient( LPRECT lpRect ) const
          
 void ScreenToClient( LPPOINT lpPoint ) const
          
 void ScrollWindow( int xAmount, int yAmount, LPCRECT lpRect = NULL, LPCRECT lpClipRect = NULL )
          
 int ScrollWindowEx( int dx, int dy, LPCRECT lpRectScroll, LPCRECT lpRectClip, CRgn* prgnUpdate, LPRECT lpRectUpdate, UINT flags )
          
 BOOL SendChildNotifyLastMsg( LRESULT* pResult = NULL )
          
 LRESULT SendDlgItemMessage( int nID, UINT message, WPARAM wParam = 0, LPARAM lParam = 0 )
          
 LRESULT SendMessage( UINT message, WPARAM wParam = 0, LPARAM lParam = 0 )
          
 static void PASCAL SendMessageToDescendants( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, BOOL bDeep, BOOL bOnlyPerm )
          
 void SendMessageToDescendants( UINT message, WPARAM wParam = 0, LPARAM lParam = 0, BOOL bDeep = TRUE, BOOL bOnlyPerm = FALSE )
          
 BOOL SendNotifyMessage( UINT message, WPARAM wParam, LPARAM lParam )
          
 CWnd* SetActiveWindow()
          
 CWnd* SetCapture()
          
 static void PASCAL SetCaretPos( POINT point )
          
 HWND SetClipboardViewer()
          
 int SetDlgCtrlID( int nID )
          
 void SetDlgItemInt( int nID, UINT nValue, BOOL bSigned = TRUE )
          
 void SetDlgItemText( int nID, LPCTSTR lpszString )
          
 CWnd* SetFocus()
          
 void SetFont( CFont* pFont, BOOL bRedraw = TRUE )
          
 BOOL SetForegroundWindow()
          
 HICON SetIcon( HICON hIcon, BOOL bBigIcon )
          
 BOOL SetMenu( CMenu* pMenu )
          
protected virtual BOOL SetOccDialogInfo( struct _AFX_OCC_DIALOG_INFO* pOccDialogInfo )
          
 void SetOwner( CWnd* pOwnerWnd )
          
 CWnd* SetParent( CWnd* pWndNewParent )
          
 void AFX_CDECL SetProperty( DISPID dwDispID, VARTYPE vtProp,... )
          
 void SetRedraw( BOOL bRedraw = TRUE )
          
 BOOL SetScrollInfo( int nBar, LPSCROLLINFO lpScrollInfo, BOOL bRedraw = TRUE )
          
 int SetScrollPos( int nBar, int nPos, BOOL bRedraw = TRUE )
          
 void SetScrollRange( int nBar, int nMinPos, int nMaxPos, BOOL bRedraw = TRUE )
          
 UINT SetTimer( UINT nIDEvent, UINT nElapse, void( CALLBACK* lpfnTimer )( HWND, UINT, UINT, DWORD ) )
          
 BOOL SetWindowContextHelpId( DWORD dwContextHelpId )
          
 BOOL SetWindowPlacement( const WINDOWPLACEMENT* lpwndpl )
          
 BOOL SetWindowPos( const CWnd* pWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags )
          
 int SetWindowRgn( HRGN hRgn, BOOL bRedraw )
          
 void SetWindowText( LPCTSTR lpszString )
          
 void ShowCaret()
          
 void ShowOwnedPopups( BOOL bShow = TRUE )
          
 void ShowScrollBar( UINT nBar, BOOL bShow = TRUE )
          
 BOOL ShowWindow( int nCmdShow )
          
 BOOL SubclassCtl3d( int nControlType =-1 )
          
 BOOL SubclassDlg3d( DWORD dwMask = 0xFFFF )
          
 BOOL SubclassDlgItem( UINT nID, CWnd* pParent )
          
 BOOL SubclassWindow( HWND hWnd )
          
 void UnlockWindowUpdate()
          
 HWND UnsubclassWindow()
          
 BOOL UpdateData( BOOL bSaveAndValidate = TRUE )
          
 void UpdateDialogControls( CCmdTarget* pTarget, BOOL bDisableIfNoHndler )
          
 void UpdateWindow()
          
 void ValidateRect( LPCRECT lpRect )
          
 void ValidateRgn( CRgn* pRgn )
          
 static BOOL PASCAL WalkPreTranslateTree( HWND hWndStop, MSG* pMsg )
          
 static CWnd* PASCAL WindowFromPoint( POINT point )
          
protected virtual LRESULT WindowProc( UINT message, WPARAM wParam, LPARAM lParam )
          
 virtual void WinHelp( DWORD dwData, UINT nCmd = HELP_CONTEXT )
          
   
Methods inherited from class CCmdTarget
GetIDispatch, FromIDispatch, IsResultExpected, EnableAutomation, EnableConnections, BeginWaitCursor, EndWaitCursor, RestoreWaitCursor, EnumOleVerbs, DoOleVerb, OnCmdMsg, OnFinalRelease, IsInvokeAllowed, EnableTypeLib, GetTypeInfoOfGuid, GetDispatchIID, GetTypeInfoCount, GetTypeLibCache, GetTypeLib, GetNotSupported, SetNotSupported, GetRoutingView, GetRoutingFrame, GetRoutingView_, GetRoutingFrame_, GetMessageMap, GetCommandMap, GetDispatchMap, GetConnectionMap, GetInterfaceMap, GetEventSinkMap, EnableAggregation, ExternalDisconnect, GetControllingUnknown, InternalQueryInterface, InternalAddRef, InternalRelease, ExternalQueryInterface, ExternalAddRef, ExternalRelease, GetInterface, QueryAggregates, OnCreateAggregates, GetInterfaceHook, GetStandardProp, SetStandardProp, GetEntryCount, GetDispEntry, MemberIDFromName, GetStackSize, PushStackArgs, CallMemberFunc, OnEvent, GetEventSinkEntry, GetExtraConnectionPoints, GetConnectionHook
   
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
 

Field Detail

m_hWnd

public HWND m_hWnd;

m_hWndOwner

public HWND m_hWndOwner;

m_nFlags

public UINT m_nFlags;

m_nModalResult

protected int m_nModalResult;

m_nMsgDragList

protected static const UINT m_nMsgDragList;

m_pCtrlCont

protected COleControlContainer* m_pCtrlCont;

m_pCtrlSite

protected COleControlSite* m_pCtrlSite;

m_pDropTarget

protected COleDropTarget* m_pDropTarget;

m_pfnSuper

protected WNDPROC m_pfnSuper;

messageMap

protected static AFX_CORE_DATA const AFX_MSGMAP messageMap;

wndBottom

public static AFX_CORE_DATA const CWnd wndBottom;

wndNoTopMost

public static AFX_CORE_DATA const CWnd wndNoTopMost;

wndTop

public static AFX_CORE_DATA const CWnd wndTop;

wndTopMost

public static AFX_CORE_DATA const CWnd wndTopMost;


Constructor Detail

CWnd

private CWnd( HWND hWnd );

CWnd

public CWnd();

~CWnd

public virtual ~CWnd();


Method Detail

_EnableToolTips

public BOOL _EnableToolTips( BOOL bEnable, UINT nFlag );

_FilterToolTipMessage

public static void PASCAL _FilterToolTipMessage( MSG* pMsg, CWnd* pWnd );

ActivateTopParent

public void ActivateTopParent();

ArrangeIconicWindows

public UINT ArrangeIconicWindows();

Attach

public BOOL Attach( HWND hWndNew );

AttachControlSite

public void AttachControlSite( CWnd* pWndParent );

AttachControlSite

protected void AttachControlSite( CHandleMap* pMap );

BeginModalState

public virtual void BeginModalState();

BeginPaint

public CDC* BeginPaint( LPPAINTSTRUCT lpPaint );

BindDefaultProperty

public void BindDefaultProperty( DISPID dwDispID, VARTYPE vtProp, LPCTSTR szFieldName, CWnd* pDSCWnd );

BindProperty

public void BindProperty( DISPID dwDispId, CWnd* pWndDSC );

BringWindowToTop

public void BringWindowToTop();

CalcWindowRect

public virtual void CalcWindowRect( LPRECT lpClientRect, UINT nAdjustType = adjustBorder );

CancelToolTips

public static void PASCAL CancelToolTips( BOOL bKeys = FALSE );

CenterWindow

public void CenterWindow( CWnd* pAlternateOwner = NULL );

ChangeClipboardChain

public BOOL ChangeClipboardChain( HWND hWndNext );

CheckAutoCenter

public virtual BOOL CheckAutoCenter();

CheckDlgButton

public void CheckDlgButton( int nIDButton, UINT nCheck );

CheckRadioButton

public void CheckRadioButton( int nIDFirstButton, int nIDLastButton, int nIDCheckButton );

ChildWindowFromPoint

public CWnd* ChildWindowFromPoint( POINT point ) const;

ChildWindowFromPoint

public CWnd* ChildWindowFromPoint( POINT point, UINT nFlags ) const;

ClientToScreen

public void ClientToScreen( LPRECT lpRect ) const;

ClientToScreen

public void ClientToScreen( LPPOINT lpPoint ) const;

CloseWindow

public void CloseWindow();

ContinueModal

public virtual BOOL ContinueModal();

Create

public virtual BOOL Create( LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL );

CreateCaret

public void CreateCaret( CBitmap* pBitmap );

CreateControl

public BOOL CreateControl( const CLSID& clsid, LPCTSTR pszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL );

CreateControl

public BOOL CreateControl( const CLSID& clsid, LPCTSTR pszWindowName, DWORD dwStyle, const POINT* ppt, const SIZE* psize, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL );

CreateControl

public BOOL CreateControl( LPCTSTR pszClass, LPCTSTR pszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFile* pPersist = NULL, BOOL bStorage = FALSE, BSTR bstrLicKey = NULL );

CreateDlg

protected BOOL CreateDlg( LPCTSTR lpszTemplateName, CWnd* pParentWnd );

CreateDlgIndirect

protected BOOL CreateDlgIndirect( LPCDLGTEMPLATE lpDialogTemplate, CWnd* pParentWnd, HINSTANCE hInst );

CreateDlgIndirect

protected BOOL CreateDlgIndirect( LPCDLGTEMPLATE lpDialogTemplate, CWnd* pParentWnd );

CreateEx

public BOOL CreateEx( DWORD dwExStyle, LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, LPVOID lpParam = NULL );

CreateEx

public BOOL CreateEx( DWORD dwExStyle, LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, HMENU nIDorHMenu, LPVOID lpParam = NULL );

CreateGrayCaret

public void CreateGrayCaret( int nWidth, int nHeight );

CreateSolidCaret

public void CreateSolidCaret( int nWidth, int nHeight );

Default

protected LRESULT Default();

DefWindowProc

protected virtual LRESULT DefWindowProc( UINT message, WPARAM wParam, LPARAM lParam );

DeleteTempMap

public static void PASCAL DeleteTempMap();

DestroyWindow

public virtual BOOL DestroyWindow();

Detach

public HWND Detach();

DlgDirList

public int DlgDirList( LPTSTR lpPathSpec, int nIDListBox, int nIDStaticPath, UINT nFileType );

DlgDirListComboBox

public int DlgDirListComboBox( LPTSTR lpPathSpec, int nIDComboBox, int nIDStaticPath, UINT nFileType );

DlgDirSelect

public BOOL DlgDirSelect( LPTSTR lpString, int nIDListBox );

DlgDirSelectComboBox

public BOOL DlgDirSelectComboBox( LPTSTR lpString, int nIDComboBox );

DoDataExchange

protected virtual void DoDataExchange( CDataExchange* pDX );

DragAcceptFiles

public void DragAcceptFiles( BOOL bAccept = TRUE );

DrawMenuBar

public void DrawMenuBar();

EnableScrollBar

public BOOL EnableScrollBar( int nSBFlags, UINT nArrowFlags = ESB_ENABLE_BOTH );

EnableScrollBarCtrl

public void EnableScrollBarCtrl( int nBar, BOOL bEnable = TRUE );

EnableToolTips

public BOOL EnableToolTips( BOOL bEnable = TRUE );

EnableTrackingToolTips

public BOOL EnableTrackingToolTips( BOOL bEnable = TRUE );

EnableWindow

public BOOL EnableWindow( BOOL bEnable = TRUE );

EndModalLoop

public virtual void EndModalLoop( int nResult );

EndModalState

public virtual void EndModalState();

EndPaint

public void EndPaint( LPPAINTSTRUCT lpPaint );

ExecuteDlgInit

public BOOL ExecuteDlgInit( LPVOID lpResource );

ExecuteDlgInit

public BOOL ExecuteDlgInit( LPCTSTR lpszResourceName );

FilterToolTipMessage

public void FilterToolTipMessage( MSG* pMsg );

FindWindow

public static CWnd* PASCAL FindWindow( LPCTSTR lpszClassName, LPCTSTR lpszWindowName );

FlashWindow

public BOOL FlashWindow( BOOL bInvert );

FromHandle

public static CWnd* PASCAL FromHandle( HWND hWnd );

FromHandlePermanent

public static CWnd* PASCAL FromHandlePermanent( HWND hWnd );

GetActiveWindow

public static CWnd* PASCAL GetActiveWindow();

GetCapture

public static CWnd* PASCAL GetCapture();

GetCaretPos

public static CPoint PASCAL GetCaretPos();

GetCheckedRadioButton

public int GetCheckedRadioButton( int nIDFirstButton, int nIDLastButton );

GetClientRect

public void GetClientRect( LPRECT lpRect ) const;

GetClipboardOwner

public static CWnd* PASCAL GetClipboardOwner();

GetClipboardViewer

public static CWnd* PASCAL GetClipboardViewer();

GetControlUnknown

public LPUNKNOWN GetControlUnknown();

GetCurrentMessage

protected static const MSG* PASCAL GetCurrentMessage();

GetDC

public CDC* GetDC();

GetDCEx

public CDC* GetDCEx( CRgn* prgnClip, DWORD flags );

GetDescendantWindow

public CWnd* GetDescendantWindow( int nID, BOOL bOnlyPerm = FALSE ) const;

GetDescendantWindow

public static CWnd* PASCAL GetDescendantWindow( HWND hWnd, int nID, BOOL bOnlyPerm );

GetDesktopWindow

public static CWnd* PASCAL GetDesktopWindow();

GetDlgCtrlID

public int GetDlgCtrlID() const;

GetDlgItem

public void GetDlgItem( int nID, HWND* phWnd ) const;

GetDlgItem

public CWnd* GetDlgItem( int nID ) const;

GetDlgItemInt

public UINT GetDlgItemInt( int nID, BOOL* lpTrans = NULL, BOOL bSigned = TRUE ) const;

GetDlgItemText

public int GetDlgItemText( int nID, LPTSTR lpStr, int nMaxCount ) const;

GetDlgItemText

public int GetDlgItemText( int nID, CString& rString ) const;

GetDSCCursor

public IUnknown* GetDSCCursor();

GetExStyle

public DWORD GetExStyle() const;

GetFocus

public static CWnd* PASCAL GetFocus();

GetFont

public CFont* GetFont() const;

GetForegroundWindow

public static CWnd* PASCAL GetForegroundWindow();

GetIcon

public HICON GetIcon( BOOL bBigIcon ) const;

GetLastActivePopup

public CWnd* GetLastActivePopup() const;

GetMenu

public CMenu* GetMenu() const;

GetMessageMap

protected virtual const AFX_MSGMAP* GetMessageMap() const;

GetNextDlgGroupItem

public CWnd* GetNextDlgGroupItem( CWnd* pWndCtl, BOOL bPrevious = FALSE ) const;

GetNextDlgTabItem

public CWnd* GetNextDlgTabItem( CWnd* pWndCtl, BOOL bPrevious = FALSE ) const;

GetNextWindow

public CWnd* GetNextWindow( UINT nFlag = GW_HWNDNEXT ) const;

GetOpenClipboardWindow

public static CWnd* PASCAL GetOpenClipboardWindow();

GetOwner

public CWnd* GetOwner() const;

GetParent

public CWnd* GetParent() const;

GetParentFrame

public CFrameWnd* GetParentFrame() const;

GetParentOwner

public CWnd* GetParentOwner() const;

GetProperty

public void GetProperty( DISPID dwDispID, VARTYPE vtProp, void* pvProp ) const;

GetSafeHwnd

public HWND GetSafeHwnd() const;

GetSafeOwner

public static CWnd* PASCAL GetSafeOwner( CWnd* pParent = NULL, HWND* pWndTop = NULL );

GetSafeOwner_

public static HWND PASCAL GetSafeOwner_( HWND hWnd, HWND* pWndTop );

GetScrollBarCtrl

public virtual CScrollBar* GetScrollBarCtrl( int nBar ) const;

GetScrollInfo

public BOOL GetScrollInfo( int nBar, LPSCROLLINFO lpScrollInfo, UINT nMask = SIF_ALL );

GetScrollLimit

public int GetScrollLimit( int nBar );

GetScrollPos

public int GetScrollPos( int nBar ) const;

GetScrollRange

public void GetScrollRange( int nBar, LPINT lpMinPos, LPINT lpMaxPos ) const;

GetStyle

public DWORD GetStyle() const;

GetSuperWndProcAddr

protected virtual WNDPROC* GetSuperWndProcAddr();

GetSystemMenu

public CMenu* GetSystemMenu( BOOL bRevert ) const;

GetTopLevelFrame

public CFrameWnd* GetTopLevelFrame() const;

GetTopLevelOwner

public CWnd* GetTopLevelOwner() const;

GetTopLevelParent

public CWnd* GetTopLevelParent() const;

GetTopWindow

public CWnd* GetTopWindow() const;

GetUpdateRect

public BOOL GetUpdateRect( LPRECT lpRect, BOOL bErase = FALSE );

GetUpdateRgn

public int GetUpdateRgn( CRgn* pRgn, BOOL bErase = FALSE );

GetWindow

public CWnd* GetWindow( UINT nCmd ) const;

GetWindowContextHelpId

public DWORD GetWindowContextHelpId() const;

GetWindowDC

public CDC* GetWindowDC();

GetWindowPlacement

public BOOL GetWindowPlacement( WINDOWPLACEMENT* lpwndpl ) const;

GetWindowRect

public void GetWindowRect( LPRECT lpRect ) const;

GetWindowRgn

public int GetWindowRgn( HRGN hRgn ) const;

GetWindowText

public void GetWindowText( CString& rString ) const;

GetWindowText

public int GetWindowText( LPTSTR lpszStringBuf, int nMaxCount ) const;

GetWindowTextLength

public int GetWindowTextLength() const;

GrayCtlColor

public static BOOL PASCAL GrayCtlColor( HDC hDC, HWND hWnd, UINT nCtlColor, HBRUSH hbrGray, COLORREF clrText );

HandleFloatingSysCommand

public BOOL HandleFloatingSysCommand( UINT nID, LPARAM lParam );

HideCaret

public void HideCaret();

HiliteMenuItem

public BOOL HiliteMenuItem( CMenu* pMenu, UINT nIDHiliteItem, UINT nHilite );

HWND

public operator HWND() const;

InitControlContainer

protected BOOL InitControlContainer();

Invalidate

public void Invalidate( BOOL bErase = TRUE );

InvalidateRect

public void InvalidateRect( LPCRECT lpRect, BOOL bErase = TRUE );

InvalidateRgn

public void InvalidateRgn( CRgn* pRgn, BOOL bErase = TRUE );

InvokeHelper

public void AFX_CDECL InvokeHelper( DISPID dwDispID, WORD wFlags, VARTYPE vtRet, void* pvRet, const BYTE* pbParamInfo,... );

IsChild

public BOOL IsChild( const CWnd* pWnd ) const;

IsDialogMessage

public BOOL IsDialogMessage( LPMSG lpMsg );

IsDlgButtonChecked

public UINT IsDlgButtonChecked( int nIDButton ) const;

IsFrameWnd

public virtual BOOL IsFrameWnd() const;

IsIconic

public BOOL IsIconic() const;

IsTopParentActive

public BOOL IsTopParentActive() const;

IsWindowEnabled

public BOOL IsWindowEnabled() const;

IsWindowVisible

public BOOL IsWindowVisible() const;

IsZoomed

public BOOL IsZoomed() const;

KillTimer

public BOOL KillTimer( int nIDEvent );

LockWindowUpdate

public BOOL LockWindowUpdate();

MapWindowPoints

public void MapWindowPoints( CWnd* pwndTo, LPPOINT lpPoint, UINT nCount ) const;

MapWindowPoints

public void MapWindowPoints( CWnd* pwndTo, LPRECT lpRect ) const;

MessageBox

public int MessageBox( LPCTSTR lpszText, LPCTSTR lpszCaption = NULL, UINT nType = MB_OK );

ModifyStyle

public BOOL ModifyStyle( DWORD dwRemove, DWORD dwAdd, UINT nFlags = 0 );

ModifyStyle

public static BOOL PASCAL ModifyStyle( HWND hWnd, DWORD dwRemove, DWORD dwAdd, UINT nFlags );

ModifyStyleEx

public static BOOL PASCAL ModifyStyleEx( HWND hWnd, DWORD dwRemove, DWORD dwAdd, UINT nFlags );

ModifyStyleEx

public BOOL ModifyStyleEx( DWORD dwRemove, DWORD dwAdd, UINT nFlags = 0 );

MoveWindow

public void MoveWindow( int x, int y, int nWidth, int nHeight, BOOL bRepaint = TRUE );

MoveWindow

public void MoveWindow( LPCRECT lpRect, BOOL bRepaint = TRUE );

OnActivate

protected void OnActivate( UINT nState, CWnd* pWndOther, BOOL bMinimized );

OnActivateApp

protected void OnActivateApp( BOOL bActive, HTASK hTask );

OnActivateTopLevel

protected LRESULT OnActivateTopLevel( WPARAM, LPARAM );

OnAmbientProperty

public virtual BOOL OnAmbientProperty( COleControlSite* pSite, DISPID dispid, VARIANT* pvar );

OnAskCbFormatName

protected void OnAskCbFormatName( UINT nMaxCount, LPTSTR lpszString );

OnCancelMode

protected void OnCancelMode();

OnCaptureChanged

protected void OnCaptureChanged( CWnd* pWnd );

OnChangeCbChain

protected void OnChangeCbChain( HWND hWndRemove, HWND hWndAfter );

OnChar

protected void OnChar( UINT nChar, UINT nRepCnt, UINT nFlags );

OnCharToItem

protected int OnCharToItem( UINT nChar, CListBox* pListBox, UINT nIndex );

OnChildActivate

protected void OnChildActivate();

OnChildNotify

protected virtual BOOL OnChildNotify( UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult );

OnClose

protected void OnClose();

OnCommand

protected virtual BOOL OnCommand( WPARAM wParam, LPARAM lParam );

OnCompacting

protected void OnCompacting( UINT nCpuTime );

OnCompareItem

protected int OnCompareItem( int nIDCtl, LPCOMPAREITEMSTRUCT lpCompareItemStruct );

OnContextMenu

protected void OnContextMenu( CWnd* pWnd, CPoint pos );

OnCopyData

protected BOOL OnCopyData( CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct );

OnCreate

protected int OnCreate( LPCREATESTRUCT lpCreateStruct );

OnCtlColor

protected HBRUSH OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor );

OnDeadChar

protected void OnDeadChar( UINT nChar, UINT nRepCnt, UINT nFlags );

OnDeleteItem

protected void OnDeleteItem( int nIDCtl, LPDELETEITEMSTRUCT lpDeleteItemStruct );

OnDestroy

protected void OnDestroy();

OnDestroyClipboard

protected void OnDestroyClipboard();

OnDeviceChange

protected BOOL OnDeviceChange( UINT nEventType, DWORD dwData );

OnDevModeChange

protected void OnDevModeChange( LPTSTR lpDeviceName );

OnDisplayChange

protected LRESULT OnDisplayChange( WPARAM, LPARAM );

OnDragList

protected LRESULT OnDragList( WPARAM, LPARAM );

OnDrawClipboard

protected void OnDrawClipboard();

OnDrawItem

protected void OnDrawItem( int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct );

OnDropFiles

protected void OnDropFiles( HDROP hDropInfo );

OnEnable

protected void OnEnable( BOOL bEnable );

OnEndSession

protected void OnEndSession( BOOL bEnding );

OnEnterIdle

protected void OnEnterIdle( UINT nWhy, CWnd* pWho );

OnEnterMenuLoop

protected void OnEnterMenuLoop( BOOL bIsTrackPopupMenu );

OnEraseBkgnd

protected BOOL OnEraseBkgnd( CDC* pDC );

OnExitMenuLoop

protected void OnExitMenuLoop( BOOL bIsTrackPopupMenu );

OnFinalRelease

public virtual void OnFinalRelease();

OnFontChange

protected void OnFontChange();

OnGetDlgCode

protected UINT OnGetDlgCode();

OnGetMinMaxInfo

protected void OnGetMinMaxInfo( MINMAXINFO* lpMMI );

OnGrayCtlColor

public HBRUSH OnGrayCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor );

OnHelp

public void OnHelp();

OnHelpFinder

public void OnHelpFinder();

OnHelpIndex

public void OnHelpIndex();

OnHelpInfo

protected BOOL OnHelpInfo( HELPINFO* lpHelpInfo );

OnHelpUsing

public void OnHelpUsing();

OnHScroll

protected void OnHScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar );

OnHScrollClipboard

protected void OnHScrollClipboard( CWnd* pClipAppWnd, UINT nSBCode, UINT nPos );

OnIconEraseBkgnd

protected void OnIconEraseBkgnd( CDC* pDC );

OnInitMenu

protected void OnInitMenu( CMenu* pMenu );

OnInitMenuPopup

protected void OnInitMenuPopup( CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu );

OnKeyDown

protected void OnKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags );

OnKeyUp

protected void OnKeyUp( UINT nChar, UINT nRepCnt, UINT nFlags );

OnKillFocus

protected void OnKillFocus( CWnd* pNewWnd );

OnLButtonDblClk

protected void OnLButtonDblClk( UINT nFlags, CPoint point );

OnLButtonDown

protected void OnLButtonDown( UINT nFlags, CPoint point );

OnLButtonUp

protected void OnLButtonUp( UINT nFlags, CPoint point );

OnMButtonDblClk

protected void OnMButtonDblClk( UINT nFlags, CPoint point );

OnMButtonDown

protected void OnMButtonDown( UINT nFlags, CPoint point );

OnMButtonUp

protected void OnMButtonUp( UINT nFlags, CPoint point );

OnMDIActivate

protected void OnMDIActivate( BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd );

OnMeasureItem

protected void OnMeasureItem( int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct );

OnMenuChar

protected LRESULT OnMenuChar( UINT nChar, UINT nFlags, CMenu* pMenu );

OnMenuSelect

protected void OnMenuSelect( UINT nItemID, UINT nFlags, HMENU hSysMenu );

OnMouseActivate

protected int OnMouseActivate( CWnd* pDesktopWnd, UINT nHitTest, UINT message );

OnMouseMove

protected void OnMouseMove( UINT nFlags, CPoint point );

OnMouseWheel

protected BOOL OnMouseWheel( UINT nFlags, short zDelta, CPoint pt );

OnMove

protected void OnMove( int x, int y );

OnMoving

protected void OnMoving( UINT nSide, LPRECT lpRect );

OnNcActivate

protected BOOL OnNcActivate( BOOL bActive );

OnNcCalcSize

protected void OnNcCalcSize( BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp );

OnNcCreate

protected BOOL OnNcCreate( LPCREATESTRUCT lpCreateStruct );

OnNcDestroy

protected void OnNcDestroy();

OnNcHitTest

protected UINT OnNcHitTest( CPoint point );

OnNcLButtonDblClk

protected void OnNcLButtonDblClk( UINT nHitTest, CPoint point );

OnNcLButtonDown

protected void OnNcLButtonDown( UINT nHitTest, CPoint point );

OnNcLButtonUp

protected void OnNcLButtonUp( UINT nHitTest, CPoint point );

OnNcMButtonDblClk

protected void OnNcMButtonDblClk( UINT nHitTest, CPoint point );

OnNcMButtonDown

protected void OnNcMButtonDown( UINT nHitTest, CPoint point );

OnNcMButtonUp

protected void OnNcMButtonUp( UINT nHitTest, CPoint point );

OnNcMouseMove

protected void OnNcMouseMove( UINT nHitTest, CPoint point );

OnNcPaint

protected void OnNcPaint();

OnNcRButtonDblClk

protected void OnNcRButtonDblClk( UINT nHitTest, CPoint point );

OnNcRButtonDown

protected void OnNcRButtonDown( UINT nHitTest, CPoint point );

OnNcRButtonUp

protected void OnNcRButtonUp( UINT nHitTest, CPoint point );

OnNotify

protected virtual BOOL OnNotify( WPARAM wParam, LPARAM lParam, LRESULT* pResult );

OnNTCtlColor

protected LRESULT OnNTCtlColor( WPARAM wParam, LPARAM lParam );

OnPaint

protected void OnPaint();

OnPaintClipboard

protected void OnPaintClipboard( CWnd* pClipAppWnd, HGLOBAL hPaintStruct );

OnPaletteChanged

protected void OnPaletteChanged( CWnd* pFocusWnd );

OnPaletteIsChanging

protected void OnPaletteIsChanging( CWnd* pRealizeWnd );

OnParentNotify

protected void OnParentNotify( UINT message, LPARAM lParam );

OnQuery3dControls

protected LRESULT OnQuery3dControls( WPARAM, LPARAM );

OnQueryDragIcon

protected HCURSOR OnQueryDragIcon();

OnQueryEndSession

protected BOOL OnQueryEndSession();

OnQueryNewPalette

protected BOOL OnQueryNewPalette();

OnQueryOpen

protected BOOL OnQueryOpen();

OnRButtonDblClk

protected void OnRButtonDblClk( UINT nFlags, CPoint point );

OnRButtonDown

protected void OnRButtonDown( UINT nFlags, CPoint point );

OnRButtonUp

protected void OnRButtonUp( UINT nFlags, CPoint point );

OnRegisteredMouseWheel

protected LRESULT OnRegisteredMouseWheel( WPARAM wParam, LPARAM lParam );

OnRenderAllFormats

protected void OnRenderAllFormats();

OnRenderFormat

protected void OnRenderFormat( UINT nFormat );

OnSetCursor

protected BOOL OnSetCursor( CWnd* pWnd, UINT nHitTest, UINT message );

OnSetFocus

protected void OnSetFocus( CWnd* pOldWnd );

OnSettingChange

protected void OnSettingChange( UINT uFlags, LPCTSTR lpszSection );

OnShowWindow

protected void OnShowWindow( BOOL bShow, UINT nStatus );

OnSize

protected void OnSize( UINT nType, int cx, int cy );

OnSizeClipboard

protected void OnSizeClipboard( CWnd* pClipAppWnd, HGLOBAL hRect );

OnSizing

protected void OnSizing( UINT nSide, LPRECT lpRect );

OnSpoolerStatus

protected void OnSpoolerStatus( UINT nStatus, UINT nJobs );

OnStyleChanged

protected void OnStyleChanged( int nStyleType, LPSTYLESTRUCT lpStyleStruct );

OnStyleChanging

protected void OnStyleChanging( int nStyleType, LPSTYLESTRUCT lpStyleStruct );

OnSysChar

protected void OnSysChar( UINT nChar, UINT nRepCnt, UINT nFlags );

OnSysColorChange

protected void OnSysColorChange();

OnSysCommand

protected void OnSysCommand( UINT nID, LPARAM lParam );

OnSysDeadChar

protected void OnSysDeadChar( UINT nChar, UINT nRepCnt, UINT nFlags );

OnSysKeyDown

protected void OnSysKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags );

OnSysKeyUp

protected void OnSysKeyUp( UINT nChar, UINT nRepCnt, UINT nFlags );

OnTCard

protected void OnTCard( UINT idAction, DWORD dwActionData );

OnTimeChange

protected void OnTimeChange();

OnTimer

protected void OnTimer( UINT nIDEvent );

OnToolHitTest

public virtual int OnToolHitTest( CPoint point, TOOLINFO* pTI ) const;

OnVKeyToItem

protected int OnVKeyToItem( UINT nKey, CListBox* pListBox, UINT nIndex );

OnVScroll

protected void OnVScroll( UINT nSBCode, UINT nPos, CScrollBar* pScrollBar );

OnVScrollClipboard

protected void OnVScrollClipboard( CWnd* pClipAppWnd, UINT nSBCode, UINT nPos );

OnWindowPosChanged

protected void OnWindowPosChanged( WINDOWPOS* lpwndpos );

OnWindowPosChanging

protected void OnWindowPosChanging( WINDOWPOS* lpwndpos );

OnWinIniChange

protected void OnWinIniChange( LPCTSTR lpszSection );

OnWndMsg

protected virtual BOOL OnWndMsg( UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult );

OpenClipboard

public BOOL OpenClipboard();

OpenIcon

public BOOL OpenIcon();

operator!=

public BOOL operator!=( const CWnd& wnd ) const;

operator==

public BOOL operator==( const CWnd& wnd ) const;

PostMessage

public BOOL PostMessage( UINT message, WPARAM wParam = 0, LPARAM lParam = 0 );

PostNcDestroy

protected virtual void PostNcDestroy();

PreCreateWindow

public virtual BOOL PreCreateWindow( CREATESTRUCT& cs );

PreSubclassWindow

public virtual void PreSubclassWindow();

PreTranslateInput

public BOOL PreTranslateInput( LPMSG lpMsg );

PreTranslateMessage

public virtual BOOL PreTranslateMessage( MSG* pMsg );

Print

public void Print( CDC* pDC, DWORD dwFlags ) const;

PrintClient

public void PrintClient( CDC* pDC, DWORD dwFlags ) const;

RedrawWindow

public BOOL RedrawWindow( LPCRECT lpRectUpdate = NULL, CRgn* prgnUpdate = NULL, UINT flags = RDW_INVALIDATE| RDW_UPDATENOW| RDW_ERASE );

ReflectChildNotify

protected BOOL ReflectChildNotify( UINT message, WPARAM wParam, LPARAM lParam, LRESULT* pResult );

ReflectLastMsg

protected static BOOL PASCAL ReflectLastMsg( HWND hWndChild, LRESULT* pResult = NULL );

ReleaseDC

public int ReleaseDC( CDC* pDC );

RepositionBars

public void RepositionBars( UINT nIDFirst, UINT nIDLast, UINT nIDLeftOver, UINT nFlag = reposDefault, LPRECT lpRectParam = NULL, LPCRECT lpRectClient = NULL, BOOL bStretch = TRUE );

RunModalLoop

public int RunModalLoop( DWORD dwFlags = 0 );

ScreenToClient

public void ScreenToClient( LPRECT lpRect ) const;

ScreenToClient

public void ScreenToClient( LPPOINT lpPoint ) const;

ScrollWindow

public void ScrollWindow( int xAmount, int yAmount, LPCRECT lpRect = NULL, LPCRECT lpClipRect = NULL );

ScrollWindowEx

public int ScrollWindowEx( int dx, int dy, LPCRECT lpRectScroll, LPCRECT lpRectClip, CRgn* prgnUpdate, LPRECT lpRectUpdate, UINT flags );

SendChildNotifyLastMsg

public BOOL SendChildNotifyLastMsg( LRESULT* pResult = NULL );

SendDlgItemMessage

public LRESULT SendDlgItemMessage( int nID, UINT message, WPARAM wParam = 0, LPARAM lParam = 0 );

SendMessage

public LRESULT SendMessage( UINT message, WPARAM wParam = 0, LPARAM lParam = 0 );

SendMessageToDescendants

public static void PASCAL SendMessageToDescendants( HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam, BOOL bDeep, BOOL bOnlyPerm );

SendMessageToDescendants

public void SendMessageToDescendants( UINT message, WPARAM wParam = 0, LPARAM lParam = 0, BOOL bDeep = TRUE, BOOL bOnlyPerm = FALSE );

SendNotifyMessage

public BOOL SendNotifyMessage( UINT message, WPARAM wParam, LPARAM lParam );

SetActiveWindow

public CWnd* SetActiveWindow();

SetCapture

public CWnd* SetCapture();

SetCaretPos

public static void PASCAL SetCaretPos( POINT point );

SetClipboardViewer

public HWND SetClipboardViewer();

SetDlgCtrlID

public int SetDlgCtrlID( int nID );

SetDlgItemInt

public void SetDlgItemInt( int nID, UINT nValue, BOOL bSigned = TRUE );

SetDlgItemText

public void SetDlgItemText( int nID, LPCTSTR lpszString );

SetFocus

public CWnd* SetFocus();

SetFont

public void SetFont( CFont* pFont, BOOL bRedraw = TRUE );

SetForegroundWindow

public BOOL SetForegroundWindow();

SetIcon

public HICON SetIcon( HICON hIcon, BOOL bBigIcon );

SetMenu

public BOOL SetMenu( CMenu* pMenu );

SetOccDialogInfo

protected virtual BOOL SetOccDialogInfo( struct _AFX_OCC_DIALOG_INFO* pOccDialogInfo );

SetOwner

public void SetOwner( CWnd* pOwnerWnd );

SetParent

public CWnd* SetParent( CWnd* pWndNewParent );

SetProperty

public void AFX_CDECL SetProperty( DISPID dwDispID, VARTYPE vtProp,... );

SetRedraw

public void SetRedraw( BOOL bRedraw = TRUE );

SetScrollInfo

public BOOL SetScrollInfo( int nBar, LPSCROLLINFO lpScrollInfo, BOOL bRedraw = TRUE );

SetScrollPos

public int SetScrollPos( int nBar, int nPos, BOOL bRedraw = TRUE );

SetScrollRange

public void SetScrollRange( int nBar, int nMinPos, int nMaxPos, BOOL bRedraw = TRUE );

SetTimer

public UINT SetTimer( UINT nIDEvent, UINT nElapse, void( CALLBACK* lpfnTimer )( HWND, UINT, UINT, DWORD ) );

SetWindowContextHelpId

public BOOL SetWindowContextHelpId( DWORD dwContextHelpId );

SetWindowPlacement

public BOOL SetWindowPlacement( const WINDOWPLACEMENT* lpwndpl );

SetWindowPos

public BOOL SetWindowPos( const CWnd* pWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags );

SetWindowRgn

public int SetWindowRgn( HRGN hRgn, BOOL bRedraw );

SetWindowText

public void SetWindowText( LPCTSTR lpszString );

ShowCaret

public void ShowCaret();

ShowOwnedPopups

public void ShowOwnedPopups( BOOL bShow = TRUE );

ShowScrollBar

public void ShowScrollBar( UINT nBar, BOOL bShow = TRUE );

ShowWindow

public BOOL ShowWindow( int nCmdShow );

SubclassCtl3d

public BOOL SubclassCtl3d( int nControlType =-1 );

SubclassDlg3d

public BOOL SubclassDlg3d( DWORD dwMask = 0xFFFF );

SubclassDlgItem

public BOOL SubclassDlgItem( UINT nID, CWnd* pParent );

SubclassWindow

public BOOL SubclassWindow( HWND hWnd );

UnlockWindowUpdate

public void UnlockWindowUpdate();

UnsubclassWindow

public HWND UnsubclassWindow();

UpdateData

public BOOL UpdateData( BOOL bSaveAndValidate = TRUE );

UpdateDialogControls

public void UpdateDialogControls( CCmdTarget* pTarget, BOOL bDisableIfNoHndler );

UpdateWindow

public void UpdateWindow();

ValidateRect

public void ValidateRect( LPCRECT lpRect );

ValidateRgn

public void ValidateRgn( CRgn* pRgn );

WalkPreTranslateTree

public static BOOL PASCAL WalkPreTranslateTree( HWND hWndStop, MSG* pMsg );

WindowFromPoint

public static CWnd* PASCAL WindowFromPoint( POINT point );

WindowProc

protected virtual LRESULT WindowProc( UINT message, WPARAM wParam, LPARAM lParam );

WinHelp

public virtual void WinHelp( DWORD dwData, UINT nCmd = HELP_CONTEXT );

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD