[python-win32] Pythonwin Combobox

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Aug 20 02:25:40 CEST 2011


Manfred Schulte-Oversohl wrote:

> I'd like to use a combobox control. Getting it with dialog is no problem.
> 
> But I could not create a combobox on a window.

I had the same problem -- pywin32 is missing a CreateComboBox
function.

After much frustration, I found the following workaround:

    hwnd = win32gui.CreateWindow("COMBOBOX", ...)
    pycwnd = win32ui.CreateWindowFromHandle(hwnd)

-- 
Greg


More information about the python-win32 mailing list