Get/SetTitle only for wxTopLevelWindow (wxMSW part).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-11-03 16:47:29 +00:00
parent 60fef9643d
commit faa49bfd39
9 changed files with 69 additions and 49 deletions

View File

@@ -1,6 +1,6 @@
/////////////////////////////////////////////////////////////////////////////
// Name: src/msw/windows.cpp
// Purpose: wxWindow
// Name: src/msw/window.cpp
// Purpose: wxWindowMSW
// Author: Julian Smart
// Modified by: VZ on 13.05.99: no more Default(), MSWOnXXX() reorganisation
// Created: 04/01/98
@@ -739,16 +739,6 @@ void wxWindowMSW::Lower()
SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE);
}
void wxWindowMSW::SetTitle( const wxString& title)
{
SetWindowText(GetHwnd(), title.c_str());
}
wxString wxWindowMSW::GetTitle() const
{
return wxGetWindowText(GetHWND());
}
void wxWindowMSW::DoCaptureMouse()
{
HWND hWnd = GetHwnd();
@@ -3552,6 +3542,20 @@ bool wxWindowMSW::HandleKillFocus(WXHWND hwnd)
return GetEventHandler()->ProcessEvent(event);
}
// ---------------------------------------------------------------------------
// labels
// ---------------------------------------------------------------------------
void wxWindowMSW::SetLabel( const wxString& label)
{
SetWindowText(GetHwnd(), label.c_str());
}
wxString wxWindowMSW::GetLabel() const
{
return wxGetWindowText(GetHWND());
}
// ---------------------------------------------------------------------------
// miscellaneous
// ---------------------------------------------------------------------------