Various Dialog Editor-related mods; Dlg Ed. getting usable now under MSW.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-08-10 13:48:12 +00:00
parent 983162bd54
commit 9c331ded69
18 changed files with 219 additions and 170 deletions

View File

@@ -74,9 +74,12 @@ void wxControl::SetLabel(const wxString& label)
wxString wxControl::GetLabel(void) const
{
wxBuffer[0] = 0;
if (GetHWND())
GetWindowText((HWND)GetHWND(), wxBuffer, 1000);
wxBuffer[0] = 0;
if (GetHWND())
{
int len = GetWindowText((HWND)GetHWND(), wxBuffer, 256);
wxBuffer[len] = 0;
}
return wxString(wxBuffer);
}