1. modified wxMSW::wxCaret to use client coords

2. fixed uninit m_curXXX vars leading to a crash in wxMSW
3. fixed wxWindow::DoDrawBackground() for empty update region


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-09-23 23:28:48 +00:00
parent 025f9ba319
commit b5366def43
5 changed files with 31 additions and 8 deletions

View File

@@ -71,6 +71,10 @@ void wxTextCtrl::Init()
m_isEditable = TRUE;
m_ofsHorz = 0;
m_curPos =
m_curRow =
m_curLine = 0;
}
bool wxTextCtrl::Create(wxWindow *parent,
@@ -90,7 +94,9 @@ bool wxTextCtrl::Create(wxWindow *parent,
// FIXME use renderer
wxCaret *caret = new wxCaret(this, 1, GetCharHeight());
#ifndef __WXMSW__
caret->SetBlinkTime(0);
#endif // __WXMSW__
SetCaret(caret);
SetCursor(wxCURSOR_IBEAM);