CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2004
    Posts
    43

    how to change the size of the control in a dialog dynamicly?

    when i resize my dialog(maximize),the edit control looks very small,is there any method to change the size of these controls when the dialog's size is changed?

  2. #2
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211
    In the OnSize(...) of Dialog, get the CEdit (or whatever window), either through GetDlgItem(...) or through control variable and use MoveWindow(...) function to resize the Edit or whatever window to whatever new size you want.

  3. #3
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    Look in the CodeGuru articles for many answers to this question.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

  4. #4
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    Take a look at the following article...

  5. #5
    Join Date
    May 1999
    Location
    Southern California
    Posts
    12,266
    Originally posted by Andreas Masur
    Take a look at the following article...
    However there are other articles too, right? I think lugangxyz should look at all of them.
    "Signature":
    My web site is Simple Samples.
    C# Corner Editor

  6. #6
    Join Date
    Mar 2004
    Posts
    43
    thank all of you

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