X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d1b80f2196dff5a9d8cddd7e93d036ee03d48ec2..f978831f3780667a6b08a3b59b7dcc8a16e4e3dc:/utils/screenshotgen/src/ctrlmaskout.cpp diff --git a/utils/screenshotgen/src/ctrlmaskout.cpp b/utils/screenshotgen/src/ctrlmaskout.cpp index c4b51abae8..3db49ee923 100644 --- a/utils/screenshotgen/src/ctrlmaskout.cpp +++ b/utils/screenshotgen/src/ctrlmaskout.cpp @@ -10,23 +10,24 @@ #include "wx/wxprec.h" #ifdef __BORLANDC__ - #pragma hdrstop +#pragma hdrstop #endif -// for all others, include the necessary headers +// for all others, include the necessary headers wxWidgets headers) #ifndef WX_PRECOMP - #include "wx/wx.h" +#include "wx/wx.h" #endif +#include "ctrlmaskout.h" + #ifdef __WXMAC__ // See CreateMask() - #include - #include +#include +#include #endif -#include -#include - -#include "ctrlmaskout.h" +// use a set to make sure the same control won't be inserted twice +#include "wx/hashset.h" +WX_DECLARE_HASH_SET(wxWindow*, wxPointerHash, wxPointerEqual, CtrlSet); // It's copied from src/aui/framemanager.cpp and modified, a failed attempt to @@ -75,11 +76,11 @@ public: // return; // } // -// Show(false); +// Show(false); // -// GetParent()->Update(); +// GetParent()->Update(); // -// Show(true); +// Show(true); // // // m_lastWidth = event.GetSize().GetWidth(); @@ -280,9 +281,6 @@ void CtrlMaskOut::DetermineCtrlNameAndRect() wxString ctrlName; wxRect ctrlSize; - // use a set to make sure the same control won't be inserted twice - WX_DECLARE_HASH_SET(wxWindow*, wxPointerHash, wxPointerEqual, CtrlSet); - CtrlSet ctrls; int i, j;