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 // ----------------------------------------------------------------------------
16 // the accel table has all accelerators for a given window or menu
17 // ----------------------------------------------------------------------------
19 class WXDLLEXPORT wxAcceleratorTable
: public wxObject
23 wxAcceleratorTable() { }
25 // load from .rc resource (Windows specific)
26 wxAcceleratorTable(const wxString
& resource
);
28 // initialize from array
29 wxAcceleratorTable(int n
, const wxAcceleratorEntry entries
[]);
31 bool operator==(const wxAcceleratorTable
& accel
) const;
32 bool operator!=(const wxAcceleratorTable
& accel
) const
33 { return !(*this == accel
); }
36 void SetHACCEL(WXHACCEL hAccel
);
37 WXHACCEL
GetHACCEL() const;
39 // translate the accelerator, return true if done
40 bool Translate(wxWindow
*window
, WXMSG
*msg
) const;
43 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)