]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dib.cpp
Make sure text part of combobox is enabled/disabled too
[wxWidgets.git] / src / msw / dib.cpp
index f56dae0b1fb92b4feabbe8e29345ec166fcf0222..66ebda4954c55bc634f3b31f25d036aa8af2fdc9 100644 (file)
@@ -634,7 +634,7 @@ wxPalette *wxDIB::CreatePalette() const
     // and the colour table
     wxCharBuffer rgb(sizeof(RGBQUAD) * biClrUsed);
     RGBQUAD *pRGB = (RGBQUAD*)rgb.data();
-    SelectInHDC(hDC, m_handle);
+    SelectInHDC selectHandle(hDC, m_handle);
     ::GetDIBColorTable(hDC, 0, biClrUsed, pRGB);
     for ( DWORD i = 0; i < biClrUsed; i++, pRGB++ )
     {