I'd like to be able to directly support exporting various reports from my MFC application. The reports are drawn to a device context using standard GDI techniques, overloading OnDraw in a view.
Ideally, there'd be a library that I could just drop in that provides a hDc that I'd draw to in the usual manner. This library would be either available under a copy-centre licence (BSD/MIT/COL) or would be commercially available.
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. <