I have a splitter window 1 column and 2 rows. On specific user events I want to display 2 rows else I want to hide the bottom row.

I have tried the following, but makes no visual difference, nothing changes?

// hide bottom row pane
if( show == false && mShow == true ){
mShow = false;
pWnd->SetRowInfo(1,0,0); // hide
pWnd->RecalcLayout();
}else if( show == true && mShow == false ){
pWnd->SetRowInfo(1,400,0); // show
pWnd->RecalcLayout();
mShow = true;
}

Where pWnd is the splitter. How can i programatically hide the bottom row?

Thanks in advance.