if (!nHeightLineDefault)
nHeightLineDefault = nHeightLine;
if (!nHeightLineDefault)
- GetTextExtent(_T("W"), NULL, &nHeightLineDefault);
+ GetTextExtent(wxT("W"), NULL, &nHeightLineDefault);
nHeightTextTotal += nHeightLineDefault;
}
else
// when it is preceded by another '~' in which case it stands for a
// literal tilde
//
- if (*pc == _T('~'))
+ if (*pc == wxT('~'))
{
if (!bLastWasTilde)
{
wxString wxStaticText::DoGetLabel() const
{
- HWND hwnd = GetHwnd();
- LONG textLen = ::WinQueryWindowTextLength(hwnd);
- wxCharBuffer buffer(textLen+1);
- ::WinQueryWindowText(hwnd, textLen+1, buffer.data());
- return buffer;
+ return wxGetWindowText(GetHwnd());
}