Ticket #14842 (closed defect: fixed)
wxBitmapComboBox is broken under MSW
| Reported by: | troelsk | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxMSW | Version: | 2.9-svn |
| Keywords: | wxBitmapComboBox samples | Cc: | |
| Blocked By: | Patch: | yes | |
| Blocking: |
Description
In the widgets sample, wxBitmapComboBox yields numerous errors (*) after being filled with bitmaps, "Add widget icons" button, and subsequently, drawing the (selected) combo box item fails (sometimes blank, sometimes half blank, wrong font).
wxMSW trunk, Win7, MSVC2008
To get the dump below, apply patch adding a "Copy log" button to the widgets sample.
(*)
17:02:00: Combobox dropped down
..\..\src\msw\dc.cpp(191): 'SetStretchBltMode' failed with error 0x00000057 (the parameter is incorrect.).
c:\svn\wx29clean\include\wx/msw/private/dc.h(75): 'SetTextColor' failed with error 0x00000057 (the parameter is incorrect.).
c:\svn\wx29clean\include\wx/msw/private/dc.h(88): 'SetBkColor' failed with error 0x00000057 (the parameter is incorrect.).
..\..\src\msw\dc.cpp(2587): 'CreateCompatibleDC' failed with error 0x00000057 (the parameter is incorrect.).
..\..\src\msw\dc.cpp(2558): 'CreateCompatibleBitmap' failed with error 0x00000057 (the parameter is incorrect.).
..\..\src\msw\dc.cpp(2281): 'BitBlt' failed with error 0x00000006 (the handle is invalid.).
..\..\src\msw\dc.cpp(191): 'SetStretchBltMode' failed with error 0x00000057 (the parameter is incorrect.).
..\..\src\msw\dc.cpp(2290): 'StretchBlt' failed with error 0x00000006 (the handle is invalid.).
c:\svn\wx29clean\include\wx/msw/private/dc.h(75): 'SetTextColor' failed with error 0x00000057 (the parameter is incorrect.).
c:\svn\wx29clean\include\wx/msw/private/dc.h(88): 'SetBkColor' failed with error 0x00000057 (the parameter is incorrect.).
..\..\src\msw\dc.cpp(2300): 'StretchBlt' failed with error 0x00000006 (the handle is invalid.).
..\..\src\msw\dc.cpp(2319): 'BitBlt' failed with error 0x00000006 (the handle is invalid.).
..\..\src\msw\dc.cpp(199): 'SetStretchBltMode' failed with error 0x00000057 (the parameter is incorrect.).
..\..\src\msw\dc.cpp(199): 'SetStretchBltMode' failed with error 0x00000057 (the parameter is incorrect.).
c:\svn\wx29clean\include\wx/msw/private/dc.h(75): 'SetTextColor' failed with error 0x00000057 (the parameter is incorrect.).
c:\svn\wx29clean\include\wx/msw/private/dc.h(88): 'SetBkColor' failed with error 0x00000057 (the parameter is incorrect.).
c:\svn\wx29clean\include\wx/msw/private/dc.h(134): 'SetBkMode' failed with error 0x00000057 (the parameter is incorrect.).
..\..\src\msw\dc.cpp(1438): 'TextOut' failed with error 0x00000000 (the operation completed successfully.).
..\..\src\msw\textmeasure.cpp(106): 'GetTextExtentPoint32()' failed with error 0x00000057 (the parameter is incorrect.).
17:02:01: Combobox closed up

