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

Pass in HWND_MESSAGE as parent in qt_create_internal_window()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • 4.7.1
    • Core: Event loop
    • None
    • Windows
    • Ibaf18f9ef5165166bf0b88e2f4952faba96d5eef

    Description

      The code below in qeventdispatcher_win.cpp should pass in HWND_MESSAGE as the parent instead of 0, since the window never will be visible, but is there to handle the messages.

      static HWND qt_create_internal_window(const QEventDispatcherWin32 *eventDispatcher)
      ...
      HWND wnd = CreateWindow(wc.lpszClassName, // classname
      wc.lpszClassName, // window name
      0, // style
      0, 0, 0, 0, // geometry
      0, // parent   //HWND_MESSAGE should be used instead here
      0, // menu handle
      qWinAppInst(), // application
      0); // windows creation data.
      

      Attachments

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

        Activity

          People

            w00t Robin Burchell
            naevdal Sigrid Fjell Nævdal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes