By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,067 Members | 1,818 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,067 IT Pros & Developers. It's quick & easy.

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

P: n/a

How can you detect the version of windows common controls installed at
run-time? I want to implement the ListViewXP (flicker-free) but still
need to support non-XP computers (which will have flicker).

http://www.codeproject.com/cs/miscctrl/listviewxp.asp

Thanks,

Sam

Nov 21 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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/syst...cle.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.
--------------------

Nov 21 '05 #2

P: n/a
What does ListViewXP do that using .BeginUpdate and .EndUpdate don't take
care of already?

Greg

"Samuel R. Neff" <bl****@newsgroup.nospam> wrote in message
news:7g********************************@4ax.com...

How can you detect the version of windows common controls installed at
run-time? I want to implement the ListViewXP (flicker-free) but still
need to support non-XP computers (which will have flicker).

http://www.codeproject.com/cs/miscctrl/listviewxp.asp

Thanks,

Sam

Nov 21 '05 #3

P: n/a

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
On Sat, 18 Dec 2004 08:51:45 -0500, "Greg Burns"
<greg_burns@DONT_SPAM_ME_hotmail.com> wrote:
What does ListViewXP do that using .BeginUpdate and .EndUpdate don't take
care of already?

Greg

"Samuel R. Neff" <bl****@newsgroup.nospam> wrote in message
news:7g********************************@4ax.com.. .

How can you detect the version of windows common controls installed at
run-time? I want to implement the ListViewXP (flicker-free) but still
need to support non-XP computers (which will have flicker).

http://www.codeproject.com/cs/miscctrl/listviewxp.asp

Thanks,

Sam


Nov 21 '05 #4

P: n/a
Thanks for the relpy. I was not aware of this difference.

Greg

"Samuel R. Neff" <bl****@newsgroup.nospam> wrote in message
news:cm********************************@4ax.com...

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
On Sat, 18 Dec 2004 08:51:45 -0500, "Greg Burns"
<greg_burns@DONT_SPAM_ME_hotmail.com> wrote:
What does ListViewXP do that using .BeginUpdate and .EndUpdate don't take
care of already?

Greg

"Samuel R. Neff" <bl****@newsgroup.nospam> wrote in message
news:7g********************************@4ax.com. ..

How can you detect the version of windows common controls installed at
run-time? I want to implement the ListViewXP (flicker-free) but still
need to support non-XP computers (which will have flicker).

http://www.codeproject.com/cs/miscctrl/listviewxp.asp

Thanks,

Sam

Nov 21 '05 #5

P: n/a
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.

Nov 21 '05 #6

P: n/a

I think I'll take his suggestion and just check for OS version--much
simpler and no real down-side.

Thanks,

Sam
On Tue, 04 Jan 2005 05:57:21 GMT, v-******@online.microsoft.com
("Peter Huang" [MSFT]) wrote:
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.


Nov 21 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.