SAMPLE: MoveLst.exe Moves Item in List Box Using Drag and Drop

ID: Q103318

The information in this article applies to:

SUMMARY

MoveLst.exe demonstrates how to reorder the items in a list box using drag and drop. The user clicks an item, drags it to the new position, and drops the item. The list box will scroll if necessary.

MoveLst.exe also shows how to implement a dialog box as a main window using a private dialog class.

MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

 ~ MoveLst.exe (size: 29020 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

The drag and drop implementation is based on the sample application LISTDRAG.

Additional query words: listbox Keywords : kbfile kbsample kb16bitonly kbCtrl kbListBox kbGrpUser kbWinOS310 kbWinOS311

Last Reviewed: December 24, 1998