I'm not sure what you mean by that, CornedBee. Here is the code I have
Code:
case WM_PAINT:
{
  PAINTSTRUCT lpPaintStruct;
  HDC hdc= ::BeginPaint(Form.Handle, &lpPaintStruct);
  a::graphics g(Form.Handle, hdc, &lpPaintStruct.rcPaint);
  HBRUSH brush= ::CreateSolidBrush(RGB(255,0,0));
  ::FillRect(g.memDC, &lpPaintStruct.rcPaint, brush/*(HBRUSH)::GetStockObject(LTGRAY_BRUSH)*/);
  ::DeleteObject(brush);
  g.DrawImage(&abmp, &lpPaintStruct.rcPaint);
  g.DrawImage(&abmp, &drawRect,true);
  g.~graphics();
  ::EndPaint(Form.Handle, &lpPaintStruct);
  break;
}