Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case WM_CREATE
- int RequestWid = 640, RequestHei = 480;
- RECT tCli, tWnd;
- GetClientRect( hwnd , &tCli );
- GetWindowRect( hwnd , &tWnd );
- SetWindowPos( hwnd , NULL , 0 , 0 ,
- RequestWid+((tWnd.right -tWnd.left)-(tCli.right )),
- RequestHei+((tWnd.bottom-tWnd.top )-(tCli.bottom)),
- SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE );
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement