   getting window width and height (win32)
  Hi!I would like to know if I can get my window''s width and height with the window''s HWND?and if yes, wich function to use?thanks.  
  GetWindowRect(..) + GetSystemMetrics(..) should work(I hope someone posts with something simpler ) 2DNow - for the 2D game developer in you;  Hope this helps.unsigned int window_width = 0;unsigned int window_height = 0;LRESULT CALLBACK WindowProc(HWND hWnd, UINT msg, WPARAM wparam, LPARAM lparam){switch (msg){    case WM_SIZE:    {   window_width = LOWORD(lparam);   window_height = HIWORD(lparam);   break;    }//WM_SIZE   // Other messages here}//switchreturn DefWindowProc(hwnd, msg, wparam, lparam);}//WindowProc   [edited by - Shadow Wolf on August 20, 2002 7:03:02 PM];  RECT rect; GetClientRect( &rect ) or GetWindowRect( &rect ); then width = rect.right - rect.left; height = rect.bottom - rect.top;I''m not sure how to retrieve the CWindow from the HWND in Win32.  In MFC there''s the FromHandle call that will return the CWnd * from the HWND, but I couldn''t find anything similar in Win32 in my cursory examination.-fel  ;  GetWindowRect() runs perfectly, thanks²!  