|
-
April 24th, 1999, 06:38 PM
#1
outputing text to screen, please help
When I output text to the screen within the view class's OnDraw function,
the text stays up on the screen. I can erase the screen by using the Invalidate()
command.
I use the following code which outputs text in a different function,
void TextView::OnForward()
{
CClientDC cDC(this);
CDialog dlg;
if (dlg.DOModal() == IDOK)
cDC.TextOut(10,10,"hi");
}
When I run the program, I get 2 words in the SDI/MDI child, but when I
use the mouse to move the program or do some scrolling, the text outputted
by the OnForward() function disappears and the text from the OnDraw()
function stays. How can I get the text in the OnForward() function to stay
there until I tell it I want it to disappear?
I am confused, frustrated, and desperate for a resolution. Please, any response
any one can give me will be greatly appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|