Wondow Size adjust

Posted on 2005-05-09
Last Modified: 2013-11-20
I want to adjust the window size of other window from main window.  Please give the code also
Question by:inetworks
    LVL 3

    Accepted Solution

    RECT rc;

         // resize the sheet
         GetWindowRect (&rc);
         ScreenToClient (&rc);
         rc.right += 50;
         rc.bottom += 50;
         MoveWindow (&rc);

    LVL 55

    Assisted Solution

    by:Jaime Olivares

    SetWindowPos(NULL, 0,0,newW, newH, SWP_NOMOVE|SWP_NOZORDER);
    from a class' function member,or:
    wndpointer->SetWindowPos(NULL, 0,0,newW, newH, SWP_NOMOVE|SWP_NOZORDER);
    from an external class.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
    Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now