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

ID Number: Q76365

3.00 3.10

WINDOWS

Summary:

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 reference words: 3.00 3.10 3.x