views:

26

answers:

1

Whenever I resize my controls in my window, in resopnse to a WM_SIZE message, they resize and redraw themselves fine. But my combobox control (a dropdown list) disappears whenever I give it a resize message, until I hover over it to bring it back.

There are two possibilities, either it is not redrawing when I resize it, or it is being hidden by my tab control. So how would I solve this problem?

Thanks.

+1  A: 

I think the problem is probably the tab control hiding your control.

You can use SetWindowPos to set its z-order with specifying SWP_NOMOVE and SWP_NOSIZE.

You can also use BringWindowToTop to bring the combobox to the top of your z-order.

Brian R. Bondy
Okay, I'll try it.
Alexander Rafferty
Thanks, it is working fine now.
Alexander Rafferty
Glad to hear it.
Brian R. Bondy