Look at the function "bool wxPdfDocument::Image". It ought to be possible to export my GDI data to a WMF file ( see http://en.wikipedia.org/wiki/Windows_Metafile[^] ), perhaps to a temp directory, and open that using wxPdfDocument afterwards.
I want to implement drawing of standard listbox, treeview etc. to a layered window. I know there is a method with “fake” layered window under normal one but I need more flexible control on incorporation of standard controls to final image of a layered window.
I think there may be some hidden window with controls I need and whose drawing stuff can be redirected to some bitmap. If it's not possible with the hidden window then what about window that is out of screen (e.g. x = -2000, y = -2000)?
Do you simply want to make a window that has a constant blend factor? Because if yes, then you don't need a bitmap and the fancy drawing and all the rest.
Aside of this, is your problem that the button seems to loose transparency? I supose that's simply because when the button gets drawn onto your bitmap it overwrites the alpha channel.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
As Joe said, this isn't the buffer itself. You cannot check using the == operator.
If you are using std::string or CString, you could. That too I'd prefer checking their lengths. For buffers you could use CRT routines : MSDN[^]
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.