Advertisement
Mysoft

Untitled

Feb 6th, 2016
553
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. case WM_CREATE
  2.   int RequestWid = 640, RequestHei = 480;
  3.  
  4.   RECT tCli, tWnd;
  5.   GetClientRect( hwnd , &tCli );
  6.   GetWindowRect( hwnd , &tWnd );
  7.  
  8.   SetWindowPos( hwnd , NULL , 0 , 0 ,
  9.   RequestWid+((tWnd.right -tWnd.left)-(tCli.right )),
  10.   RequestHei+((tWnd.bottom-tWnd.top )-(tCli.bottom)),
  11.   SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE );
  12.  
  13.   break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement