Why does my maximised app window appear a different size to the screen resolution?

First: I'm a beginner with windows programming, fumbling my way through visual studio and C# (my background is C with console applications)... sorry if this is a naive question!
Short story: When I create a window of the same size as the screen resolution. My app window is ~20% larger than my device's screen. Why is this happening?
Long story: I'm attempting to develop an application with a fixed size window and absolute positioning of UI elements. The application will only ever run at a fixed resolution, on a single device, borderless/non-resizeable and full-screen. The resolution
of the display on which it will run is 1280x800 (according to the device specs and resolution reported by the windows control panel) . However, when I create a window of this size, it is too large to fit onscreen. In fact, I have to create a window 1024x640
(0.8x screen resolution) for it to perfectly fit the screen. Anyone know why this is happening?
Thanks!

It sounds like you are running in a high-DPI mode but your app is not DPI aware and is getting virtualized. Windows will tell the app it's running at 96 DPI and then embiggen the rendered window so it ends up at the user's requested zoom level.
See
Writing DPI-Aware Desktop and Win32 Applications

Similar Messages

  • Why does my mobileme email account appear with a circle to the right?

    why does my mobileme account in the inbox appear grayed out and with circled~?

    The Mobileme system has not been supported for some time now, and was replaced by iCloud, for the most part, but some bits have gone different directions. This started a few years ago and so is no surprise to many, including those who do not have or use mobileme.
    For users of later OS X systems, not supported by older hardware, the trail turns bleak. The following ASC discussion and support article assumes a forward path exists, even for mobile me, yet so depending on a later OS X and of more recent hardware support.
    •Remove mobile me and add iCloud... (requires Lion 10.7.x & later)
    https://discussions.apple.com/thread/5503193?tstart=0
    •OS X using and troubleshooting Back to My Mac with iCloud Account:
    http://support.apple.com/kb/ht4907
    There may be vestige information on this topic in the main Support site online, but that is harder to search anymore, and when items are obsoleted, harder still.
    Sorry if this helps you not.
    Good luck & happy computing!

  • Why does itunes and app store appear in french on my iphone?

    I recently updated the software on my iphone 4. Now the itunes and app store display in french only. I live in Quebec, but French is not my native language. Is there a way to switch it back to English?
    Thanks,
    Lobos

    Assume you have set up accounts as IMAP, so it is reflecting the state as it is on the server. You will need to access your mail via web and delete. Maybe the server did not sync with outlook exchange for deleted items.

  • Why does my pop up window appear behind my browser window when I click my "upload a file" button in my applicaiton?

    This is a revenue impacting issue for out application. If customers are full screen they think our application's Upload your file" button is broken so we are being over run with support escalations for this issue.
    Is there a setting that we can advise them to change?
    Thanks a lot;
    Bobby

    '''[https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox]''' {web link} is a '''LAST RESORT ! !'''
    Reset Firefox -- easily fix most problems
    If you're having problems with Firefox, resetting it can help. The reset
    feature fixes many issues by restoring Firefox to its factory default state
    while saving your essential information like bookmarks and open tabs.
    But first load and use these add-ons.
    These add-ons can be a great help by backing up and restoring Firefox
    '''[https://addons.mozilla.org/en-US/firefox/addon/febe/ FEBE (Firefox Environment Backup Extension)]''' {web link}
    FEBE allows you to quickly and easily backup your
    Firefox extensions, history, passwords, and more.
    In fact, it goes beyond just backing up -- It will actually rebuild
    your saved files individually into installable .xpi files.
    It will also make backup of files that you choose.
    '''[https://addons.mozilla.org/en-US/firefox/addon/opie/ OPIE]''' {web link}
    Import/Export extension preferences

  • Why does iTunes on my iPhone 5 randomly turn on after the screen lock has been activated?

    On occasion I will grab my iPhone 5 and iTunes will automatically be playing.  The screen was previously locked and iTunes was not initiated before the lock.  It is completely random.

    Hi,
    I recently purchased an iPhone 5 with ATT network.  It worked halfway, and now not at all!  Both companies are pointing the finger at eachother.  I think it is the Apple ios 6.0.1 software upgrade.  I can't even get a tether at all for a few days now.  I've tried every reset, reboot, network settings, restore feature, and finally a new phone.  If they don't get it fixed I'm going over to a S@msung Galaxy III and Verizon. 

  • Why does closing all open windows (15) and leaving only one drop ram usage from 1.5 to 1.4Gb and not more.

    Why does closing all open windows (15) and leaving only one drop ram usage by only 100mb from 1.5 to 1.4Gb.
    What is in this 1.4 gb ?
    I don't care much about ram, It's just that cpu usage spike like crazy by the end.
    ''Edited to remove swearing - TonyE''

    Hi musicfan,<br />Sorry you are having problems with Firefox. Maybe you should have asked earlier and we could have fixed it.
    Reading your comments I do not see that rolling back to an insecure Firefox 22 will actually help you much. You are probably best using IE, unless you have also damaged that.
    *[[Export bookmarks to Internet Explorer]]
    You should not use old versions they are insecure. Security fixes are publicised and exploitable.
    * [[Install an older version of Firefox]]
    * https://www.mozilla.org/security/known-vulnerabilities/firefox.html
    Most others will not be having such problems. We are now able to say that with confidence because after developers missed a regression in Firefox 4 telemetry was introduced so that data was obtained. It may be an idea to turn on your telemetry, if you have not already done so, and decide to stick with Firefox.
    *[[Send performance data to Mozilla to help improve Firefox]]
    Trying safe mode takes seconds. Unfortunatly if you are not willing to do even rudimentary troubleshooting there is not anything we can do to help you.
    *[[Troubleshoot Firefox issues using Safe Mode]]

  • Why does my iphone come up with a different email when updating apps?

    why does my iphone come up with a different email when updating apps?
    Everytime I go to update my apps some other persons email or AppleID comes up and I have to cancel.  its annoying enough to have to update all the time but now I have about100 update notifications (don't judge, you probably have a ton of apps too..haha) that are sitting idol, what's up how do I fix?
    thx
    Jackie
    p.s. not updating to iOS6 yet

    I'm sorry Allan, I should have clarified, your answer is improbable (well the first part atleast).
    The apps I have had since the first week of purchase of my iphone back in 2011,  I have not added any apps until 2 months before the last software update.  This starting happening when the new software was implemented but I have not updated to iOS6 yet.  Unless this person was able to hack into my account & transfer them to their account, I do not see how that is possible.
    Prior to seeing this other AppleID, I have a popup to prompt me for my AppleID each time I download content.  Each time I would see mine and enter my password.

  • In addition to my home page, every time I start Firefox a tab opens with notifacation of an updated addon. Why does this tab continue to appear even though there is no updated version of the addon?

    In addition to my home page, every time I start Firefox a tab opens with notification of an updated addon. Why does this tab continue to appear even though there is no updated version of the addon?

    See these articles for some suggestions:
    *https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
    *https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports multiple home pages separated by '|' symbols
    *http://kb.mozillazine.org/Preferences_not_saved

  • Since I have iTunes match, why does my iTunes library not appear in iPhoto music options for slideshow?; only songs purchased or placed on iTunes over a year ago appear in the iPhoto library under the iTunes or purchased option.

    since I have iTunes match, why does my iTunes library not appear in iPhoto music options for slideshow?; only songs purchased or placed on iTunes over a year ago appear in the iPhoto library under the iTunes or purchased option.

    10/20/14
    Yes, I am signed in to iTunes match on the macbook pro, iPhone , & iPad (all updated & correct music libraries) where I bought all the tunes but still no updated tunes on the iPhoto music library after 3 days of being on iTunes match.
    Thank you,
    TMAbanjoman

  • Why does Adobe XI Pro keep appearing on screen each time I open a pdf file?

    Why does Adobe XI Pro keep appearing on screen each time I open a pdf file?

    Is this whatyou need?
    If  you uncheck this Acrobat Opens but the PDF will open without showing startup screen.

  • Why does an unknown  error (-42110) appear when i try to play a rental movie that has downloaded already?

    why does an unknown  error (-42110) appear when i try to play a rental movie that has downloaded already?

    Welcome to the Apple Community.
    Try the following steps, check whether things are working after each step where appropriate, before trying the next.
    Restart the Apple TV (Settings > General > Restart).
    Restart the Apple TV by removing ALL the cables for 30 seconds.
    Restart your router. (Also try removing it’s power cord for at least 30 seconds)
    Reset the Apple TV (Settings > General > Reset > Reset all settings)
    Restore the Apple TV (Settings > General > Reset > Restore)

  • Why does firefox (updated) on windows 7 NOT send a hotllink (must copy/paste),when using the 'send link' feature,whereas firefox on XP always sends a hotlink?

    Question
    why does firefox (updated) on windows 7 NOT send a hotllink (must copy/paste),when using the 'send link' feature,whereas firefox on XP always sends a hotlink? This feature has always worked perfectly on all my windows XP computers,but not at all on any of my versions of firefox on windows 7.How can i fix this? Why does it not work?

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]. You can also attach a screenshot on this page below '''Post a Reply''' > '''Add images: Browse ...'''

  • Why does Verizon not support Windows 8 for wi fi?

    Why does Verizon not support Windows 8 for wi fi?  Are they planning on supporting Windows 8?
    Solved!
    Go to Solution.

    Verizon wi fi for hot spots does not work with Windows 8.  For verification go to FAQs about Verizon Wi-Fi for FiOS Internet, 
    http://www.verizon.com/Support/Residential/Internet/fiosinternet/networking/setup/wi-fi/124650.htm , and click on How do I know if my laptop or netbook is compatible with Verizon Wi-Fi? .  Verizon wireless home network does work well with Windows 8.
    Since you can't even download the wi fi for hot spots software if you have Windows 8, I don't know how to use compatability mode to get around the problem,

  • Why does my pages app crash when I try to email a document?

    Why does my pages app crash when I try to email a document?

    Check for an update. Also if you're on 3G, try to doing it over WiFi to see if it works better because sometimes the network just can't handle it so the app crashes to protect itself.

  • Why does apple allow apps in the App Store hijack your Internet when certain websites? Why doesn't apple remove their products from the App Store?.

    Why does apple allow apps in the App Store hijack your Internet when certain websites? Why doesn't apple remove their products from the App Store?.

    Apple saw it as their responsibility since the redirection took me to the App Store. They assisted me in stopping the redirection which is occurring on many peoples iPhones. It's a have java script problem that adking is using to get you to buy their games. The websites work normal and then all of the sudden the website is taken over by adking.com.  You can no longer use the website as it immediately takes you to the App Store without ever showing a popup to cancel the redirection. They were very helpful fixing the problem should others experiencing this specifically with adking.com.
    No need to get defensive. I'm not the only one experiencing the problem Apple said.

Maybe you are looking for