return FALSE;
}
if (*value) delete[] (*value);
- *value = copystring(buf);
+ *value = wxStrcpy(new wxChar[wxStrlen(buf) + 1], buf);
return TRUE;
}
void wxClientDisplayRect(int *x, int *y, int *width, int *height)
{
-#if defined(__WIN16__) || defined(__WXMICROWIN__)
+#if defined(__WXMICROWIN__)
*x = 0; *y = 0;
wxDisplaySize(width, height);
#else
if ( hWnd )
{
int len = GetWindowTextLength((HWND)hWnd) + 1;
- ::GetWindowText((HWND)hWnd, str.GetWriteBuf(len), len);
- str.UngetWriteBuf();
+ ::GetWindowText((HWND)hWnd, wxStringBuffer(str, len), len);
}
return str;
for ( ;; )
{
- int count = ::GetClassName((HWND)hWnd, str.GetWriteBuf(len), len);
+ int count = ::GetClassName((HWND)hWnd, wxStringBuffer(str, len), len);
- str.UngetWriteBuf();
if ( count == len )
{
// the class name might have been truncated, retry with larger
WXWORD WXDLLEXPORT wxGetWindowId(WXHWND hWnd)
{
-#ifndef __WIN32__
- return (WXWORD)GetWindowWord((HWND)hWnd, GWW_ID);
-#else // Win32
return (WXWORD)GetWindowLong((HWND)hWnd, GWL_ID);
-#endif // Win16/32
}
// ----------------------------------------------------------------------------