class LboxWintool


  ParentFit



  
// *********************************************************
// 親ウインドウにフィットさせる
// 戻り値 : 無し
// *********************************************************
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
			);
		}
	}
}
  










  infoboard   管理者用   
このエントリーをはてなブックマークに追加





フリーフォントWEBサービス
SQLの窓WEBサービス

SQLの窓フリーソフト

素材

一般WEBツールリンク

SQLの窓

フリーソフト

JSライブラリ