Howdy, Stranger!

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

Categories

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

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : 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]
  • Shawn CarterShawn Carter Member Posts: 0

    _ // http://forcoder.org // free ebooks and video tutorials about < Swift, JavaScript, Perl, Java, Visual Basic, R, Go, Python, MATLAB, Ruby, Objective-C, C++, Delphi, C, PHP, PL/SQL, Visual Basic .NET, Assembly, C#, Scratch Rust, LabVIEW, SAS, Dart, VBScript, Ada, COBOL, F#, Clojure, Lua, Alice, Bash, Crystal, Lisp, Julia, Erlang, D, Awk, FoxPro, Kotlin, ML, Transact-SQL, Apex, ABAP, Scheme, Scala, Prolog, Hack, Fortran, Logo /> __

Sign In or Register to comment.