Retrieve work area rectangle using SystemParametersInfo!

Work area is that area of the screen excluding windows task bars and other custom application bars. Simplest way to retrieve this area is to call SystemParametersInfo. Here is an e.g. [sourcecode language=’cpp’]RECT rcWorkArea = { 0 }; SystemParametersInfo( SPI_GETWORKAREA, 0, &rcWorkArea, 0 ); AfxTrace( _T( “Work area: %d, %d, %d, %d” ), rcWorkArea.left, rcWorkArea.top, […]
Continue reading…