locked
Weird Window positioning when using Win + Left/Right/Up/Down RRS feed

  • Question

  • Hello,

    while developing an application I just discovered the following weird behaviour:

    When snapping a window to the top left of a 4k monitor and retrieving its position and size with GetWindowRect, the returned values are:

    Left: -7, Right: 1927, Top: 0, Bottom: 1067

    Can someone explain this weird behaviour where everything is padded by 7 pixels yet it exactly overlaps with a Windows Forms application at position (0,0) and size (1920, 1060)

    Thank you

    Lukas Häfliger

    Friday, July 31, 2015 12:14 PM

Answers