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.
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.