6/8/2023 0 Comments Mfc propertygrid control![]() Void CChildFrame::SaveBarState(LPCTSTR lpszProfileName) constĬonst_cast(this)->GetDockingManager()->SaveState(lpszProfileName) Trick#2: Add this line for remove the ugly client edge of the child frame. ![]() | FWS_ADDTOTITLE | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_MAXIMIZE If( !CMDIChildWndEx::PreCreateWindow(cs) )Ĭs.style = WS_CHILD | WS_VISIBLE | WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU Trick#1: Add this line for enable floating toolbarsīOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs) IMPLEMENT_DYNCREATE(CChildFrame, CMDIChildWndEx)īEGIN_MESSAGE_MAP(CChildFrame, CMDIChildWndEx) ![]() Virtual void LoadBarState(LPCTSTR lpszProfileName) Īfx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct) Virtual void SaveBarState(LPCTSTR lpszProfileName) const CMDIChildWndEx class haven't serialization for state of the docking manager, Virtual BOOL PreCreateWindow(CREATESTRUCT& cs) Declare child frameĬlass CChildFrame : public CMDIChildWndEx In MFC Feature pack such child frame is inherited from CMDIChildWndEx class and as main frame (inherited from CMDIFrameWndEx) have all required code for such docking.īut there is some tricks for child frame. ![]() Some times application must have panes that docked not to the main frame, but to the child frame.
0 Comments
Leave a Reply. |