// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
-#ifndef __DIALOGH__
-#define __DIALOGH__
+#ifndef _WX_DIALOG_H_
+#define _WX_DIALOG_H_
#ifdef __GNUG__
#pragma interface "dialog.h"
virtual bool Destroy(void);
void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO);
+ void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO)
+ { wxWindow::SetSize(rect, sizeFlags); }
+ void SetSize(const wxSize& size) { wxWindow::SetSize(size); }
+
void SetClientSize(int width, int height);
+ void SetClientSize(const wxSize& sz) { wxWindow::SetClientSize(sz); }
+
void GetPosition(int *x, int *y) const;
+ wxPoint GetPosition() const { return wxWindow::GetPosition(); }
+
bool Show(bool show);
bool IsShown(void) const ;
void Iconize(bool iconize);
virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
+protected:
+ WXHWND m_hwndOldFocus; // the window which had focus before we were shown
+
DECLARE_EVENT_TABLE()
};
#endif
- // __DIALOGH__
+ // _WX_DIALOG_H_