Results 1 to 2 of 2

Thread: Resizing

  1. #1

    Thread Starter
    Frenzied Member JasonLpz's Avatar
    Join Date
    Mar 2001
    Location
    Brooklyn, NY
    Posts
    1,335

    Resizing

    im using
    VB Code:
    1. case WM_SIZE:
    2. {
    3. RECT rcClient;
    4. GetClientRect(hwnd, &rcClient);
    5.  
    6. SetWindowPos(hList, NULL, 0, 0, rcClient.right, rcClient.bottom, SWP_NOZORDER);
    7. break;
    8. }

    Is this a good way to do it?
    - JayWare
    Live to love. Not to Hate

    Im to busy to have a site. But I got one and still working on it.

    http://dre3k.net/

  2. #2
    Hyperactive Member made_of_asp's Avatar
    Join Date
    Jul 2001
    Location
    123 Fake Street
    Posts
    394
    That looks fine, but you can also use MoveWindow() which is easier.

    Code:
    SetWindowPos(hList, NULL, 0, 0, rcClient.right, rcClient.bottom, SWP_NOZORDER);
    VS.NET 2003

    Need to email me?

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