change the frame window size according to font size increases.
Re: change the frame window size according to font size increases.
Not sure what to advise, but what are you going to do with variable width fonts? In most fonts, IIIII is not as wide as WWWWW. Just saying 80 characters without taking into account which characters, doesn't make a lot of sense.
Re: change the frame window size according to font size increases.
I'd start by looking at CDC::GetTextExtent(), CWnd::MoveWindow() and if applicable, CScrollView::ResizeParentToFit().
Re: change the frame window size according to font size increases.
Quote:
Originally Posted by
mr.sam1024
If possible please send code.
Sorry, I have my own work to do.