]> git.saurik.com Git - wxWidgets.git/commit
Don't cache HDC used by wxPaintDCEx in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Mar 2013 15:08:09 +0000 (15:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Mar 2013 15:08:09 +0000 (15:08 +0000)
commit025f5d1450a029e059807b1b0aba0233856f3891
tree82594f1d0f17bded361d0a475808a065b1a5887d
parent06a32e049c1bad9249079ad2e91659303424a774
Don't cache HDC used by wxPaintDCEx in wxMSW.

This avoids the problem with mistakenly using wrong HDC in wxBitmapComboBox
code which was due to assuming that we can only ever have one paint HDC for
the given window -- while in wxBitmapComboBox case we are passed different
HDCs for the same window via WM_DRAWITEM.

Instead of fixing the cache, just don't use it at all for wxPaintDCEx as we
don't gain anything from doing it anyhow.

Closes #14842.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/dcclient.cpp