- int current_width;
-
- int cx;
- int cy;
- int cyf;
-
- wxGetCharSize(GetHWND(), &cx, &cy, & this->GetFont());
-
- GetTextExtent(wxGetWindowText(m_hWnd), ¤t_width, &cyf,
- NULL,NULL, & this->GetFont());
- if ( w1 < 0 )
- w1 = current_width + 3*cx;
- if ( h1 < 0 )
- h1 = EDIT_HEIGHT_FROM_CHAR_HEIGHT(cyf);
-
- MoveWindow((HWND)m_hWnd, x1, y1, w1, h1, TRUE);