CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Help in coding

  1. #1
    Guest

    Help in coding

    Hai friends,

    How the size of the controls are increasing/decreasing with respect to the client area, when we
    use maximize and minimize button. pl. send me any example code.. (or) please mail me what are
    the event i have to take care.

    Mail id : [email protected]

    waiting for you suggestions
    Bhaskar




  2. #2
    Join Date
    May 1999
    Location
    WA
    Posts
    236

    Re: Help in coding

    in OnPaint() i.e.
    CRect rect;
    GetClientRect(&rect);
    int x = (rect.Width());
    int y = (rect.Height());

    Roger L. McElfresh

  3. #3
    Join Date
    May 1999
    Location
    WA
    Posts
    236

    Re: Help in coding

    P.S. This is only one method, there are other ways.

    Roger L. McElfresh

  4. #4
    Guest

    Re: Help in coding

    Windows sends a WM_SIZE message when the user resizes a control. You can override this method, and use the new client rect to size your controls accordingly


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