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 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.
--------------------
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
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
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
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
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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:
|
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?
|
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
|
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
| |
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.
**************************
|
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...
|
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
|
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>
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |