]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxContextHelpButton bitmap (dis)appearance
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 8 Sep 2000 15:48:54 +0000 (15:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 8 Sep 2000 15:48:54 +0000 (15:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/wx.rc
src/common/cshelp.cpp

index ef8c9f7bc5729f68cb36f5953e3f66d407baa585..375f03bb1c12c7e45763d497b43e7cad839c42ce 100644 (file)
@@ -157,4 +157,4 @@ plot_zin_bmp            BITMAP  "wx/msw/plot_zin.bmp"
 plot_zot_bmp            BITMAP  "wx/msw/plot_zot.bmp"
 
 // For wxContextHelpButton
-csquery_bmp             BITMAP "wx/msw/csquery.bmp"
+csquery                 BITMAP "wx/msw/csquery.bmp"
index 37a3ade54cc0cde1033839f82e1db56160477fee..cc59931d9cadb191bb2d18bb7969999ce92a2fd0 100644 (file)
@@ -212,18 +212,14 @@ BEGIN_EVENT_TABLE(wxContextHelpButton, wxBitmapButton)
     EVT_BUTTON(wxID_CONTEXT_HELP, wxContextHelpButton::OnContextHelp)
 END_EVENT_TABLE()
 
-wxContextHelpButton::wxContextHelpButton(wxWindow* parent, wxWindowID id,
-        const wxPoint& pos, const wxSize& size,
-        long style):
-   wxBitmapButton(parent, id, wxNullBitmap, pos, size, style)
+wxContextHelpButton::wxContextHelpButton(wxWindow* parent,
+                                         wxWindowID id,
+                                         const wxPoint& pos,
+                                         const wxSize& size,
+                                         long style)
+                   : wxBitmapButton(parent, id, wxBITMAP(csquery),
+                                    pos, size, style)
 {
-#ifdef __WXMSW__
-    wxBitmap bitmap(wxT("csquery_bmp"), wxBITMAP_TYPE_BMP_RESOURCE);
-#else
-    wxBitmap bitmap(csquery_xpm);
-#endif
-
-    SetBitmapLabel(bitmap);
 }
 
 void wxContextHelpButton::OnContextHelp(wxCommandEvent& event)