X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d05544e4e71e7ff10984dae5a9b8a07d92f42a6..4f9297b0eead20a0bfee71df18e0d8f0cbc402fb:/src/common/resourc2.cpp diff --git a/src/common/resourc2.cpp b/src/common/resourc2.cpp index 4bee887ddb..7774e5a7c5 100644 --- a/src/common/resourc2.cpp +++ b/src/common/resourc2.cpp @@ -22,7 +22,7 @@ #if wxUSE_WX_RESOURCES -#ifdef _MSC_VER +#ifdef __VISUALC__ #pragma warning(disable:4706) // assignment within conditional expression #endif // VC++ @@ -1545,6 +1545,10 @@ bool wxWindow::LoadFromResource(wxWindow *parent, const wxString& resourceName, SetClientSize(sz.x, sz.y); wxPoint pt = ConvertDialogToPixels(wxPoint(x, y)); + #ifdef __WXMAC__ + int mbarheight = 2 * LMGetMBarHeight() ; + pt.y += mbarheight ; + #endif Move(pt.x, pt.y); } @@ -1568,7 +1572,7 @@ wxControl *wxWindow::CreateItem(const wxItemResource *resource, const wxItemReso return table->CreateItem((wxWindow *)this, resource, parentResource); } -#ifdef _MSC_VER +#ifdef __VISUALC__ #pragma warning(default:4706) // assignment within conditional expression #endif // VC++