Visualage C++ V4.0 updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
1999-12-14 23:32:53 +00:00
parent aaf6c39ae6
commit 9dea36ef6d
18 changed files with 122 additions and 49 deletions

View File

@@ -302,7 +302,8 @@ void wxTextCtrl::Paste()
bool wxTextCtrl::CanCopy() const
{
// Can copy if there's a selection
long from, to;
long from = 0L;
long to = 0L;
// GetSelection(& from, & to);
return (from != to);
}
@@ -310,7 +311,8 @@ bool wxTextCtrl::CanCopy() const
bool wxTextCtrl::CanCut() const
{
// Can cut if there's a selection
long from, to;
long from = 0L;
long to = 0L;
// GetSelection(& from, & to);
return (from != to);
}
@@ -527,7 +529,7 @@ bool wxTextCtrl::PositionToXY(long pos, long *x, long *y) const
HWND hWnd = GetHwnd();
// This gets the line number containing the character
int lineNo;
int lineNo = -1;
// lineNo = (int)SendMessage(hWnd, EM_LINEFROMCHAR, (WPARAM)pos, 0);
if ( lineNo == -1 )