Detect if window is split
Posted
by Randy More
on October 1st, 2002
int CMySplitterView::IsSplit(void)
{
CSplitterWnd * parent;
parent = (CSplitterWnd*)GetParent();
int rows;
rows = parent->GetRowCount();
if(rows>1)
{
return(TRUE);
}
int cols;
cols = parent->GetColumnCount();
if(cols>1)
{
return(TRUE);
}
return(FALSE);
}

Comments
A little problem
Posted by Legacy on 11/24/2002 12:00amOriginally posted by: LuoJg
I used this function in SDI. I didn't split it.
Replybut I got" rows = 0, cols = 1598738480." I don't know what's wrong?