Attempting to check in this wretched cursor again. Also added SetAcceleratorTable
to wxWindow, GnuWin32 fix in registry.h. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
088a95f5ff
commit
14b72bf5a6
@ -873,7 +873,11 @@ typedef unsigned long WXHCONV;
|
||||
typedef void * WXDRAWITEMSTRUCT;
|
||||
typedef void * WXMEASUREITEMSTRUCT;
|
||||
typedef void * WXLPCREATESTRUCT;
|
||||
#ifdef __GNUWIN32__
|
||||
typedef int (*WXFARPROC)();
|
||||
#else
|
||||
typedef int (__stdcall *WXFARPROC)();
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -129,8 +129,6 @@ public:
|
||||
virtual void Maximize(bool maximize);
|
||||
// virtual bool LoadAccelerators(const wxString& table);
|
||||
|
||||
virtual void SetAcceleratorTable(const wxAcceleratorTable& accel);
|
||||
|
||||
// Responds to colour changes
|
||||
void OnSysColourChanged(wxSysColourChangedEvent& event);
|
||||
|
||||
@ -166,7 +164,6 @@ protected:
|
||||
WXHICON m_defaultIcon;
|
||||
static bool m_useNativeStatusBar;
|
||||
wxToolBar * m_frameToolBar ;
|
||||
wxAcceleratorTable m_acceleratorTable;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 326 B |
@ -121,10 +121,18 @@ public:
|
||||
// return true if the key exists
|
||||
bool Exists() const;
|
||||
// get the info about key (any number of these pointers may be NULL)
|
||||
|
||||
#ifdef __GNUWIN32__
|
||||
bool GetKeyInfo(uint *pnSubKeys, // number of subkeys
|
||||
uint *pnMaxKeyLen, // max len of subkey name
|
||||
uint *pnValues, // number of values
|
||||
uint *pnMaxValueLen) const;
|
||||
#else
|
||||
bool GetKeyInfo(ulong *pnSubKeys, // number of subkeys
|
||||
ulong *pnMaxKeyLen, // max len of subkey name
|
||||
ulong *pnValues, // number of values
|
||||
ulong *pnMaxValueLen) const;
|
||||
#endif
|
||||
// return true if the key is opened
|
||||
bool IsOpened() const { return m_hKey != 0; }
|
||||
// for "if ( !key ) wxLogError(...)" kind of expressions
|
||||
|
@ -70,6 +70,8 @@ class WXDLLEXPORT wxToolBar95: public wxToolBarBase
|
||||
wxSize GetMaxSize(void) const;
|
||||
void GetSize(int *w, int *y) const;
|
||||
|
||||
virtual bool GetToolState(int toolIndex) const;
|
||||
|
||||
// Add all the buttons: required for Win95.
|
||||
virtual bool CreateTools(void);
|
||||
virtual void SetRows(int nRows);
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include "wx/string.h"
|
||||
#include "wx/list.h"
|
||||
#include "wx/region.h"
|
||||
#include "wx/msw/accel.h"
|
||||
|
||||
#define wxKEY_SHIFT 1
|
||||
#define wxKEY_CTRL 2
|
||||
@ -348,6 +349,8 @@ public:
|
||||
inline virtual wxButton *GetDefaultItem(void) const;
|
||||
inline virtual void SetDefaultItem(wxButton *but);
|
||||
|
||||
virtual void SetAcceleratorTable(const wxAcceleratorTable& accel);
|
||||
|
||||
// Override to define new behaviour for default action (e.g. double clicking
|
||||
// on a listbox)
|
||||
virtual void OnDefaultAction(wxControl *initiatingItem);
|
||||
@ -588,6 +591,7 @@ public:
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
//// PROTECTED DATA
|
||||
protected:
|
||||
wxAcceleratorTable m_acceleratorTable;
|
||||
int m_windowId;
|
||||
long m_windowStyle; // Store the window's style
|
||||
wxEvtHandler * m_windowEventHandler; // Usually is 'this'
|
||||
|
Loading…
Reference in New Issue
Block a user