예제 #1
0
void Dow::Handle::Position (Win::Rect const & rect)
{
	if (!::SetWindowPos (H (),
					NULL, // insert after (in z-order)
					rect.Left (),
					rect.Top (),
					rect.Width (),
					rect.Height (),
					SWP_NOZORDER))
	{
		throw Win::Exception ("Cannot position window");
	}
}
예제 #2
0
void Dow::Handle::Move (Win::Rect const & rect)
{
	::MoveWindow (H (), rect.Left (), rect.Top (), rect.Width (), rect.Height (), TRUE);
}