I'm writing an application that I expect to be resized. In order to eliminate the flicker that occurs while resizing a window, I have used the WS_EX_COMPOSITED style when creating the window. Everything goes fine until I try to add a SysListView32 to my window. The list is created and added without an error, but never becomes visible. You can see this in Iczelion's tutorial:


Change the following line:

invoke CreateWindowEx,NULL,ADDR ClassName,ADDR AppName


invoke CreateWindowEx,WS_EX_COMPOSITED,ADDR ClassName,ADDR AppName

and the window comes up blank. If you then add the LVS_NOCOLUMNHEADER style to the list it will reappear without the headers. My question is, how can I have a list view with column headers on a WS_EX_COMPOSITED window?
Posted on 2011-02-07 08:03:50 by Sparafusile