Ejemplo n.º 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");
	}
}
Ejemplo n.º 2
0
void Dow::Handle::Move (Win::Rect const & rect)
{
	::MoveWindow (H (), rect.Left (), rect.Top (), rect.Width (), rect.Height (), TRUE);
}