• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

Wondow Size adjust

I want to adjust the window size of other window from main window.  Please give the code also
Thanks
0
inetworks
Asked:
inetworks
2 Solutions
 
NawalKishore1976Commented:
RECT rc;

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

0
 
Jaime OlivaresCommented:
newW=400;
newH=200;

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.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now