]> git.saurik.com Git - wxWidgets.git/commitdiff
remove ugly AD-HOC FIX for wxHyperlinkCtrl; use the generic facilities of RegisterCon...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 13 Oct 2008 08:39:10 +0000 (08:39 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 13 Oct 2008 08:39:10 +0000 (08:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/screenshotgen/src/autocapture.cpp
utils/screenshotgen/src/screenshot_main.cpp

index 48cadb86ef71e2bb011ca1d8d2136edcc1143d4c..3f33fa69cc2942775e302a35394562ad9a42b930 100644 (file)
@@ -185,10 +185,6 @@ wxBitmap AutoCaptureMechanism::Capture(Control& ctrl)
     ctrl.name.StartsWith(_T("wx"), &(ctrl.name));
     ctrl.name.MakeLower();
 
-       // AD-HOC FIX for wxHyperlink
-       if (ctrl.name == "generichyperlinkctrl")
-               ctrl.name = "hyperlinkctrl";
-
     // take the screenshot
     wxBitmap screenshot = Capture(rect);
 
index bae2ea664f1f019d3e6d399033348a78f54ede35..cebae3daf4a1141d7fe88fe9637b6e81a25152ae 100644 (file)
@@ -321,7 +321,7 @@ void ScreenshotFrame::OnCaptureAllControls(wxCommandEvent& WXUNUSED(event))
     auto_cap.RegisterControl(m_slider1);
     auto_cap.RegisterControl(m_toggleBtn1, AJ_Union);
     auto_cap.RegisterControl(m_toggleBtn2, AJ_UnionEnd);
-    auto_cap.RegisterControl(m_hyperlink1);
+    auto_cap.RegisterControl(m_hyperlink1, wxT("wxHyperlinkCtrl"));
     auto_cap.RegisterControl(m_spinCtrl1, AJ_RegionAdjust);
     auto_cap.RegisterControl(m_spinBtn1);
     auto_cap.RegisterControl(m_scrollBar1);