Commit 4f4e27b
authored
Fix WM_NCCALCSIZE,WM_NCHITTEST: All Border Resize
So I did some testing and found that these codes:
- Enables resizing from all border sides.
- Makes it so that the window doesn't resize that much (reduces only one pixel on the left, right, and bottom border) when changing titleBarStyle to "hidden".
- Removing the WM_NCHITTEST makes the edges (top left, bottom right, etc) resize region bigger than it should be.
- fOnResizeBorder should've been set to true (it was set to false) to enable resizing from top border.
Issues:
- The top side originally goes inside the title bar so someone has to figure out how to do that in titleBarStyle = "hidden".
The top border IS resizable in titleBarStyle = "hidden" but only for exactly 1 pixel and that is very annoying.
- SetResizable makes weird behavior (as usual) during titleBarStyle = "hidden"1 parent 859ba75 commit 4f4e27b
1 file changed
+30
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
117 | 144 | | |
118 | 145 | | |
119 | 146 | | |
| |||
0 commit comments