QEventDispatcherWin32's internal Window should be a Message-Only Window
A message-only window enables you to send and receive messages. It is not visible, has no z-order, cannot be enumerated, and does not receive broadcast messages. The window simply dispatches messages. Task-number: QTBUG-17144 Change-Id: Ibaf18f9ef5165166bf0b88e2f4952faba96d5eef Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
7407045388
commit
b54cfb3124
@ -481,11 +481,16 @@ static HWND qt_create_internal_window(const QEventDispatcherWin32 *eventDispatch
|
||||
wc.lpszClassName = reinterpret_cast<const wchar_t *> (className.utf16());
|
||||
|
||||
RegisterClass(&wc);
|
||||
#ifdef Q_OS_WINCE
|
||||
HWND parent = 0;
|
||||
#else
|
||||
HWND parent = HWND_MESSAGE;
|
||||
#endif
|
||||
HWND wnd = CreateWindow(wc.lpszClassName, // classname
|
||||
wc.lpszClassName, // window name
|
||||
0, // style
|
||||
0, 0, 0, 0, // geometry
|
||||
0, // parent
|
||||
parent, // parent
|
||||
0, // menu handle
|
||||
qWinAppInst(), // application
|
||||
0); // windows creation data.
|
||||
|
Loading…
Reference in New Issue
Block a user