Paintpicture is StretchBlt. Likewise the Line method is using the LineTo API, and showing and hiding objects is using the ShowWindow API.