summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 16:45:06 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-09-09 16:45:06 +0200
commit1055ebadb66ce979cf777090f8283a4b2f4206df (patch)
tree6d0c6c27cc11b3494a3a46bd7de58a6444148473
parent92f54bc5b92fcd5490260e277e3f33eb63f83c19 (diff)
Fixing in a few typos.
-rwxr-xr-xiup/src/win/iupwin_text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/iup/src/win/iupwin_text.c b/iup/src/win/iupwin_text.c
index bb325b4..057f6e0 100755
--- a/iup/src/win/iupwin_text.c
+++ b/iup/src/win/iupwin_text.c
@@ -1198,7 +1198,7 @@ void iupdrvTextAddFormatTag(Ihandle* ih, Ihandle* formattag)
/* saves current selection / scroll position before doing anything */
line0 = SendMessage(ih->handle, EM_GETFIRSTVISIBLELINE, 0, 0);
- SendMessage(hWnd, EM_EXGETSEL, 0, LPARAM(&oldrange));
+ SendMessage(im->handle, EM_EXGETSEL, 0, LPARAM(&oldrange));
selection = iupAttribGet(formattag, "SELECTION");
if (selection)
{
@@ -1227,9 +1227,9 @@ void iupdrvTextAddFormatTag(Ihandle* ih, Ihandle* formattag)
SendMessage(ih->handle, EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&charformat);
/* restores selection / scroll position */
- SendMessage(ih->handle, EX_EXSETSEL, 0, LPARAL(&oldRange));
+ SendMessage(ih->handle, EM_EXSETSEL, 0, LPARAL(&oldRange));
line1 = SendMessage(ih->handle, EM_GETFIRSTVISIBLELINE, 0, 0);
- SendMessage(ih->handle, EX_LINESCROLL, 0, Line0 - Line1);
+ SendMessage(ih->handle, EM_LINESCROLL, 0, line0 - line1);
}
static int winTextSetRemoveFormattingAttrib(Ihandle* ih, const char* value)