// Created: 1998-01-01
// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
-// Licence: wxWindows licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#if wxUSE_BMPBUTTON
-#include "wx/window.h"
#include "wx/bmpbuttn.h"
+#ifndef WX_PRECOMP
+ #include "wx/window.h"
+ #include "wx/bitmap.h"
+#endif
+
IMPLEMENT_DYNAMIC_CLASS(wxBitmapButton, wxButton)
#include "wx/mac/uma.h"
-#include "wx/bitmap.h"
bool wxBitmapButton::Create( wxWindow *parent,
- wxWindowID id, const wxBitmap& bitmap,
- const wxPoint& pos,
- const wxSize& size,
- long style,
- const wxValidator& validator,
- const wxString& name )
+ wxWindowID id, const wxBitmap& bitmap,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxValidator& validator,
+ const wxString& name )
{
m_macIsUserPane = false;
if ( bitmap.Ok() )
{
wxSize newSize = DoGetBestSize();
- if ( width == -1 )
+ if ( width == wxDefaultCoord )
width = newSize.x;
- if ( height == -1 )
+ if ( height == wxDefaultCoord )
height = newSize.y;
}