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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user