WM_PRINTCLIENT may need to return TRUE


Found on: January 2010
System: Windows Vista SP1, MSCommctrl v6

Introduction
Unlike what is indicated on the article for WM_PRINTCLIENT on MSDN website that the return value is not important, when you set the extended listview style to LVS_EX_TRANSPARENTBKGND and the parent window of the listview is sent a WM_PRINTCLIENT message with a DC, you need to return TRUE in your window procedure else your changes to the DC will be discarded and the parent’s backcolor will be used.

I have not tested on whether the return value is considered when you call AnimateWindow() for a window.

Advertisements

Leave a reply here, thanks!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s