|
// *********************************************************
// ウインドウをデスクトップ中央に移動
// 戻り値 : 無し
// *********************************************************
void LboxCenterWindow( HWND hWnd )
{
RECT rTop;
RECT rMe;
GetWindowRect( GetDesktopWindow(), &rTop );
GetWindowRect( hWnd, &rMe );
LboxMoveWindow(
hWnd,
rTop.right/2 - (rMe.right-rMe.left)/2,
rTop.bottom/2 - (rMe.bottom-rMe.top)/2
);
}
| |