diff options
Diffstat (limited to 'iup')
| -rwxr-xr-x | iup/src/win/iupwin_text.c | 6 | 
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) | 
