#ifndef _AUTOCAPTURE_H_
#define _AUTOCAPTURE_H_
+#include "wx/beforestd.h"
#include <vector>
+#include "wx/afterstd.h"
#include "wx/gdicmn.h"
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));
}
*/
void RegisterControl(wxWindow * ctrl, int flag)
{
- RegisterControl(ctrl, _T(""), flag);
+ RegisterControl(ctrl, wxT(""), flag);
}
/**
*/
void RegisterPageTurn()
{
- m_controlList.push_back(Control(0, _T(""), AJ_TurnPage));
+ m_controlList.push_back(Control(0, wxT(""), AJ_TurnPage));
}
/**
/**
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);