change the frame window size according to font size increases.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

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

Hybrid View

  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 29th, 2012 at 11:26 PM.

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

    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
    Posts
    12,098

    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
    Posts
    12,098

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center