-// wxSizeEvent event(wxSize(actual_width, actual_height), m_windowId);
-// event.SetEventObject( this );
-// GetEventHandler()->ProcessEvent(event);
-}
-void wxDialog::GetPosition(int *x, int *y) const
-{
- // TODO: Convert
-// HWND hWnd = (HWND) GetHWND();
-// RECT rect;
-// GetWindowRect(hWnd, &rect);
-
-// *x = rect.left;
-// *y = rect.top;
-}
-
-bool wxDialog::IsShown() const
-{
- return m_isShown;
-}
-
-bool wxDialog::IsModal() const
-{
- return wxModalDialogs.Find((wxDialog *)this) != 0; // const_cast
-}
-
-bool wxDialog::Show(bool show)
-{
- // TODO: This is involved code, look at msw port for details
- return FALSE;
-}
-
-void wxDialog::SetTitle(const wxString& title)
-{
- ::WinSetWindowText((HWND) GetHWND(), title.c_str());
-}
-
-wxString wxDialog::GetTitle() const
-{
- ::WinQueryWindowText((HWND) GetHWND(), 1000, wxBuffer);
- return wxString(wxBuffer);
-}
-
-void wxDialog::Centre(int direction)
-{
- int x_offset,y_offset ;
- int display_width, display_height;
- int width, height, x, y;
- wxWindow *parent = GetParent();
- if ((direction & wxCENTER_FRAME) && parent)
- {
- parent->GetPosition(&x_offset,&y_offset) ;
- parent->GetSize(&display_width,&display_height) ;
- }
- else
- {
- wxDisplaySize(&display_width, &display_height);
- x_offset = 0 ;
- y_offset = 0 ;
- }
-
- GetSize(&width, &height);
- GetPosition(&x, &y);
-
- if (direction & wxHORIZONTAL)
- x = (int)((display_width - width)/2);
- if (direction & wxVERTICAL)
- y = (int)((display_height - height)/2);
-
- SetSize(x+x_offset, y+y_offset, width, height);
-}
-
-// Replacement for Show(TRUE) for modal dialogs - returns return code