Welcome Guest. Please Login or Register. Apr 5th, 2018, 11:15pm
ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018. Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.
If you require a dump of the post on your message board, please come to the support board and request it.
I assume that the basic styles cannot be changed once the LV is set up, only the extended styles, or am I wrong in that?
Both the style and the extended style should normally be specified in the CreateWindowEx call: that's the only place you can definitely set them. In some cases you can subsequently change some of the style bits using SetWindowLong but only if it is specifically documented that you can - and often that must be associated with a forced redraw, or an update of some other kind, to ensure the control is in an internally consistent state. Also, there may on occasion be a specific method provided to change a style (such as the EM_SETREADONLY message discussed previously).
But as a general rule you should assume that both the style and the extended style are set when the control is created and are never changed again.