framelesshelper/examples
Yuhang Zhao 330669e34a Quality improvements
1. Use native frame color in the MainWindow example, just like the Widget example. Fixes #87
2. Rename setHitTestVisibleInChrome() to setHitTestVisible(): This name was taken from Microsoft's WindowChrome class in WPF. Now they removed the legacy "Chrome" suffix in their new products, so we removed it as well.
3. Fix build with Qt older than 5.15: Q_NAMESPACE_EXPORT was introduced in Qt 5.14
4. Removed code that supports native frame: they are just leftovers of the previous refactoring.
4. Correctly detect SetWindowLongPtrW() and GetWindowLongPtrW() 's operation result: they won't modify the Last Error state on success, so we have to set Last Error state to ERROR_SUCCESS before calling them to make sure we get the correct error code.
5. Remove implicitly conversions, use explicit casts where possible
6. Fixed FormatMessage() usage, correctly retrieve the error message: According to MSDN, we should pass the address of a LPWSTR, not the LPWSTR itself.
7. Removed the special handing of WM_SIZE: It turns out that this handling is not needed at all and it's causing new issues, so just remove it.

Signed-off-by: Yuhang Zhao <2546789017@qq.com>
2021-10-08 15:43:33 +08:00
..
images NEW: QMainWindow example (#50) 2021-03-26 16:53:32 +08:00
mainwindow Quality improvements 2021-10-08 15:43:33 +08:00
quick Quality improvements 2021-10-08 15:43:33 +08:00
widget Quality improvements 2021-10-08 15:43:33 +08:00
CMakeLists.txt Minor tweaks 2021-06-09 13:27:11 +08:00
common.pri Win32: move all win32 staff to one header 2021-09-05 13:24:12 +08:00
example.ico Minor tweaks 2021-09-01 15:26:36 +08:00
example.manifest Minor tweaks 2021-09-01 15:26:36 +08:00
example.rc Minor tweaks 2021-09-01 15:26:36 +08:00
examples.pro Minor tweaks 2021-03-26 17:35:33 +08:00
images.qrc Improve the Win32Demo project. 2020-10-19 14:54:13 +08:00