typedef void * WXDRAWITEMSTRUCT;
typedef void * WXMEASUREITEMSTRUCT;
typedef void * WXLPCREATESTRUCT;
+#ifdef __GNUWIN32__
+typedef int (*WXFARPROC)();
+#else
typedef int (__stdcall *WXFARPROC)();
+#endif
#endif
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);
WXHICON m_defaultIcon;
static bool m_useNativeStatusBar;
wxToolBar * m_frameToolBar ;
- wxAcceleratorTable m_acceleratorTable;
DECLARE_EVENT_TABLE()
};
// 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
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);
#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
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);
////////////////////////////////////////////////////////////////////////
//// PROTECTED DATA
protected:
+ wxAcceleratorTable m_acceleratorTable;
int m_windowId;
long m_windowStyle; // Store the window's style
wxEvtHandler * m_windowEventHandler; // Usually is 'this'