Move -[show] and -[hide] from OGWidget to OGWindow.

This commit is contained in:
Jonathan Schleifer 2012-01-08 15:03:23 +01:00
parent aabc851a05
commit 16cb871e9d
6 changed files with 24 additions and 25 deletions

View file

@ -58,18 +58,6 @@ void og_destroy(HWND widget, OGWidget *object)
return self;
}
//----------------------------------------------------------------------------------------------------------------------------------
- (void)show
{
if(widget != NULL)
ShowWindow(widget, SW_SHOWNORMAL);
}
//----------------------------------------------------------------------------------------------------------------------------------
- (void)hide
{
if(widget != NULL)
ShowWindow(widget, SW_HIDE);
}
//----------------------------------------------------------------------------------------------------------------------------------
- (int)MessageReceived : (HWND)hwnd : (UINT)msg : (WPARAM)wparam : (LPARAM)lparam
{
return DefWindowProc(hwnd, msg, wparam, lparam);

View file

@ -124,6 +124,18 @@ static int CALLBACK Resize_EnumChildren(HWND child, LPARAM lparam)
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];