Microsoft KB Archive/76365

{|
 * width="100%"|

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

 * }

Q76365

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK)
 * Microsoft Windows Software Development Kit (SDK) 3.1

-

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 kbOSWinNT kbOSWin2000 kbSDKWin32 kbGrpDSUser kbOSWin

Issue type : kbprb

Technology : kbWin32SDKSearch kbAudDeveloper kbWin3xSearch kbSDKSearch kbWin32sSearch kbWinSDKSearch kbWinSDK310