|
// *********************************************************
// 親ウインドウにフィットさせる
// 戻り値 : 無し
// *********************************************************
void LboxWintool::ParentFit( DWORD dwSizeType,
int x, int y, int sub_w, int sub_h )
{
HWND hParent;
RECT rt;
if ( dwSizeType == SIZE_RESTORED || SIZE_MAXIMIZED ) {
hParent = GetParent( this->hWnd );
if ( hParent != NULL ) {
GetClientRect( hParent, &rt );
LboxMoveWindow( this->hWnd, x, y );
LboxChangeWindowSize(
this->hWnd,
rt.right - x - sub_w,
rt.bottom - y - sub_h
);
}
}
}
| |