Link to home
Start Free TrialLog in
Avatar of SHULTZ
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.
Avatar of migel
migel

good example you can find at: http://www.codeguru.com/docking/index.shtml
Avatar of SHULTZ

ASKER

To: migel:
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::CalcFixedLayout(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.

Avatar of SHULTZ

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.
ASKER CERTIFIED SOLUTION
Avatar of exseal
exseal

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial