% ----------------------------------------------------------------------------
\membersection{wxFTP::SetUser}
+
\func{void}{SetUser}{\param{const wxString\&}{ user}}
Sets the user name to be sent to the FTP server to be allowed to log in.
to specify a user and a password.
\membersection{wxFTP::SetPassword}
+
\func{void}{SetPassword}{\param{const wxString\&}{ passwd}}
Sets the password to be sent to the FTP server to be allowed to log in.
\wxheading{Remark}
This parameter can be included in a URL if you want to use the URL manager.
-For example, you can use: "ftp://a_user:a_password@a.host:service/a_directory/a_
-file"
+For example, you can use: "ftp://a\_user:a\_password@a.host:service/a_directory/a\_file"
to specify a user and a password.
% ----------------------------------------------------------------------------
\membersection{wxFTP::GetList}
+
\func{wxList *}{GetList}{\param{const wxString\&}{ wildcard}}
The GetList function is quite low-level. It returns the list of the files in
\wxheading{See also}
\helpref{wxInputStream}{wxinputstream}
+
% ----------------------------------------------------------------------------
% ----------------------------------------------------------------------------
-\membersection{wxHTTP::GetInputStream}\label{wxprotogetinput}
+\membersection{wxHTTP::GetInputStream}\label{wxhttpgetinputstream}
\func{wxInputStream *}{GetInputStream}{\param{const wxString\&}{ path}}
-Creates a new input stream on the the specified path. You can use all but seek
-functionnality of wxStream. Seek isn't available on all stream. For example,
+Creates a new input stream on the the specified path. You can use all except the seek
+functionality of wxStream. Seek isn't available on all streams. For example,
http or ftp streams doesn't deal with it. Other functions like StreamSize and
Tell aren't available for the moment for this sort of stream.
You will be notified when the EOF is reached by an error.
This is a low level function and it assumes that you know what you are doing.
\membersection{wxHTTP::SetHeader}
+
\func{wxString}{GetHeader}{\param{const wxString\&}{ header}}
Returns the data attached with a field whose name is specified by \it{header}.
If the field doesn't exist, it will return an empty string and not a NULL string.
+
void GetSize(int *width, int *height) const ;
void GetPosition(int *x, int *y) const ;
+ wxSize GetSize() const { return wxWindow::GetSize(); }
+ wxPoint GetPosition() const { return wxWindow::GetPosition(); }
+ wxSize GetClientSize() const { return wxWindow::GetClientSize(); }
+
void ClientToScreen(int *x, int *y) const;
wxPoint ClientToScreen(const wxPoint& pt) const { return wxWindow::ClientToScreen(pt); }
virtual bool Destroy();
- virtual void SetClientSize(int width, int height);
+ virtual void DoSetClientSize(int width, int height);
virtual void GetPosition(int *x, int *y) const;
void GetSize(int *width, int *height) const ;
void GetPosition(int *x, int *y) const ;
- virtual void ClientToScreen(int *x, int *y) const;
+ wxSize GetSize() const { return wxWindow::GetSize(); }
+ wxPoint GetPosition() const { return wxWindow::GetPosition(); }
+ wxSize GetClientSize() const { return wxWindow::GetClientSize(); }
+ wxRect GetClientRect() const { return wxWindow::GetClientRect(); }
+ virtual void ClientToScreen(int *x, int *y) const;
virtual void ScreenToClient(int *x, int *y) const;
void OnSize(wxSizeEvent& event);
return FALSE;
}
-void wxDialog::SetClientSize(int width, int height)
+void wxDialog::DoSetClientSize(int width, int height)
{
HWND hWnd = (HWND) GetHWND();
RECT rect;
{
wxWindow *parent = GetParent();
HWND hWnd = (HWND) GetHWND();
- HWND hParentWnd = (HWND) (HWND) parent->GetHWND();
+ HWND hParentWnd = (HWND) 0;
+ if (parent)
+ hParentWnd = (HWND) parent->GetHWND();
RECT rect;
::GetClientRect(hWnd, &rect);