Various fixes for Textctrl and Popup Menus.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-01-28 03:25:45 +00:00
parent b82186f0e7
commit 239c2e9674
5 changed files with 191 additions and 38 deletions

View File

@@ -320,7 +320,7 @@ void wxTextCtrl::WriteText(
const wxString& rsValue
)
{
::WinSetWindowText(GetHwnd(), rsValue.c_str());
::WinSendMsg(GetHwnd(), MLM_INSERT, MPARAM((PCHAR)rsValue.c_str()), MPARAM(0));
AdjustSpaceLimit();
} // end of wxTextCtrl::WriteText
@@ -1131,7 +1131,7 @@ wxSize wxTextCtrl::DoGetBestSize() const
if (m_windowStyle & wxTE_MULTILINE)
{
hText *= wxMin(GetNumberOfLines(), 5);
hText *= wxMax(GetNumberOfLines(), 5);
}
//else: for single line control everything is ok
return wxSize(wText, hText);