473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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


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
6 1981
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
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

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
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
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

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Etienne Charland | last post by:
Hi, I am trying to determine if the current OS supports alpha channel, to know which version of the icons to load. I have written code that detects Windows XP or later, and it works really well....
23
by: David McCulloch | last post by:
QUESTION-1: How can I detect if Norton Internet Security is blocking pop-ups? QUESTION-2a: How could I know if a particular JavaScript function has been declared? QUESTION-2b: How could I...
1
by: DBLWizard | last post by:
Hello, I am trying to find code that will detect if a browser as the Adobe or any PDF plugin. I am writing a subscription only site that needs access to view "pages" in a book that could have...
1
by: Oscar Thornell | last post by:
Hi, I need to detect (from a web page..) what version of Windows Media that are installed.. Any suggestions?? Regards /Oscar
3
by: zZ | last post by:
Hi All, I need to detect the framework installed from both VB.Net and VB6. Can someone give me an hint? Thanks for any tip. Kind regards, Zen
5
by: David C. Ullrich | last post by:
Would there be issues (registry settings, environment variables, whatever) if a person tried to install versions 1.x and 2.x simultaneously on one Windows system? Windows 98, if it matters. (I...
6
by: Fred Hedges | last post by:
Using .NET 1.1, I need to be able to detect if Themes are enabled or disabled, not for a specific application, but for the system as a whole (ie. the current user). The reason I need to be able to...
9
by: J055 | last post by:
Hi I have a standard asp page which uses a MasterPage. The MasterPage contains a User control. How can I access a public method in the User control from my WebForm page? I can't move the method...
1
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Dear Support, I'm not an ASP programmer, however so far by searching the web, I have created this working code: <html> <body> <p> <p> <b>School IP address:</b>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.