I had created a List View using the CreateWindowEx API, I had defined the needed styles and extended-styles to have the full row (item and sub-items) selected upon selecting any item, however, it is not working. Only the item is selected and highlighted without its sub-item.
Furthermore, I am not even able to select any of the sub-items (i don't know if this is applicable).
Below is a part of the code creating the list view control:
Besides, upon specifying the extended-style LVS_EX_TRANSPARENTBKGND, the appearance of the List View was changed from LTR to RTL. So the items started from the right instead of left.
Can any body justify this behavior and help to know what is missing in my code to have a full row selected?
Null and Andy, thanks for you both valuable posts.
When I passed NULL in the CreateWindowEx API and then adjusted the extended style of the ListView as you mentioned, the items in List View was adjusted properly. However, the ListView is still flickering even though I am setting LVS_EX_DOUBLEBUFFER bit in the extended style.
Andy, now it is clear why the ListView turned to be RTL upon passing LVS_EX_TRANSPARENTBKGND in the first parameter of CreateWindowEx.
Actually I was confused in using CreateWindowEx because the controls (Buttons, Editboxes, ListView, ... ) are all considered to be as windows (as I understood while reading MSDN documentations). So I thought I can pass those extended styles for the control in the extended style parameter of CreateWindowEx API.
In addition to the flickering ListView control mentioned above, I have another issue related to sibling windows and controls when they overlaps but I will elaborate it in a new post.