newntui/discovermdi/src/dockablebrowser.cpp
//---------------------------------------------------------------------------------
// Callback runs every time  sash changed it's position.
// We need to resize our dockable window, position all controls in it and update
// our sash position.
//---------------------------------------------------------------------------------
Callback runs every time  sash changed it's position.
We need to resize our dockable window, position all controls in it and update
our sash position.
Callback runs every time sash changed it ' s position . We need to resize our dockable window position all controls in it and update our sash position .
LRESULT CDockableBrowser::OnQuerySplitMoved(WPARAM wparam, LPARAM lparam) {
CRect winRect;
CRect sashRect;
    GetWindowRect(&winRect);
	m_QueryDividerSash.GetWindowRect(&sashRect);
    m_QuerySplitterX=(int)wparam+(sashRect.left-winRect.left);
    SetSplitteredWindowsPos();
    return TRUE;
}
LRESULT CDockableBrowser :: OnQuerySplitMoved ( WPARAM wparam , LPARAM lparam ) { CRect winRect ; CRect sashRect ; GetWindowRect ( & winRect ) ; m_QueryDividerSash . GetWindowRect ( & sashRect ) ; m_QuerySplitterX = ( int ) wparam + ( sashRect . left - winRect . left ) ; SetSplitteredWindowsPos ( ) ; return TRUE ; }
Callback runs every time  sash changed it's position.
Callback runs every time sash changed it ' s position .