// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ----------------------------------------------------------------------------
// Pushbutton
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// Pushbutton
// ----------------------------------------------------------------------------
wxButton(wxWindow *parent,
wxWindowID id,
const wxString& label = wxEmptyString,
wxButton(wxWindow *parent,
wxWindowID id,
const wxString& label = wxEmptyString,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
Create(parent, id, label, pos, size, style, validator, name);
}
Create(parent, id, label, pos, size, style, validator, name);
}
// implementation from now on
virtual void Command(wxCommandEvent& event);
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
virtual bool MSWCommand(WXUINT param, WXWORD id);
// implementation from now on
virtual void Command(wxCommandEvent& event);
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
virtual bool MSWCommand(WXUINT param, WXWORD id);
// set or unset BS_DEFPUSHBUTTON style
static void SetDefaultStyle(wxButton *btn, bool on);
// set or unset BS_DEFPUSHBUTTON style
static void SetDefaultStyle(wxButton *btn, bool on);
- // usually overridden base class virtuals
- virtual wxSize DoGetBestSize() const;
+ virtual bool DoGetAuthNeeded() const;
+ virtual void DoSetAuthNeeded(bool show);
+
+ // true if the UAC symbol is shown
+ bool m_authNeeded;