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 CDialog

CObject
   |
   +--CCmdTarget
         |
         +--CWnd
               |
               +--CDialog

   in AFXWIN.H
Direct Known Subclasses:
CCommonDialog, COlePropertyPage, CPropertyPage

class CDialog
extends CWnd

CDialog - a modal or modeless dialog


Field Summary
protected HGLOBAL m_hDialogTemplate
          
protected HWND m_hWndTop
          
protected void* m_lpDialogInit
          
protected LPCDLGTEMPLATE m_lpDialogTemplate
          
protected LPCTSTR m_lpszTemplateName
          
protected UINT m_nIDHelp
          
protected _AFX_OCC_DIALOG_INFO* m_pOccDialogInfo
          
protected CWnd* m_pParentWnd
          
protected static AFX_CORE_DATA const AFX_MSGMAP messageMap
          
   
Fields inherited from class CWnd
m_hWnd, wndTop, wndBottom, wndTopMost, wndNoTopMost, m_hWndOwner, m_nFlags, m_pfnSuper, m_nMsgDragList, m_nModalResult, m_pDropTarget, m_pCtrlCont, m_pCtrlSite, messageMap
   
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
CDialog( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL )
          
CDialog( UINT nIDTemplate, CWnd* pParentWnd = NULL )
          
CDialog()
          
virtual ~CDialog()
          
 
Method Summary
 virtual BOOL CheckAutoCenter()
          
 BOOL Create( UINT nIDTemplate, CWnd* pParentWnd = NULL )
          
 BOOL Create( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL )
          
protected BOOL CreateIndirect( HGLOBAL hDialogTemplate, CWnd* pParentWnd, HINSTANCE hInst )
          
 BOOL CreateIndirect( LPCDLGTEMPLATE lpDialogTemplate, CWnd* pParentWnd = NULL, void* lpDialogInit = NULL )
          
protected BOOL CreateIndirect( LPCDLGTEMPLATE lpDialogTemplate, CWnd* pParentWnd, void* lpDialogInit, HINSTANCE hInst )
          
 BOOL CreateIndirect( HGLOBAL hDialogTemplate, CWnd* pParentWnd = NULL )
          
 virtual int DoModal()
          
 void EndDialog( int nResult )
          
 DWORD GetDefID() const
          
protected virtual const AFX_MSGMAP* GetMessageMap() const
          
 void GotoDlgCtrl( CWnd* pWndCtrl )
          
protected LRESULT HandleInitDialog( WPARAM, LPARAM )
          
protected LRESULT HandleSetFont( WPARAM, LPARAM )
          
 BOOL InitModalIndirect( LPCDLGTEMPLATE lpDialogTemplate, CWnd* pParentWnd = NULL, void* lpDialogInit = NULL )
          
 BOOL InitModalIndirect( HGLOBAL hDialogTemplate, CWnd* pParentWnd = NULL )
          
 void MapDialogRect( LPRECT lpRect ) const
          
 void NextDlgCtrl() const
          
protected virtual void OnCancel()
          
 virtual BOOL OnCmdMsg( UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo )
          
protected LRESULT OnCommandHelp( WPARAM wParam, LPARAM lParam )
          
protected HBRUSH OnCtlColor( CDC* pDC, CWnd* pWnd, UINT nCtlColor )
          
protected LRESULT OnHelpHitTest( WPARAM wParam, LPARAM lParam )
          
 virtual BOOL OnInitDialog()
          
protected virtual void OnOK()
          
 virtual void OnSetFont( CFont* pFont )
          
protected void PostModal()
          
protected virtual void PreInitDialog()
          
protected HWND PreModal()
          
 virtual BOOL PreTranslateMessage( MSG* pMsg )
          
 void PrevDlgCtrl() const
          
 void SetDefID( UINT nID )
          
 void SetHelpID( UINT nIDR )
          
protected virtual BOOL SetOccDialogInfo( _AFX_OCC_DIALOG_INFO* pOccDialogInfo )
          
   
Methods inherited from class CWnd
GetCurrentMessage, HWND, operator==, operator!=, GetSafeHwnd, GetStyle, GetExStyle, ModifyStyle, ModifyStyleEx, GetOwner, SetOwner, FromHandle, FromHandlePermanent, DeleteTempMap, Attach, Detach, PreSubclassWindow, SubclassWindow, SubclassDlgItem, UnsubclassWindow, ExecuteDlgInit, ExecuteDlgInit, Create, CreateEx, CreateEx, CreateControl, CreateControl, CreateControl, GetControlUnknown, DestroyWindow, PreCreateWindow, CalcWindowRect, GetDlgCtrlID, SetDlgCtrlID, GetDlgItem, GetDlgItem, GetDescendantWindow, SendMessageToDescendants, GetParentFrame, GetTopLevelParent, GetTopLevelOwner, GetParentOwner, GetTopLevelFrame, GetSafeOwner, SendMessage, PostMessage, SendNotifyMessage, SendChildNotifyLastMsg, IsDialogMessage, SetWindowText, GetWindowText, GetWindowText, GetWindowTextLength, SetFont, GetFont, GetMenu, SetMenu, DrawMenuBar, GetSystemMenu, HiliteMenuItem, IsIconic, IsZoomed, MoveWindow, MoveWindow, SetWindowRgn, GetWindowRgn, SetWindowPos, ArrangeIconicWindows, BringWindowToTop, GetWindowRect, GetClientRect, GetWindowPlacement, SetWindowPlacement, ClientToScreen, ClientToScreen, ScreenToClient, ScreenToClient, MapWindowPoints, MapWindowPoints, BeginPaint, EndPaint, GetDC, GetWindowDC, ReleaseDC, Print, PrintClient, UpdateWindow, SetRedraw, GetUpdateRect, GetUpdateRgn, Invalidate, InvalidateRect, InvalidateRgn, ValidateRect, ValidateRgn, ShowWindow, IsWindowVisible, ShowOwnedPopups, GetDCEx, LockWindowUpdate, UnlockWindowUpdate, RedrawWindow, EnableScrollBar, SetTimer, KillTimer, EnableToolTips, EnableTrackingToolTips, CancelToolTips, FilterToolTipMessage, OnToolHitTest, IsWindowEnabled, EnableWindow, GetActiveWindow, SetActiveWindow, SetForegroundWindow, GetForegroundWindow, GetCapture, SetCapture, GetFocus, SetFocus, GetDesktopWindow, CloseWindow, OpenIcon, CheckDlgButton, CheckRadioButton, GetCheckedRadioButton, DlgDirList, DlgDirListComboBox, DlgDirSelect, DlgDirSelectComboBox, GetDlgItemInt, GetDlgItemText, GetDlgItemText, GetNextDlgGroupItem, GetNextDlgTabItem, IsDlgButtonChecked, SendDlgItemMessage, SetDlgItemInt, SetDlgItemText, GetScrollPos, GetScrollRange, ScrollWindow, SetScrollPos, SetScrollRange, ShowScrollBar, EnableScrollBarCtrl, GetScrollBarCtrl, ScrollWindowEx, SetScrollInfo, GetScrollInfo, GetScrollLimit, ChildWindowFromPoint, ChildWindowFromPoint, FindWindow, GetNextWindow, GetTopWindow, GetWindow, GetLastActivePopup, IsChild, GetParent, SetParent, WindowFromPoint, FlashWindow, MessageBox, ChangeClipboardChain, SetClipboardViewer, OpenClipboard, GetClipboardOwner, GetClipboardViewer, GetOpenClipboardWindow, CreateCaret, CreateSolidCaret, CreateGrayCaret, GetCaretPos, SetCaretPos, HideCaret, ShowCaret, DragAcceptFiles, SetIcon, GetIcon, SetWindowContextHelpId, GetWindowContextHelpId, UpdateData, OnHelp, OnHelpIndex, OnHelpFinder, OnHelpUsing, WinHelp, RepositionBars, UpdateDialogControls, CenterWindow, RunModalLoop, ContinueModal, EndModalLoop, InvokeHelper, SetProperty, GetProperty, GetDSCCursor, BindDefaultProperty, BindProperty, OnCommand, OnNotify, OnActivate, OnActivateApp, OnActivateTopLevel, OnCancelMode, OnChildActivate, OnClose, OnContextMenu, OnCopyData, OnCreate, OnCtlColor, OnDestroy, OnEnable, OnEndSession, OnEnterIdle, OnEraseBkgnd, OnGetMinMaxInfo, OnHelpInfo, OnIconEraseBkgnd, OnKillFocus, OnMenuChar, OnMenuSelect, OnMove, OnPaint, OnParentNotify, OnQueryDragIcon, OnQueryEndSession, OnQueryNewPalette, OnQueryOpen, OnSetFocus, OnShowWindow, OnSize, OnTCard, OnWindowPosChanging, OnWindowPosChanged, OnNcActivate, OnNcCalcSize, OnNcCreate, OnNcDestroy, OnNcHitTest, OnNcLButtonDblClk, OnNcLButtonDown, OnNcLButtonUp, OnNcMButtonDblClk, OnNcMButtonDown, OnNcMButtonUp, OnNcMouseMove, OnNcPaint, OnNcRButtonDblClk, OnNcRButtonDown, OnNcRButtonUp, OnDropFiles, OnPaletteIsChanging, OnSysChar, OnSysCommand, OnSysDeadChar, OnSysKeyDown, OnSysKeyUp, OnCompacting, OnDevModeChange, OnFontChange, OnPaletteChanged, OnSpoolerStatus, OnSysColorChange, OnTimeChange, OnSettingChange, OnWinIniChange, OnChar, OnDeadChar, OnHScroll, OnVScroll, OnKeyDown, OnKeyUp, OnLButtonDblClk, OnLButtonDown, OnLButtonUp, OnMButtonDblClk, OnMButtonDown, OnMButtonUp, OnMouseActivate, OnMouseMove, OnMouseWheel, OnRegisteredMouseWheel, OnRButtonDblClk, OnRButtonDown, OnRButtonUp, OnSetCursor, OnTimer, OnInitMenu, OnInitMenuPopup, OnAskCbFormatName, OnChangeCbChain, OnDestroyClipboard, OnDrawClipboard, OnHScrollClipboard, OnPaintClipboard, OnRenderAllFormats, OnRenderFormat, OnSizeClipboard, OnVScrollClipboard, OnCompareItem, OnDeleteItem, OnDrawItem, OnGetDlgCode, OnMeasureItem, OnCharToItem, OnVKeyToItem, OnMDIActivate, OnEnterMenuLoop, OnExitMenuLoop, OnStyleChanged, OnStyleChanging, OnSizing, OnMoving, OnCaptureChanged, OnDeviceChange, GetSuperWndProcAddr, DoDataExchange, BeginModalState, EndModalState, PreTranslateMessage, OnAmbientProperty, WindowProc, OnWndMsg, Default, DefWindowProc, PostNcDestroy, OnChildNotify, ReflectChildNotify, ReflectLastMsg, CheckAutoCenter, SubclassCtl3d, SubclassDlg3d, GrayCtlColor, OnGrayCtlColor, HandleFloatingSysCommand, IsTopParentActive, ActivateTopParent, WalkPreTranslateTree, GetDescendantWindow, SendMessageToDescendants, IsFrameWnd, OnFinalRelease, PreTranslateInput, ModifyStyle, ModifyStyleEx, _FilterToolTipMessage, _EnableToolTips, GetSafeOwner_, CreateDlg, CreateDlgIndirect, CreateDlgIndirect, InitControlContainer, SetOccDialogInfo, AttachControlSite, AttachControlSite, OnNTCtlColor, OnQuery3dControls, OnDisplayChange, OnDragList, GetMessageMap
   
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_hDialogTemplate

protected HGLOBAL m_hDialogTemplate;

m_hWndTop

protected HWND m_hWndTop;

m_lpDialogInit

protected void* m_lpDialogInit;

m_lpDialogTemplate

protected LPCDLGTEMPLATE m_lpDialogTemplate;

m_lpszTemplateName

protected LPCTSTR m_lpszTemplateName;

m_nIDHelp

protected UINT m_nIDHelp;

m_pOccDialogInfo

protected _AFX_OCC_DIALOG_INFO* m_pOccDialogInfo;

m_pParentWnd

protected CWnd* m_pParentWnd;

messageMap

protected static AFX_CORE_DATA const AFX_MSGMAP messageMap;


Constructor Detail

CDialog

public CDialog( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL );

CDialog

public CDialog( UINT nIDTemplate, CWnd* pParentWnd = NULL );

CDialog

public CDialog();

~CDialog

public virtual ~CDialog();


Method Detail

CheckAutoCenter

public virtual BOOL CheckAutoCenter();

Create

public BOOL Create( UINT nIDTemplate, CWnd* pParentWnd = NULL );

Create

public BOOL Create( LPCTSTR lpszTemplateName, CWnd* pParentWnd = NULL );

CreateIndirect

protected BOOL CreateIndirect( HGLOBAL hDialogTemplate, CWnd* pParentWnd, HINSTANCE hInst );

CreateIndirect

public BOOL CreateIndirect( LPCDLGTEMPLATE lpDialogTemplate, CWnd* pParentWnd = NULL, void* lpDialogInit = NULL );

CreateIndirect

protected BOOL CreateIndirect( LPCDLGTEMPLATE lpDialogTemplate, CWnd* pParentWnd, void* lpDialogInit, HINSTANCE hInst );

CreateIndirect

public BOOL CreateIndirect( HGLOBAL hDialogTemplate, CWnd* pParentWnd = NULL );

DoModal

public virtual int DoModal();

EndDialog

public void EndDialog( int nResult );

GetDefID

public DWORD GetDefID() const;

GetMessageMap

protected virtual const AFX_MSGMAP* GetMessageMap() const;

GotoDlgCtrl

public void GotoDlgCtrl( CWnd* pWndCtrl );

HandleInitDialog

protected LRESULT HandleInitDialog( WPARAM, LPARAM );

HandleSetFont

protected LRESULT HandleSetFont( WPARAM, LPARAM );

InitModalIndirect

public BOOL InitModalIndirect( LPCDLGTEMPLATE lpDialogTemplate, CWnd* pParentWnd = NULL, void* lpDialogInit = NULL );

InitModalIndirect

public BOOL InitModalIndirect( HGLOBAL hDialogTemplate, CWnd* pParentWnd = NULL );

MapDialogRect

public void MapDialogRect( LPRECT lpRect ) const;

NextDlgCtrl

public void NextDlgCtrl() const;

OnCancel

protected virtual void OnCancel();

OnCmdMsg

public virtual BOOL OnCmdMsg( UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo );

OnCommandHelp

protected LRESULT OnCommandHelp( WPARAM wParam, LPARAM lParam );

OnCtlColor

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

OnHelpHitTest

protected LRESULT OnHelpHitTest( WPARAM wParam, LPARAM lParam );

OnInitDialog

public virtual BOOL OnInitDialog();

OnOK

protected virtual void OnOK();

OnSetFont

public virtual void OnSetFont( CFont* pFont );

PostModal

protected void PostModal();

PreInitDialog

protected virtual void PreInitDialog();

PreModal

protected HWND PreModal();

PreTranslateMessage

public virtual BOOL PreTranslateMessage( MSG* pMsg );

PrevDlgCtrl

public void PrevDlgCtrl() const;

SetDefID

public void SetDefID( UINT nID );

SetHelpID

public void SetHelpID( UINT nIDR );

SetOccDialogInfo

protected virtual BOOL SetOccDialogInfo( _AFX_OCC_DIALOG_INFO* pOccDialogInfo );

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