Is there a function for CDialogBar like OnInitDialog() or OnInitialUpdate() that is called after the dialog bar has been drawn where I can put initial values into the control in my override class of it? I temporarily did this in ShowWindow override, but I don't want it to do it EVERY time the window shows and hides, just the first time.

2nd part to the question, why do I get 0 for a height for the dlg bar when I get the rect for it from my OnIntialUpdate() of my view class?

CMainFrame* pFrame = (CMainFrame*)GetParentFrame();
CRect DlgBarRect;
pFrame->m_wndDlgBar.GetClientRect(DlgBarRect);
int BarHeight = DlgBarRect.Height();



This gives BarHeight to be 0, and is called from my view class.
Thanks..
Help on either is appreciated.

*DM*
AIM/AOL: Rais69
ICQ: 39184886
Email: [email protected]