Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 151657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:29:04+00:00 2026-05-11T09:29:04+00:00

By Windows PC displays, I am not referring to Windows CE, or handhelds, etc.

  • 0

By Windows PC displays, I am not referring to Windows CE, or handhelds, etc.

Clarification
Some folks below mistakenly thought I was asking what the DPI (dots per inch) was on monitors. What I’m asking for is the value for LogPixelsX in the GetCaps API call :

LOGPIXELSX Number of pixels per logical inch along the screen width.

In the examples I’ve seen, it’s set to 88, regardless of the screen DPI. Seems to be a Magic Number sort of constant.

In a related Question I’m using GetDeviceCaps to calculate current Screen Font DPI. The code samples I found all have:

Const LOGPIXELSX = 88

Is this universally the same for all monitors (even widescreen vs regular monitors)? And if not, how do I find it for the current display. (MSDN indicates that it’s the same for all monitors on a particular computer.

In a system with multiple display monitors, this value is the same for all monitors.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:29:04+00:00Added an answer on May 11, 2026 at 9:29 am

    To answer your clarification of the question:

    LOGPIXELSX is the parameter you pass to GetDeviceCaps to get the current monitor resolution (technically the horizontal resolution, but all modern displays have equal horizontal and vertical resolution). Yes, it is always 88 – if you wanted to get a different value from GetDeviceCaps, you’d pass in a different value. For example, to get the number of bits per pixel, you’d pass the BITSPIXEL constant which is 12. These magic constants are defined in the Windows API file WINGDI.h.

    The note in MSDN is referring not to the parameter, but the returned value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a Silverlight / Windows Phone 7 control that displays fractions. Not
I'm working on an application that displays some child windows which can either be
I need to build a Windows control that displays KPI indicators. Something similar to
I'm coding a Windows Forms App that has a StatusStrip that displays status informations
I have a program which displays an image to the windows form, and places
I have a listbox for a Windows Phone 7 app that displays info parsed
I've a windows .Net Form which contains a WebBrowser Control. This WebBrowser displays a
I want to open two (or more) excel windows on different screen (extended displays),
I have a simple MFC program which displays the progressbar..I used the below code
In the windows desktop properties all the displays are shown and are indicated to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.