Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

A ListView item remains selected after you cancel a drag-and-drop operation in Microsoft Management Console 2.0


View products that this article applies to.

Symptoms

You can add a snap-in that contains a ListView control in Microsoft Management Console (MMC) 2.0. You can then try to perform a drag-and-drop operation that involves the items in the ListView control. However, if you press the ESC key to cancel the drag-and-drop operation, the selected ListView item may remain selected.

Note You notice this behavior on a computer that runs Microsoft Windows XP only if you install Windows XP Service Pack 1 (SP1).

↑ Back to the top


Cause

MMC generates an LVM_GETNEXTITEM ListView message to update the display of the ListView control after you cancel the drag-and-drop operation. However, if the style of a ListView control is set to LVS_OWNERDATA, the event handler for the LVM_GETNEXTITEM ListView message cannot enumerate ListView items whose state is set to LVNI_DROPHILITED. The LVNI_DROPHILITED state corresponds to a selected ListView item. Therefore, the LVNI_DROPHILITED state of such ListView items is not reset, and the items remain selected. This problem occurs with ListView items whose state is set to any state other than LVNI_FOCUSED or LVNI_SELECTED.

↑ Back to the top


Resolution

Service pack information

Windows XP

To resolve this problem, obtain the latest service pack for Microsoft Windows XP. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
322389 How to obtain the latest Windows XP service pack

Hotfix information

Windows Server 2003

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Restart requirement

If you quit all running instances of MMC before you install this hotfix, you do not have to restart your computer after you install the hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

Hotfix file information

The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
Windows Server 2003 x86
   Date         Time   Version       Size     File name
   ----------------------------------------------------
   17-Nov-2003  14:41  5.2.3790.104  780,800  Mmc.exe
Windows Server 2003 IA-64
   Date         Time   Version       Size       File name
   ------------------------------------------------------
   17-Nov-2003  07:46  5.2.3790.104  2,598,400  Mmc.exe 
   17-Nov-2003  11:41  5.2.3790.104    780,800  Wmmc.exe

Windows XP

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Restart requirement

If you quit all running instances of MMC before you install this hotfix, you do not have to restart your computer after you install the hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

Hotfix file information

The English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
Windows XP x86
   Date         Time   Version        Size     File name
   -----------------------------------------------------
   10-Nov-2003  02:18  5.1.2600.1319  765,952  Mmc.exe
Windows XP IA-64
   Date         Time   Version        Size       File name
   -------------------------------------------------------
   08-Nov-2003  23:01  5.1.2600.1319  2,907,136  mmc.exe 
   09-Nov-2003  23:18  5.1.2600.1319    765,952  Wmmc.exe

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article.

Windows XP

This problem was first corrected in Microsoft Windows XP Service Pack 2.

↑ Back to the top


More information

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the Standard Terminology That Is Used to Describe Microsoft Software Updates
For more information, visit the following Microsoft Developer Network (MSDN) Web sites:

↑ Back to the top


Keywords: kbautohotfix, kbhotfixserver, kbqfe, kbqfe, kbwinserv2003presp1fix, kbwinxppresp2fix, kbbug, kbstate, kbsnapin, kbhighlight, kbdragdrop, kblistview, kbfix, kbwinxpsp2fix, KB831367

↑ Back to the top

Article Info
Article ID : 831367
Revision : 7
Created on : 11/5/2007
Published on : 11/5/2007
Exists online : False
Views : 369