473,785 Members | 2,482 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2005
Hi Sam,

One way is to check whether the new function is provided by the
COMCTL32.dll(wi ndows 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****@newsgro up.nospam> wrote in message
news:7g******** *************** *********@4ax.c om...

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@DON T_SPAM_ME_hotma il.com> wrote:
What does ListViewXP do that using .BeginUpdate and .EndUpdate don't take
care of already?

Greg

"Samuel R. Neff" <bl****@newsgro up.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****@newsgro up.nospam> wrote in message
news:cm******** *************** *********@4ax.c om...

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@DON T_SPAM_ME_hotma il.com> wrote:
What does ListViewXP do that using .BeginUpdate and .EndUpdate don't take
care of already?

Greg

"Samuel R. Neff" <bl****@newsgro up.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.m icrosoft.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
1247
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. Except a little detail. If the manifest file to load Microsoft.Windows.Common-Controls 6 (and enable XP themes) isn't there on Windows XP, the icons with alpha channel are loaded but don't appear correctly. Would it be possible to detect the version...
23
6531
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 know if Window.Open has been redefined? BACKGROUND:
1
3417
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 as many as 3000 pages in it. To do this I am using 2 frames one that contains controls to be able to navigate between pages and the other to display the "streamed" pdf file. Does anybody know a script that will do this for all browsers?
1
2304
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
6312
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
1790
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 can handle the file associations with no problem.) Thanks. **************************
6
1974
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 do this is because of this bug in MFC http://support.microsoft.com/?kbid=319740, which is used to build a component I am in turn making use of. So, I need to detect if Themes are running and if so, see if the correct version of uxtheme.dll is...
9
2651
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 to another location because it populates a Textbox in the user control page. Thanks Andrew
1
2359
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
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10090
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8971
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7499
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.