How to detect version of windows common controls installed to support ListViewXP dynamically

  • Thread starter Thread starter Samuel R. Neff
  • Start date Start date
Hi Sam,

One way is to check whether the new function is provided by the
COMCTL32.dll(windows common controls):
Determine COMCTL32 version
http://www.codeguru.com/Cpp/W-P/system/article.php/c2851/
(You call those Win32 API by PInvoke)

And in your scenario, I think maybe query the machine's Windows
version(Windows XP, 2003 or not) is enough...


Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
What does ListViewXP do that using .BeginUpdate and .EndUpdate don't take
care of already?

Greg
 
They're not really related at all. BeginUpdate and EndUpdate tell the
ListView that you are adding a number of items and not to make changes
until all are done, kinda like a transaction.

The ListViewXP code enables double-buffering to remove the flicker.
The flicker is not related to adding/removing item but happens
whenever you resuze the listview or change it's attributes, even
without adding and removing items.

HTH,

Sam
 
Thanks for the relpy. I was not aware of this difference.

Greg
 
Hi Sam,

Have you tried Gary's suggestion?
If you still have any concern, please feel free to post here.

Best regards,

Perter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
I think I'll take his suggestion and just check for OS version--much
simpler and no real down-side.

Thanks,

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top