diff options
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r-- | vcl/source/control/button.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index ebbe3c9bb31e..2ca40135e7ee 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -3777,26 +3777,6 @@ ImageButton::ImageButton( vcl::Window* pParent, WinBits nStyle ) : ImplInitStyle(); } -ImageButton::ImageButton( vcl::Window* pParent, const ResId& rResId ) : - PushButton( pParent, rResId.SetRT( RSC_IMAGEBUTTON ) ) -{ - RscImageButtonFlags nObjMask = (RscImageButtonFlags)ReadLongRes(); - - if ( RscImageButtonFlags::Image & nObjMask ) - { - SetModeImage( Image( ResId( static_cast<RSHEADER_TYPE*>(GetClassRes()), *rResId.GetResMgr() ) ) ); - IncrementRes( GetObjSizeRes( static_cast<RSHEADER_TYPE*>(GetClassRes()) ) ); - } - - if ( RscImageButtonFlags::Symbol & nObjMask ) - SetSymbol( (SymbolType)ReadLongRes() ); - - if ( RscImageButtonFlags::State & nObjMask ) - SetState( (TriState)ReadLongRes() ); - - ImplInitStyle(); -} - void ImageButton::ImplInitStyle() { WinBits nStyle = GetStyle(); |