Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Wasabi/api/wnd/wndclass/oswnd.cpp
2024-09-24 14:54:57 +02:00

33 lines
508 B
C++

#include <precomp.h>
#include "oswnd.h"
int OSWnd::onInit()
{
OSWND_PARENT::onInit();
onSetVisible(isVisible());
return 1;
}
void OSWnd::onSetVisible(int show)
{
#ifdef WIN32
ShowWindow(getOSHandle(), show ? SW_NORMAL : SW_HIDE);
#endif
}
int OSWnd::onResize()
{
OSWND_PARENT::onResize();
#ifdef WIN32
if (getOSHandle())
{
RECT r;
getClientRect(&r);
SetWindowPos(getOSHandle(), NULL, r.left, r.top, r.right - r.left, r.bottom - r.top, SWP_NOZORDER | SWP_NOACTIVATE);
}
#endif
return 1;
}