| 1157 | if (!IsWindow(wnd)) return false; |
| 1158 | bool top = args.size() > 1 ? args[1].toBool() : true; |
| 1159 | if (top) return static_cast<bool>(SetWindowPos(wnd, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE) && SetWindowPos(wnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE)); |
| 1160 | return static_cast<bool>(SetWindowPos(wnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE)); |
| 1161 | } |
| 1162 | }; |
| 1163 | /* |
| 1164 | ptr handle |
| 1165 | int opacity: 0~255 |
| 1166 | |
| 1167 | bool return |
| 1168 | */ |
| 1169 | struct QiFunc_wnd_opacity : public QiFunc |