Link to home
Start Free TrialLog in
Avatar of sagitarian
sagitarian

asked on

Using OWL's DrawText function

I used DrawText function to write some text on a specific DC on my client window.
Now I want to erase that text only by giving a reference to the DC.
I used SetROP2( R2_NOTXORPEN ) an it works with rectangles, for example, but not with DrawText.

How should I do it? And why does it not work the other way ?
ASKER CERTIFIED SOLUTION
Avatar of JensUniweb
JensUniweb
Flag of Sweden 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
Avatar of sagitarian
sagitarian

ASKER

I'm definitly sure that text functions do not use the pen. I tried to change the pen color and text still came out in black.
About the SetTextColor() function, I end up with another problem I have which is to find out the way to get the system background color. If I could do that, it would be simple.
The BitBlt() function seems to be more complicated and would need an example.

Thanks very much for the answer!
hmm, I have a similar question. In my app, I have a splitter, and I want to display the splitting percentage between two panels, using DrawText (or TextOut), right beside the mouse cursor. However, when I move the mouse, the text written at previous cursor position is not erased. How can I do that?