Re: [Interest] Change of indirection of message pointer in nativeEvent()?
Nevermind, it is https://bugreports.qt.io/browse/QTBUG-69074 Le mer. 24 oct. 2018 à 09:17, Olivier B. a écrit : > > With Qt 5.6.2, i used nativeEvent() to capture Windows minimize > command. I casted the void* message into a MSG* and could read it > properly > > Now, with Qt 5.11.1, this did not detect the messages anymore. > Debugging, i noticed that at the call of > QWindowSystemInterface::handleNativeEvent() by filterNativeEvent(), > the MSG* is not casted as void*, but we pass the address of the MSG* > in the void* argument. > So now, in nativeEvent(), to properly decode the message, i have to > cast the void* to LPMSG, then dereference it to get the original MSG* > > Was that change intentionnal? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
[Interest] Change of indirection of message pointer in nativeEvent()?
With Qt 5.6.2, i used nativeEvent() to capture Windows minimize command. I casted the void* message into a MSG* and could read it properly Now, with Qt 5.11.1, this did not detect the messages anymore. Debugging, i noticed that at the call of QWindowSystemInterface::handleNativeEvent() by filterNativeEvent(), the MSG* is not casted as void*, but we pass the address of the MSG* in the void* argument. So now, in nativeEvent(), to properly decode the message, i have to cast the void* to LPMSG, then dereference it to get the original MSG* Was that change intentionnal? ___ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest