1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 class WXDLLIMPEXP_FWD_CORE wxWindow
;
16 // ----------------------------------------------------------------------------
17 // the accel table has all accelerators for a given window or menu
18 // ----------------------------------------------------------------------------
20 class WXDLLIMPEXP_CORE wxAcceleratorTable
: public wxObject
24 wxAcceleratorTable() { }
26 // load from .rc resource (Windows specific)
27 wxAcceleratorTable(const wxString
& resource
);
29 // initialize from array
30 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]);
32 bool Ok() const { return IsOk(); }
34 void SetHACCEL(WXHACCEL hAccel
);
35 WXHACCEL
GetHACCEL() const;
37 // translate the accelerator, return true if done
38 bool Translate(wxWindow
*window
, WXMSG
*msg
) const;
41 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)