CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2012
    Posts
    21

    change the frame window size according to font size increases.

    hello all!
    Last edited by mr.sam1024; November 30th, 2012 at 12:26 AM.

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    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.

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    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().

  4. #4
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: change the frame window size according to font size increases.

    Quote Originally Posted by mr.sam1024 View Post
    If possible please send code.
    Sorry, I have my own work to do.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured