| 1147 | if (!IsWindow(wnd)) return false; |
| 1148 | return static_cast<bool>(ShowWindow(wnd, args.size() > 1 ? args[1].toBool() : SW_SHOW)); |
| 1149 | } |
| 1150 | }; |
| 1151 | struct QiFunc_wnd_top : public QiFunc |
| 1152 | { |
| 1153 | QiFunc_wnd_top() : QiFunc(1, 2) {} |
| 1154 | QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter*) const override |
| 1155 | { |
| 1156 | auto wnd = reinterpret_cast<HWND>(args[0].toPointer()); |
| 1157 | if (!IsWindow(wnd)) return false; |