Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. screen size

screen size

Scheduled Pinned Locked Moved C / C++ / MFC
jsonquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arr cpp
    wrote on last edited by
    #1

    How could i get the size (height and width) of the screen by calling a windows API function? Thanks!

    D G 2 Replies Last reply
    0
    • A arr cpp

      How could i get the size (height and width) of the screen by calling a windows API function? Thanks!

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      How about GetSystemMetrics(), or GetDeviceCaps()?


      "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

      "There is no death, only a change of worlds." - Native American Proverb

      A 1 Reply Last reply
      0
      • D David Crow

        How about GetSystemMetrics(), or GetDeviceCaps()?


        "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

        "There is no death, only a change of worlds." - Native American Proverb

        A Offline
        A Offline
        arr cpp
        wrote on last edited by
        #3

        Thanks!!

        1 Reply Last reply
        0
        • A arr cpp

          How could i get the size (height and width) of the screen by calling a windows API function? Thanks!

          G Offline
          G Offline
          Graham Bradshaw
          wrote on last edited by
          #4

          If you want to take account of the taskbar, use SystemParametersInfo with SPI_GETWORKAREA. Bear in mind that on a multi-monitor system, each monitor can have a different resolution.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups