PRB: Moving or Resizing the Parent of an Open Combo Box

ID: Q76365


The information in this article applies to:


SYMPTOMS

When the user resizes or moves the parent window of an open drop- down combo box, the list box portion of the combo box does not move.


CAUSE

The list box portion of the combo box does not receive a move message. Therefore, it remains on the screen at its original position.


RESOLUTION

Close the drop down list before the combo box is moved. To perform this task, during the processing of the WM_PAINT message, send the combo box a CB_SHOWDROPDOWN message with the wParam set to FALSE.

Additional query words: combobox


Keywords          : kbComboBox kbCtrl kbNTOS kbGrpUser kbWinOS 
Version           : 
Platform          : 
Issue type        : kbprb 

Last Reviewed: March 7, 1999