Immediate help required !!!!!!
-
I am using tabcontrols in a SDI application. on my toolbar i have buttons name "Play" and "Veiw Log" and down to toolbar i have tab controls, two buttons name "IP Statistics ", "Send Email". when i click the "Play" button the dialog opens which exist as property sheet under the tab button "IP Statistics". Now what i want is, the dialog which has been opened must be sized according to the parent window. something i know is, i have to do with onsize method of my view class. plz tell me the complete solution. thanx Alot! Reply me soon
-
I am using tabcontrols in a SDI application. on my toolbar i have buttons name "Play" and "Veiw Log" and down to toolbar i have tab controls, two buttons name "IP Statistics ", "Send Email". when i click the "Play" button the dialog opens which exist as property sheet under the tab button "IP Statistics". Now what i want is, the dialog which has been opened must be sized according to the parent window. something i know is, i have to do with onsize method of my view class. plz tell me the complete solution. thanx Alot! Reply me soon
First a comment about your post. Maybe i'm a little touchy :-O but I do not think that posting a thread containing "immmediate help required" "plz tell me the complete solution" "Reply me soon" is the best way to get a quick answer. Replace it with "Resizing a dialog to my current view size" in the title, and "could you provide me with a small code snippet" would certainly help. As for your problem, if you want your property sheet to be sized to your view, retrieve the cx and cy parameter from
CWnd::OnSize(UINT nType, int cx, int cy )
and use them to calculate the new size of your property sheet, maybe with a MoveWindow(), or SetWindowPos(). ~RaGE();