You could use CreateHatchBrush for simple inbuilt patterns. To create your own, you use CreatePatternBrush.
To quote from MSDN:
A brush created by using a monochrome (1 bit per pixel) bitmap has the text and background colors of the device context to which it is drawn. Pixels represented by a 0 bit are drawn with the current text color; pixels represented by a 1 bit are drawn with the current background color.
Which is I beleave what you are trying to do?
Shane Powell
2009-06-12 23:58:09