See MSDN. For instance, here is information about dealing with GDI/bitmaps. You'll also need to read about getting a window's handle and its client coordinates.