Stoitcho
Tue Mar 14 10:13:47 CST 2006
That is true. Good example is the RichTextBox; it doesn't support WM_PRINT
I'm not sure there is workaround.
However I was trying to help a person in this ng sometime ago with similar
problem. He didn't mind using PInvoke and I suggested using PrintWindow API
instead of sending WM_PRINT. MSDN says it is similar of using WM_PRINT, but
actually it sends WM_PAINT isntead and works in some places where WM_PRINT
doesn't.
PrintWindows did't help the other guy, but might help you.
The following is reference to our conversation back then
http://groups.google.ca/group/microsoft.public.dotnet.framework.windowsforms/browse_frm/thread/846e6c395eefbcac/67806bd349b07f61?lnk=st&q=Goutsev+PrintWindow+group%3Amicrosoft.public.dotnet.*&rnum=1&hl=en#67806bd349b07f61
--
HTH
Stoitcho Goutsev (100)
"paulo" <isf@nospam.nospam> wrote in message
news:O8TJjq3RGHA.2300@TK2MSFTNGP11.phx.gbl...
> Hello Stoitcho,
>
> Not every children control is painted correctly. There are labels missing,
> and even some entire controls.
> I read somewhere that not every control responds correctly to the WM_PRINT
> message, which is used by DrawToBitmap.
> Is there an alternative to get the control image?
>
> Regards,
> paulo
>
> Stoitcho Goutsev (100) wrote:
>> paulo,
>>
>> What exactly is the problem with the final result?
>>