From: Nhat Dung on
Hello,
I'm trying to show my application like IE 8 does
But when my application got WM_DWMSENDICONICLIVEPREVIEWBITMAP and I call
DwmSetIconicLivePreviewBitmap it got it Failed :(
I always received '-2147024809' when call DwmSetIconicLivePreviewBitmap
I had see the C++ demo but I can't understand it :(, what is a proxy window
?
I had make it show in the taskbar like IE8, but I can't make it preview when
received DWMSENDICONICLIVEPREVIEWBITMAP

Please give me the very basic way to do that! Many Thanks!

From: patrick on
On 9 oct, 16:43, "Nhat Dung" <nhatd...(a)hotmail.com> wrote:
> Hello,
> I'm trying to show my application like IE 8 does
> But when my application got WM_DWMSENDICONICLIVEPREVIEWBITMAP and I call
> DwmSetIconicLivePreviewBitmap  it got it Failed :(
> I always received '-2147024809' when call DwmSetIconicLivePreviewBitmap

-2147024809 is E_INVALIDARG
I don't think many people have Windows 7 to test it...
From: Seetharam on
http://msdn.microsoft.com/en-us/library/dd389410%28VS.85%29.aspx

The documentations says:

This function is usually called by a window in response to a
WM_DWMSENDICONICLIVEPREVIEWBITMAP message. The returned bitmap must
not be larger than the client area of the window or frame and must
have 32-bit color depth.

Have you ensured that you are passing the right kind of bitmap
( 32bpp )?

-Seetharam
From: Nhat Dung on
Hello, win7 can be use trial for ~60 days and I think is easy to get it,
I've try on my Pentium4+1Gb ram and it work fast.

My bitmap size is smaller than the window size and it a 32bit bitmap
I success when call DwmSetIconicThumbnail in the WM_DWMSENDICONICTHUMBNAIL
but fail in
WM_DWMSENDICONICLIVEPREVIEWBITMAP when call DwmSetIconicLivePreviewBitmap :(

From: Nhat Dung on
No one try ?