/////////////////////////////////////////////////////////////////////////////
-// Name: combo.cpp
+// Name: src/msw/combo.cpp
// Purpose: wxMSW wxComboCtrl
// Author: Jaakko Salli
// Modified by:
// create main window
if ( !wxComboCtrlBase::Create(parent,
- id,
- value,
- wxDefaultPosition,
- wxDefaultSize,
- style | wxFULL_REPAINT_ON_RESIZE,
- wxDefaultValidator,
- name) )
+ id,
+ value,
+ pos,
+ size,
+ style | wxFULL_REPAINT_ON_RESIZE,
+ wxDefaultValidator,
+ name) )
return false;
if ( style & wxCC_STD_BUTTON )
// Prepare background for double-buffering
SetBackgroundStyle( wxBG_STYLE_CUSTOM );
- // SetSize should be called last
- SetSize(pos.x,pos.y,size.x,size.y);
+ // SetBestSize should be called last
+ SetBestSize(size);
return true;
}
&r);
drawButBg = false;
- }
+ }
// Standard button rendering
DrawButton(dc,rectb,drawButBg);