Re: Win32Lib bug, or just me?
- Posted by CChris Jul 31, 2008
- 922 views
That change seems to work, thanks!
As a side note, ORing the defaults from classStyle[lControl] into the parameter passed to handleLV(), in addition to styleFlags, doesn't actually seem to matter, as handleLV() only checks for the flags LVS_REPORT and LVS_SORTDESCENDING, which are not set by default. Of course, not knowing much about how Win32Lib works, I could be wrong about this.
True, but default styles are not immutable. This is why, as a matter of precaution, I didn't optimise this call when splitting off the special processing of ListViews. As the cost is negligible, the benefits of keepiing seemed higher than those of trimming it.
Also keep in mind that classDefaukt() can change the default attributes for a class.
At any rate, I 'll include the fix in my working copy, so it will be on the next release.
CChris