#ifndef _WX_WINDOW_H_
#define _WX_WINDOW_H_
-enum wxSystemColour;
+#include "wx/settings.h" // solely for wxSystemColour
// if this is set to 1, we use deferred window sizing to reduce flicker when
// resizing complicated window hierarchies, but this can in theory result in
// created yet)
void MSWUpdateStyle(long flagsOld, long exflagsOld);
- // translate wxWidgets coords into Windows ones suitable to be passed to
- // ::CreateWindow()
- //
- // returns true if non default coords are returned, false otherwise
- bool MSWGetCreateWindowCoords(const wxPoint& pos,
- const wxSize& size,
- int& x, int& y,
- int& w, int& h) const;
-
// get the HWND to be used as parent of this window with CreateWindow()
virtual WXHWND MSWGetParent() const;
int themePart,
int themeState,
MSWThemeColour themeColour,
- wxSystemColour fallback);
+ wxSystemColour fallback) const;
// gives the parent the possibility to draw its children background, e.g.
// this is used by wxNotebook to do it using DrawThemeBackground()
// for state as the system will decide for us what needs to be set
void MSWUpdateUIState(int action, int state = 0);
+ // translate wxWidgets coords into Windows ones suitable to be passed to
+ // ::CreateWindow(), called from MSWCreate()
+ virtual void MSWGetCreateWindowCoords(const wxPoint& pos,
+ const wxSize& size,
+ int& x, int& y,
+ int& w, int& h) const;
+
private:
// common part of all ctors
void Init();