git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24251
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+ // choose the position for the control
int x = pos.x == -1 ? 0 : pos.x,
y = pos.y == -1 ? 0 : pos.y,
w = size.x == -1 ? 0 : size.x,
h = size.y == -1 ? 0 : size.y;
int x = pos.x == -1 ? 0 : pos.x,
y = pos.y == -1 ? 0 : pos.y,
w = size.x == -1 ? 0 : size.x,
h = size.y == -1 ? 0 : size.y;
+ // ... and adjust it to account for ap ossible parent frames toolbar
+ AdjustForParentClientOrigin(x, y);
+
m_hWnd = (WXHWND)::CreateWindowEx
(
exstyle, // extended style
m_hWnd = (WXHWND)::CreateWindowEx
(
exstyle, // extended style
+ AdjustForParentClientOrigin(x, y);
+