From 670c3849fdc5d3fa9b9586a973acfdbb26f80d95 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 8 Jul 1998 22:41:38 +0000 Subject: [PATCH] added Acceptsfocus() { return FALSE; } git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/stattext.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/include/wx/msw/stattext.h b/include/wx/msw/stattext.h index 8d4ad7ab6c..8dd0bcb76f 100644 --- a/include/wx/msw/stattext.h +++ b/include/wx/msw/stattext.h @@ -43,16 +43,20 @@ class WXDLLEXPORT wxStaticText: public wxControl long style = 0, const wxString& name = wxStaticTextNameStr); + // accessors + void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + void SetLabel(const wxString&); + + // operations virtual void Command(wxCommandEvent& WXUNUSED(event)) {}; virtual void ProcessCommand(wxCommandEvent& WXUNUSED(event)) {}; - void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); - - void SetLabel(const wxString&); + // overriden base class virtuals + virtual bool AcceptsFocus() const { return FALSE; } + // callbacks virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor, - WXUINT message, WXWPARAM wParam, WXLPARAM lParam); - + WXUINT message, WXWPARAM wParam, WXLPARAM lParam); virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); }; -- 2.45.2