HOWTO: Switch Between Single and Multiple List Boxes

ID: Q57959


The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK)
  • Microsoft Win32 Software Development Kit (SDK)
  • Microsoft Windows 2000


SUMMARY

After you create a list box with the CreateWindow() API, you can change the list box from a single selection to a multiple selection by doing the following:

  1. Create two hidden list boxes in the .RC file.


  2. During the WM_INITDIALOG routine, display one of the boxes.


  3. Change between the two by making one hidden and the other one visible using the ShowWindow function.


Additional query words:

Keywords : kbCtrl kbListBox kbNTOS kbWinOS2000 kbSDKWin32 kbGrpUser kbWinOS
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: February 1, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.