// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// 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);
- // coloured buttons support
- virtual bool SetBackgroundColour(const wxColour &colour);
- virtual bool SetForegroundColour(const wxColour &colour);
-
- virtual bool MSWOnDraw(WXDRAWITEMSTRUCT *item);
-
-private:
- void MakeOwnerDrawn();
+ virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
// 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 WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const ;
+ virtual bool DoGetAuthNeeded() const;
+ virtual void DoSetAuthNeeded(bool show);
+
+ // true if the UAC symbol is shown
+ bool m_authNeeded;