Herman,
>
>...Anyway here is the function:
>
> Function Word2Num( tc_Buffer, tl_MSB )...
>
Thanks for the functions. It's always good to have these at hand.
What is the Parameter "tl_MSB" (I know it's boolean, but when needed?)
>>- Could I draw the Rubber the way windows does it with the thick black/white rastered line?
>Yes you can, a little more work to do.
>- Create the bitmap based on custom pattern (CreateBitmap).
>
WORD rgbPatGray[8] = { 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA, 0x55, 0xAA };
>- Create the pattern brush from the bitmap (CreatePatternBrush)
>- Select the pattern brush into DC
>- Because this technique using a pattern brush, you can't use rectangle.
> It will fills the whole rectangle area. So you have to draw each side
> of the border ( 4 times ) using PatBlt with PATINVERT (you can specfy
> the border width to draw )
>- Don't forget to delete the GDI object that you created (DeleteObject)
>
>Actually, for the first workaround, you can also make it thicker. Just
>create the pen (CreatePen) then select the Handle Pen into DC.
OK, sounds like at least a half days work to me. I will have to look up all the functions and how to call them (remember I'm a VFP-guy). My Windows-programming understanding on how things work together, DC's etc. is lacking too much to get this done in a sec.
So I will need to solve "that" later, too much pressure at the time.
Thanks for the help.