X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c9a19aabab3a878b565e6c2a5f2a3824277c4dc..cb73e6001f891ae46b12a1e4ca39b93649cb6099:/src/msw/statbmp.cpp?ds=sidebyside diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index fa803fe344..a2a8698bfb 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -17,7 +17,7 @@ // headers // --------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "statbmp.h" #endif @@ -46,6 +46,11 @@ IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl) +/* + TODO PROPERTIES : + bitmap +*/ + // =========================================================================== // implementation // =========================================================================== @@ -122,7 +127,7 @@ bool wxStaticBitmap::Create(wxWindow *parent, #else // Win16 _T("BUTTON"), #endif // Win32/16 - _T(""), pos, size) ) + wxEmptyString, pos, size) ) { // control creation failed return FALSE; @@ -134,6 +139,11 @@ bool wxStaticBitmap::Create(wxWindow *parent, return TRUE; } +wxBorder wxStaticBitmap::GetDefaultBorder() const +{ + return wxBORDER_NONE; +} + WXDWORD wxStaticBitmap::MSWGetStyle(long style, WXDWORD *exstyle) const { WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle); @@ -264,10 +274,12 @@ long wxStaticBitmap::MSWWindowProc(WXUINT nMsg, 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); }