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:
SetBkMode Form1.hdc, 2 SetBkColor Form1.hdc, RGB(0, 0, 255) Dim hBrush As Long hBrush = CreateSolidBrush(RGB(0, 0, 255)) SetBkColor GetDC(hBrush), RGB(0, 0, 255) SelectObject Form1.hdc, hBrush DeleteObject hBrush dargb = CreateRectRgn(0, 0, 1024, 1024) 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




Reply With Quote