SizeToRect Trouble
-
I am having trouble using the ReBarCtrl SizeToRect method which is supposed to resize the rebar control and "best fit" all of the rebar bands in it.
CRect pRect; pRect.bottom = 50; int rResult = m_Rebar->GetReBarCtrl().SizeToRect(pRect);
rResult always returns 1 (which supposedly means it is working) but irrespective of what values are contaed in pRect, the rebar ends up being only one row high. Can anyone shed some light on this please? -
I am having trouble using the ReBarCtrl SizeToRect method which is supposed to resize the rebar control and "best fit" all of the rebar bands in it.
CRect pRect; pRect.bottom = 50; int rResult = m_Rebar->GetReBarCtrl().SizeToRect(pRect);
rResult always returns 1 (which supposedly means it is working) but irrespective of what values are contaed in pRect, the rebar ends up being only one row high. Can anyone shed some light on this please?Hello, You should set all the members for the rect structure.
rect.left (x1)
rect.right (x2)
rect.top (y1)
rect.bottom (y2)This way it should resize to de dimensions you desire
-
Hello, You should set all the members for the rect structure.
rect.left (x1)
rect.right (x2)
rect.top (y1)
rect.bottom (y2)This way it should resize to de dimensions you desire
I tried that as well Bob but still got the same results :(