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 6318399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:38:02+00:00 2026-05-24T15:38:02+00:00

I am opening a window at 0,0. When Aero and window shadow are disabled,

  • 0

I am opening a window at 0,0. When Aero and window shadow are disabled, this works just fine. If window shadow is enabled, part of the window’s border (and title) are hidden above the upper / left of left edge of the desktop.

Is there a way to detect if the shadow is on and by how many pixels do I need to adjust the window position?

I’ve tried pretty much everything available from GetSystemMetrics() and none of it makes sense.

  • 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. Editorial Team
    Editorial Team
    2026-05-24T15:38:02+00:00Added an answer on May 24, 2026 at 3:38 pm

    Aero lies about the window position. This is a heavy duty app-compat feature, windows borders have had the same width for a very long time. That was not sustainable, at Vista time it was getting important to not make a window border one pixel wide. Monitor technology moved on, having a 1600 x 900 resolution display (my laptop) is not extraordinary. Moving the mouse cursor on my pad to hit that one pixel to make the window wider most certainly is.

    So a big design goal in Vista was to create windows with nice fat borders. Easy to hit on my mouse pad.

    That created a nasty app compat problem though, there’s a lot of software that creates a window with CreateWindows/Ex() that specifies the outside size of the window. Client area plus borders. Having fat borders is now a problem, it doesn’t make the window bigger, it makes the client area smaller. Not good, the client area is the one that counts when you fill a window with content and/or controls. There are a gazillion programs out there that expect to have a certain size client area from a given outside window size. Clipped controls and scrollbars (if you’re lucky) will be rampant.

    The only reasonable thing the Vista programmers could do is preserve the client size and extend the window past its requested borders. Without the app asking for it. And having to fake it when the app does ask for it, GetClientRect() call.

    Fixing this behavior is possible, you have to tell Vista that you are aware of its behavior. Unfortunately that’s not available from the C++ project settings. You have to run editbin.exe /subsystem to tell you’re compatible with 6,0 in a post build event. Side effect is that it won’t run on XP and earlier anymore. That it is not a manifest option is very, very sloppy.

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

Sidebar

Related Questions

I am opening a window and passing set of parameters to it. In this
in my application I'm opening a Window as a dialog. Inside this window, there's
I'm opening a modal window with javascript like this: window.showModalDialog('<%=Url.Action(Index,Bank) %>', Ratting, 'width=550,height=170,left=150,top=200,toolbar=1,status=1,') and
Hi I Opening a popup like this: function openPopup() { RetVal = window.showModalDialog(chooseProducts.aspx, ,
Does the opening Window enhance an application's attractiveness? Should it be a picture or
When opening a window, I register a Deleted-event-handler on my business object. It is
I have a c# program through which i am opening cmd window as a
How would you program a C/C++ application that could run without opening a window
I am opening a new window from a button using var myWindow = window.open(...).
How do you call a URL from ActionScript 2 without opening a new window

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.