1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 class WXDLLIMPEXP_CORE wxWindow
;
17 // ----------------------------------------------------------------------------
18 // the accel table has all accelerators for a given window or menu
19 // ----------------------------------------------------------------------------
21 class WXDLLEXPORT wxAcceleratorTable
: public wxObject
25 wxAcceleratorTable() { }
27 // load from .rc resource (Windows specific)
28 wxAcceleratorTable(const wxString
& resource
);
30 // initialize from array
31 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]);
33 bool operator==(const wxAcceleratorTable
& accel
) const;
34 bool operator!=(const wxAcceleratorTable
& accel
) const
35 { return !(*this == accel
); }
37 bool Ok() const { return IsOk(); }
39 void SetHACCEL(WXHACCEL hAccel
);
40 WXHACCEL
GetHACCEL() const;
42 // translate the accelerator, return true if done
43 bool Translate(wxWindow
*window
, WXMSG
*msg
) const;
46 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)