I have a CView which is one of three views that is seperated by
SplitterWnds. In this view i would like to create a CStatic
object which is in the entire size of the view. I would also like
it resize when the splitter is moved (thus resizing the view).
In the OnCreate function of my View i have the following
the create call fails (returns a 1).Code:CRect rect; this->GetClientRect(&rect); m_wndStatic.Create("test", WS_CHILD | WS_VISIBLE | SS_GRAYRECT, rect, this, IDC_STATIC0;
if i deflate the rect by say -10 units for each parameter (top, left,
right, and bottom) a very small static object shows.
What am i doing wrong? why is the call to GetClientRect not
filling the CRect object?
any help would be greatly appreciated.
thank you




Reply With Quote