Originally Posted by Edgemeal dim rct as RECT GetWindowRect handle, rct Width = rct.right-rct.left Height = rct.bottom-rct.top EDIT Note those dimensions are in Pixels. Also when using BitBlt one normally uses ScaleWidth, ScaleHeight for pic boxes. It's very strange that rct dimensions below are all returned as 0. I wonder what I may be overlooking. Code: hnd = GetDC(GetActiveWindow) GetWindowRect hnd , rct Picture1.Width = rct.Right - rct.Left Picture1.Height = rct.Bottom - rct.Top
hnd = GetDC(GetActiveWindow) GetWindowRect hnd , rct Picture1.Width = rct.Right - rct.Left Picture1.Height = rct.Bottom - rct.Top
Lottery is a tax on people who are bad at maths If only mosquitoes sucked fat instead of blood... To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
Forum Rules