Link to home
Start Free TrialLog in
Avatar of wndickie
wndickie

asked on

How to use ::TextOut with R2_XORPEN

I use R2_XORPEN for various quick drawing functions, such  as rubber-banding mouses, etc. (i.e., in OnMouseMove, I redraw old position to erase, them draw new position).

I've tried using the same method with text output. For example, to have coordinates text follow the mouse. But ::TextOut doesn't seem to honor the raster op, even when I specify a raster font.

Anyone have a suggestion?

Thanks, W. N. Dickie
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

try using DrawText() instead....

good luck
Avatar of wndickie
wndickie

ASKER

Thanks for the suggestion, but DrawText() doesn't seem to make any difference.
Thanks for the suggestion, but DrawText() doesn't seem to make any difference.
ASKER CERTIFIED SOLUTION
Avatar of Zoppo
Zoppo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Works perfectly! Exactly what I was looking for.

Thank's!
you're very welcome ... I'm glad that I could help you,

regards,

ZOPPO