CFrameWnd

The CFrameWnd class encapsulates the functionality of a Windows single document interface (SDI) frame window. A frame window is a window that frames an application. In Windows CE, it usually contains a view window and a command bar.

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

One of the most interesting new features in Windows CE is command bars, which combines the functionality of a menu bar and a tool bar. MFC for Windows CE supports command bars with the following new member functions, which have been added to the CFrameWnd class.

CFrameWnd::AddAdornments

CFrameWnd::AddBitmap

CFrameWnd::AddComboBoxString

CFrameWnd::GetComboCount

CFrameWnd::GetComboCurSel

CFrameWnd::InsertButtons

CFrameWnd::InsertComboBox

CFrameWnd::InsertMenu

CFrameWnd::SetComboCurSel

MFC for Windows CE also supports a new data member of the CFrameWnd class. The m_hCommandBar member is the window handle to the frame window's command bar.

For more information on command bars and command bar buttons, see the following topics.

Command Bars

Command Bar Buttons

Command Bar Button Styles

Command Bar Button States

MFC for Windows CE does not support the following member functions of the CFrameWnd class.

DockControlBar

EnableDocking

FloatControlBar

GetControlBar

GetDockState

GetMessageBar

GetMessageString

LoadAccelTable

LoadBarState

NegotiateBorderSpace

OnContextHelp

OnSetPreviewMode

RecalcLayout

SaveBarState

SetDockState

SetMessageText

ShowControlBar

See Also

CFrameWnd Member Functions, CFrameWnd Data Members, Frame Windows and Splitter Windows, CWnd, CView, CDocTemplate, CRuntimeClass