SHULTZ
asked on
How to size CDialogBar?
VC5 - MFC
I would like to build a dialog bar with a listview. It is easy to do, but I need a docking resizeable dialog bar... and I cannot find any solution.
I use a CDialogBar type object.
I would like to build a dialog bar with a listview. It is easy to do, but I need a docking resizeable dialog bar... and I cannot find any solution.
I use a CDialogBar type object.
good example you can find at: http://www.codeguru.com/docking/index.shtml
ASKER
To: migel:
Your suggestion feel good.
Your suggestion feel good.
To set the size of the dialog bar, you must derive a class from the CDialogBar and override the function CalcFixedLayout()
CSize CMyDialogBar::CalcFixedLay out(BOOL bStretch, BOOL bHorz)
{
CSize size;
size.cx = m_Width; // fix the width of the dialog
size.cy = m_Height; // fix the height of the dialog
return size;
}
Of course, you must capture the mouse events, track the dialog bar size and position and save this in the dialog bar.
regards, jean-claude.
CSize CMyDialogBar::CalcFixedLay
{
CSize size;
size.cx = m_Width; // fix the width of the dialog
size.cy = m_Height; // fix the height of the dialog
return size;
}
Of course, you must capture the mouse events, track the dialog bar size and position and save this in the dialog bar.
regards, jean-claude.
ASKER
My problem is just in the clause you begin with "Of course" :-)
I'm looking for some examples about tracking and resizing docking dialogbar. Sorry.
I'm looking for some examples about tracking and resizing docking dialogbar. Sorry.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.