// headers
// ---------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "statbmp.h"
#endif
IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl)
+/*
+ TODO PROPERTIES :
+ bitmap
+*/
+
// ===========================================================================
// implementation
// ===========================================================================
long style,
const wxString& name)
{
- // default border for this control is none
- if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT )
- {
- style |= wxBORDER_NONE;
- }
-
if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) )
return FALSE;
#else // Win16
_T("BUTTON"),
#endif // Win32/16
- _T(""), pos, size) )
+ wxEmptyString, pos, size) )
{
// control creation failed
return FALSE;
return TRUE;
}
+wxBorder wxStaticBitmap::GetDefaultBorder() const
+{
+ return wxBORDER_NONE;
+}
+
WXDWORD wxStaticBitmap::MSWGetStyle(long style, WXDWORD *exstyle) const
{
WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle);
WXWPARAM wParam,
WXLPARAM lParam)
{
+#ifndef __WXWINCE__
// Ensure that static items get messages. Some controls don't like this
// message to be intercepted (e.g. RichEdit), hence the tests.
if ( nMsg == WM_NCHITTEST )
return (long)HTCLIENT;
+#endif
return wxWindow::MSWWindowProc(nMsg, wParam, lParam);
}