// all controls should have this style
style |= WS_CHILD;
- // create the control visible if it's currently shown for wxWindows
+ // create the control visible if it's currently shown for wxWidgets
if ( m_isShown )
{
style |= WS_VISIBLE;
}
#endif // wxUSE_CTL3D
- // install wxWindows window proc for this window
+ // install wxWidgets window proc for this window
SubclassWin(m_hWnd);
// set up fonts and colours
SetFont(GetDefaultAttributes().font);
// set the size now if no initial size specified
- if ( w <= 0 || h <= 0 )
- {
- SetBestSize(size);
- }
+ SetInitialBestSize(size);
return TRUE;
}