The only way I know of would be to call SystemParametersInfo(), passing SPI_GETWORKAREA to get the work area for the screen. (Screen area - taskbar obscured area) Change the RECT returned based on your windows width, then pass the result back to SystemParametersInfo() with SPI_SETWORKAREA. Then move your window outside the workarea (to the screen edge). Be sure to reset the work area when your program closes, etc.