can't get correct rect of the toolbar
Posted on 1998-03-15
I want to position a button at the extreme right edge of the toolbar,
In main frame on create i create the toolbar and the buttons,
m_toolbar.GetClientRect returns me width and height of 0. Then i tried the Mainframe.getwindowrect which gives me less than the correct values(incidentally the keep changing each time),Could any body figure out the flaw in my pprocah, or thera a problem with MFC?
How can i get the actual(correct) size of the toolbar