From 1055ebadb66ce979cf777090f8283a4b2f4206df Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 16:45:06 +0200 Subject: Fixing in a few typos. --- iup/src/win/iupwin_text.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iup') 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) -- cgit v1.2.3