Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invisible window preserving its image data

Status
Not open for further replies.

mingis

Programmer
Jan 23, 2002
475
LT
The problem is following:

I would like to use formatted text fragments in owner-drawed listbox. I do create a RTF window using "RichText" window class name in CreateWindowEx(). Then I put several RTF fragments to that window using WM_SETTEXT message, grab window client area pictures to the bitmaps and use them in my listbox. But it works only with visible RTF window. When the window is invisible or even partially obscured under the other windows - bitmaps are black or contain parts of overlapping windows.

So the question - is there some kind of phantom windows, which would be painted invisibly in memory? Like there are memory device contexts, but I cannot use device contexts, because I can draw RTF text only to window, not to device context.

Any other sugestions to solve the problem?

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top