Thanks for the help so far! What I'm trying to do is set up a program that will color another window's bg. I have tried the SetBkColor/Mode API, and through what I have discovered I need:
VB Code:
  1. SetBkMode Form1.hdc, 2
  2. SetBkColor Form1.hdc, RGB(0, 0, 255)
  3.  
  4. Dim hBrush As Long
  5. hBrush = CreateSolidBrush(RGB(0, 0, 255))
  6.  
  7. SetBkColor GetDC(hBrush), RGB(0, 0, 255)
  8. SelectObject Form1.hdc, hBrush
  9. DeleteObject hBrush
  10.  
  11. dargb = CreateRectRgn(0, 0, 1024, 1024)
  12. PaintRgn Form1.hdc, dargb

This won't color the form, but commenting out the SelectObject line will color the form the selected FillColor.

Any other ideas?

cjqp