| 128 | } |
| 129 | |
| 130 | void WinNativeWidget::SetChildWidget(MainFrame *w) |
| 131 | { |
| 132 | _childWidget = w; |
| 133 | _childWindow = NULL; |
| 134 | |
| 135 | if (w != NULL){ |
| 136 | _childWindow = (HWND)w->winId(); |
| 137 | } |
| 138 | else if (_shadow != NULL){ |
| 139 | _shadow->hideShadow(); |
| 140 | _shadow->close(); //Set null, the applictoin will exit. |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | void WinNativeWidget::ReShowWindow() |
| 145 | { |
no test coverage detected