forked from github_mirror/framelesshelper
parent
07c3f47405
commit
53c4c394f7
|
@ -6,12 +6,11 @@ Copy *winnativeeventfilter.h* and *winnativeeventfilter.cpp* to your project and
|
||||||
|
|
||||||
## Notice
|
## Notice
|
||||||
|
|
||||||
- Any widgets (or Qt Quick elements) in the titlebar area will not be resposible because the mouse events are intercepted. You should change the code to make them be resposible.
|
- Any widgets (or Qt Quick elements) in the titlebar area will not be resposible because the mouse events are intercepted. Try if `WinNativeEventFilter::setWindowData()` helps.
|
||||||
- Don't change the window flags (for example, enable the Qt::FramelessWindowHint flag) because it will break the functionality of this code. I'll get rid of the window frame (including the titlebar of course) in Win32 native events.
|
- Don't change the window flags (for example, enable the Qt::FramelessWindowHint flag) because it will break the functionality of this code. I'll get rid of the window frame (including the titlebar of course) in Win32 native events.
|
||||||
- All traditional Win32 APIs are replaced by their DPI-aware ones, if there is one.
|
- All traditional Win32 APIs are replaced by their DPI-aware ones, if there is one.
|
||||||
- Start from Windows 10, normal windows usually have a one pixel width border line, I don't add it because not everyone like it. You can draw one manually if you really need it.
|
- Start from Windows 10, normal windows usually have a one pixel width border line, I don't add it because not everyone like it. You can draw one manually if you really need it.
|
||||||
- The frame shadow will get lost if the window is totally transparent. It can't be solved unless you draw the frame shadow manually.
|
- The frame shadow will get lost if the window is totally transparent. It can't be solved unless you draw the frame shadow manually.
|
||||||
- There are some known issues when you draw something manually on widgets using Direct3D or some other graphic frameworks. Don't know why currently. But things work fine if you let Qt do all the job, including painting.
|
|
||||||
- On Windows 7, if you disabled the Windows Aero, the frame shadow will be disabled as well because it's DWM's resposibility to draw the frame shadow.
|
- On Windows 7, if you disabled the Windows Aero, the frame shadow will be disabled as well because it's DWM's resposibility to draw the frame shadow.
|
||||||
- Only top level windows can be frameless. Applying this code to child windows or widgets will result in unexpected behavior.
|
- Only top level windows can be frameless. Applying this code to child windows or widgets will result in unexpected behavior.
|
||||||
- The border width (8 if not scaled), border height (8 if not scaled) and titlebar height (30/38 if not scaled) are acquired by Win32 APIs and are the same with other standard windows, and thus you should not modify them.
|
- The border width (8 if not scaled), border height (8 if not scaled) and titlebar height (30/38 if not scaled) are acquired by Win32 APIs and are the same with other standard windows, and thus you should not modify them.
|
||||||
|
@ -25,3 +24,7 @@ Copy *winnativeeventfilter.h* and *winnativeeventfilter.cpp* to your project and
|
||||||
- <https://github.com/dfct/TrueFramelessWindow>
|
- <https://github.com/dfct/TrueFramelessWindow>
|
||||||
- <https://github.com/qtdevs/FramelessHelper>
|
- <https://github.com/qtdevs/FramelessHelper>
|
||||||
- <https://docs.microsoft.com/en-us/archive/blogs/wpfsdk/custom-window-chrome-in-wpf>
|
- <https://docs.microsoft.com/en-us/archive/blogs/wpfsdk/custom-window-chrome-in-wpf>
|
||||||
|
|
||||||
|
## Special Thanks
|
||||||
|
|
||||||
|
Thanks **Lucas** for testing this code in many various conditions.
|
||||||
|
|
Loading…
Reference in New Issue