@@ -120,10 +120,22 @@ //act like GTK; we'll assume a single child, and expand it to our size RECT rc; GetClientRect(widget, &rc); SetWindowPos(child->widget, NULL, 0, 0, rc.right, rc.bottom, SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOZORDER); +} +//---------------------------------------------------------------------------------------------------------------------------------- +- (void)show +{ + if(widget != NULL) + ShowWindow(widget, SW_SHOWNORMAL); +} +//---------------------------------------------------------------------------------------------------------------------------------- +- (void)hide +{ + if(widget != NULL) + ShowWindow(widget, SW_HIDE); } //---------------------------------------------------------------------------------------------------------------------------------- - (BOOL)OG_willClose { OFAutoreleasePool *pool = [OFAutoreleasePool new];