|
From: Graeme F. <gr...@dr...> - 2003-06-20 17:46:27
|
A couple of points BeginPaint() should only be used in the WM_PAINT because the paint message is triggered by an invalid region and so BeginPaint only allows you to paint in the invalid region - it also validates the invalid region for you. You should be able to check this by looking at the rcPaint field returned in the PaintStructure - that is a RECT of the invalid region. Secondly you can also try the LoadBitmap function to load a bitmap from a file mentioned in a resource file. Slightly easier than loadImage. Graeme. |