   setting the window size minus the windows bar
  Hi,Im using c++ directx9 and have created the window using  screenl=GetSystemMetrics(SM_CXSCREEN);  to get the dimensions of the users screen. This creates a window the size of the screen but it goes behind the windows bar at the bottom of your screen. How can u set the window height so that it stops at the  window bar so you can see the whole of the created window?Thank youStuart   
  Check out SystemParametersInfo, specifically the SPI_GETWORKAREA flag:Quote:SPI_GETWORKAREA Retrieves the size of the work area on the primary display monitor. The work area is the portion of the screen not obscured by the system taskbar or by application desktop toolbars. The pvParam parameter must point to a RECT structure that receives the coordinates of the work area, expressed in virtual screen coordinates.What you've called "the windows bar at the bottom of your screen" is known as the system taskbar.   ;  The easiest thing to do is just to create your window maximized.  Then Windows will do all the calculations for you.The next level is to call SystemParametersInfo with SPI_GETWORKAREA.Always remember that the task bar (what you are calling the windows bar) does not have to be on the bottom of the screen.  It could be on the side or the top or not be there at all.  It's also increasingly common for people to have more than one screen - making any discussion about "the" screen suspect.   