Click to See Complete Forum and Search --> : PropertyPages disappearing


Matt Swensson
March 29th, 1999, 04:21 AM
This makes no sense to me and I REALLY need to fix it. I have a propertysheet with 6 propertypages on it. When i

select one, (no one in particular), pages start to disappear.

i.e. I select page 4 (of the 6), this page disappears and I see page 1 again, but it is all messed up. Then I select

another page and it is a toss up whether or not it will disappear or not. It seems like once a page goes, the ordering

is out of whack and that is why other pages go. But I don't understand why the first occurance happens, it isn't the

same page everytime.

code:

PropSheet propsh(_T("Create New Record"),this);

//get rid of apply button

propsh.m_psh.dwFlags |= PSH_NOAPPLYNOW;

ProPage1 p1;

ProPage2 p2;

ProPage3 p3;

ProPage4 p4;

ProPage5 p5;

ProPage6 p6;

//set some variables in pages

.

.

.

//now add pages

propsh.AddPage(&p1);

if(app->GetSecurityLevel()>1)

{

propsh.AddPage(&p2);

propsh.AddPage(&p3);

propsh.AddPage(&p4);

propsh.AddPage(&p5);

propsh.AddPage(&p6);

}

int res;

res = propsh.DoModal();

All pages have correct resource settings, Thin Border, Child window, Title bar, disabled.

Also, it doesn't seem to happen, if there are only like 3 pages...


Please HELP!!!