Code clanup: removed some useless/unused member
variables/functions from wxWindow; used wxTranslateMouseEvent instead of duplicating its functionality. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -239,7 +239,6 @@ bool wxToolBar::Create(wxWindow *parent,
|
||||
if( rSize.x == -1 && GetParent() )
|
||||
rSize.x = GetParent()->GetSize().x;
|
||||
|
||||
SetCanAddEventHandler(TRUE);
|
||||
AttachWidget (parent, m_mainWidget, (WXWidget) NULL,
|
||||
rPos.x, rPos.y, rSize.x, rSize.y);
|
||||
|
||||
@@ -361,8 +360,8 @@ bool wxToolBar::Realize()
|
||||
|
||||
if( !tool->GetButtonWidget() )
|
||||
{
|
||||
DoChangeBackgroundColour((WXWidget) button,
|
||||
m_backgroundColour, TRUE);
|
||||
wxDoChangeBackgroundColour((WXWidget) button,
|
||||
m_backgroundColour, TRUE);
|
||||
|
||||
tool->SetWidget(button);
|
||||
}
|
||||
|
Reference in New Issue
Block a user