]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/accel.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / msw / accel.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/msw/accel.h
3// Purpose: wxAcceleratorTable class
4// Author: Julian Smart
5// Modified by:
6// Created: 31/7/98
7// Copyright: (c) Julian Smart
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_ACCEL_H_
12#define _WX_ACCEL_H_
13
14class WXDLLIMPEXP_FWD_CORE wxWindow;
15
16// ----------------------------------------------------------------------------
17// the accel table has all accelerators for a given window or menu
18// ----------------------------------------------------------------------------
19
20class WXDLLIMPEXP_CORE wxAcceleratorTable : public wxObject
21{
22public:
23 // default ctor
24 wxAcceleratorTable() { }
25
26 // load from .rc resource (Windows specific)
27 wxAcceleratorTable(const wxString& resource);
28
29 // initialize from array
30 wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]);
31
32 bool Ok() const { return IsOk(); }
33 bool IsOk() const;
34 void SetHACCEL(WXHACCEL hAccel);
35 WXHACCEL GetHACCEL() const;
36
37 // translate the accelerator, return true if done
38 bool Translate(wxWindow *window, WXMSG *msg) const;
39
40private:
41 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
42};
43
44#endif
45 // _WX_ACCEL_H_