- if ( id == -1 )
- m_windowId = (int)NewControlId();
- else
- m_windowId = id;
-
- int x = pos.x;
- int y = pos.y;
- int width = size.x;
- int height = size.y;
-
- m_windowStyle = style;
-
- // we may have either bitmap or icon: if a bitmap with mask is passed, we
- // will transform it to an icon ourselves because otherwise the mask will
- // be ignored by Windows
- wxIcon *icon = (wxIcon *)NULL;
- m_isIcon = bitmap.IsKindOf(CLASSINFO(wxIcon));