how to get the screen size of a monitor and the viewing size of it

Which function do i use to get the size of the screen, then get the viewing size if i can.
I was looking at getdesktowindow and getwindowrect but i am not sure this is it.

Comments

  • : Which function do i use to get the size of the screen, then get the viewing size if i can.
    : I was looking at getdesktowindow and getwindowrect but i am not sure this is it.
    :
    [code]
    [b]int[/b] iScreenPixelWidth = GetSystemMetrics (SM_CXSCREEN);
    [b]int[/b] iScreenPixelHeight = GetSystemMetrics (SM_CYSCREEN);
    [b]RECT[/b] rectWorkArea;

    SystemParametersInfo (SPI_GETWORKAREA, 0, &rectWorkArea, 0);
    [/code]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion