X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f1b5e83c4a9269acadaabd1f8b45f4a3bb1f2fd..e2758e21753c00b8e36f11c003fd6cd0e5137391:/utils/screenshotgen/src/autocapture.h diff --git a/utils/screenshotgen/src/autocapture.h b/utils/screenshotgen/src/autocapture.h index 9984c21c97..20f16415e5 100644 --- a/utils/screenshotgen/src/autocapture.h +++ b/utils/screenshotgen/src/autocapture.h @@ -9,7 +9,9 @@ #ifndef _AUTOCAPTURE_H_ #define _AUTOCAPTURE_H_ +#include "wx/beforestd.h" #include +#include "wx/afterstd.h" #include "wx/gdicmn.h" @@ -240,7 +242,7 @@ public: Please read the document of enum AdjustFlags, and notice that this flag could be enabled/ disabled by global flag GlobalAdjustFlags. */ - void RegisterControl(wxWindow * ctrl, wxString name = _T(""), int flag = AJ_Normal) + void RegisterControl(wxWindow * ctrl, wxString name = wxT(""), int flag = AJ_Normal) { m_controlList.push_back(Control(ctrl, name, flag)); } @@ -254,7 +256,7 @@ public: */ void RegisterControl(wxWindow * ctrl, int flag) { - RegisterControl(ctrl, _T(""), flag); + RegisterControl(ctrl, wxT(""), flag); } /** @@ -265,7 +267,7 @@ public: */ void RegisterPageTurn() { - m_controlList.push_back(Control(0, _T(""), AJ_TurnPage)); + m_controlList.push_back(Control(0, wxT(""), AJ_TurnPage)); } /** @@ -279,13 +281,13 @@ public: /** Take a screenshot for the given region. - @param bitmap - Bitmap to save the screenshot to. + @param bitmap + Bitmap to save the screenshot to. @param rect - Given rectangular region. + Given rectangular region. @param delay - Only useful for Mac, for fixing a delay bug. It seems that it - didn't fix the bug, so it might be removed soon. + Only useful for Mac, for fixing a delay bug. It seems that it + didn't fix the bug, so it might be removed soon. */ static bool Capture(wxBitmap* bitmap, wxRect rect, int delay = 0);