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. Large Icon Display setting in windows.

Large Icon Display setting in windows.

Scheduled Pinned Locked Moved C / C++ / MFC
c++
2 Posts 2 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
    a3gupta
    wrote on last edited by
    #1

    Hello, I am writing a dialog based application in VC++ 6.0 I was wondering if there is a way to detect if a user has chosen to display Large Icons or Large font on his computer using the desktop properties. I will appreciate any input on this. Thanks !! Sincerely, Anjum.

    C 1 Reply Last reply
    0
    • A a3gupta

      Hello, I am writing a dialog based application in VC++ 6.0 I was wondering if there is a way to detect if a user has chosen to display Large Icons or Large font on his computer using the desktop properties. I will appreciate any input on this. Thanks !! Sincerely, Anjum.

      C Offline
      C Offline
      code_cold
      wrote on last edited by
      #2

      You can detect the font size use the following: CDC ScreenDC; ScreenDC.CreateIC(_T("DISPLAY"), NULL, NULL, NULL); int nLogDPIX = ScreenDC.GetDeviceCaps(LOGPIXELSX), nLogDPIY = ScreenDC.GetDeviceCaps(LOGPIXELSY); ScreenDC.DeleteDC(); if(nLogDPIX == 120 && nLogDPIY == 120) { // 120 DPI, Large Fonts } else { // 96 DPI, Small Fonts }

      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