Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-2562

Use WM_NCCALCSIZE when drawing window frames on Windows.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.0 Alpha
    • 4.4.0
    • GUI: Window management
    • None
    • c9e1cf516fdce567e54b5d5f4ea9d44164b3e28c (qtbase/dev, 20.,11.2016, 5.9)

    Description

      When drawing one's own window frame, using WM_NCCALCSIZE, WM_NCPAINT, WM_NCACTIVATE, WM_NCHITTEST, WM_NCMOUSEMOVE, WM_NCLBUTTONDOWN, WM_NCLBUTTONUP etc. the dimensions of that frame differs from windows standard (AdjustWindowRectEx).

      To avoid problems like:

      • shrinking windows
      • layouts that cut things that normally seen, especially when at right or bottom
      • miscalculations of window positions, like popup menu isn't straight under the main menu
      • mouse cursor is always a few pixel above the things painted

      it would be nice if Qt could use WM_NCCALCSIZE instead of AdjustWindowRectEx in QWidgetPrivate::updateFrameStrut()

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kleint Friedemann Kleint
              sanonymous Nokia Qt Support (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes