HOWTO: Switch Between Single and Multiple List Boxes

ID: Q57959


The information in this article applies to:


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.



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

Last Reviewed: March 5, 1999