CWceFrame Class |
Description
The WceFrame class provides a simple frame for the Windows CE operating system. It uses a command bar to provide the menu and toolbar buttons.
Use the PocketPCFrame sample as the starting point for your own frame based application for Windows CE.
CWceFrame Members
CWceFrame | CWceFrame();Constructor for CWceFrame. |
virtual void AddToolBarButton(UINT nID);Adds a button to the toolbar.
CRect GetViewRect() const;Returns a RECT structure which contains the dimensions of the client area of the frame.
CCmdBar& GetMenuBar() const;Returns a reference to the frame's CCmdBar object, which manages the frame's command bar.
virtual void RecalcLayout();Repositions the client area of the frame.
virtual void SetButtons(const std::vector<UINT> ToolBarData);Sets the toolbar buttons of the command bar.
Overridables
OnActivate | virtual void OnActivate(WPARAM wParam, LPARAM lParam);Called when the frame is activated. |
OnCreate | virtual void OnCreate();Called during window creation. Override this function to perform tasks such as creating child windows. |
PreCreate | virtual void PreCreate(CREATESTRUCT &cs);Called before the window is created. Override this function to set the window creation parameters. |
PreTranslateMessage | virtual BOOL PreTranslateMessage(MSG* pMsg);Override this function to filter mouse and keyboard messages prior to being passed to the message loop. |
Base class Members
For base class members, refer to the members of CWnd.
Summary Information
Header file | wceframe.h |
Win32/64 support | No |
WinCE support | Yes |