yGreetings everyone.
I have driven myself half crazy with this one. You guessed it, I'm
still trying to make that editor I bothered everyone about in the
summer do things it just doesn't want to do. Only now it's even
more foreign--i'm dealing with a rich-edit control!
You see, I'm writing (or trying to write) a small editor. It
consists of a dialog with 8 pulldowns and a rich-edit control.
This is so I can open files over 65 K in size.
OK, for the question. How on Earth do I set the current position
in the box? I know, why would anyone ever want to do something
strange like that? Because I have a Go-To-Line feature that jumps
the user up or down to a specific line. I posted asking how to do
this before, and one of you clever programmers gave me:
SendMessage hEdit, %EM_SETSEL, 300, 300
which used to jump the caret to the three-hundredth character in
the box. But it doesn't work properly with a rich-edit control,
the screen doesn't update and it fails to do anything when I
specify a character over 32768. Does anyone have any ideas at all?
Thank you! I've spent the last 3 days waiding through stacks of
API calls that either did nothing, GPFed or were otherwise
useless. And now I just don't know what to do!
Danny.
I have driven myself half crazy with this one. You guessed it, I'm
still trying to make that editor I bothered everyone about in the
summer do things it just doesn't want to do. Only now it's even
more foreign--i'm dealing with a rich-edit control!
You see, I'm writing (or trying to write) a small editor. It
consists of a dialog with 8 pulldowns and a rich-edit control.
This is so I can open files over 65 K in size.
OK, for the question. How on Earth do I set the current position
in the box? I know, why would anyone ever want to do something
strange like that? Because I have a Go-To-Line feature that jumps
the user up or down to a specific line. I posted asking how to do
this before, and one of you clever programmers gave me:
SendMessage hEdit, %EM_SETSEL, 300, 300
which used to jump the caret to the three-hundredth character in
the box. But it doesn't work properly with a rich-edit control,
the screen doesn't update and it fails to do anything when I
specify a character over 32768. Does anyone have any ideas at all?
Thank you! I've spent the last 3 days waiding through stacks of
API calls that either did nothing, GPFed or were otherwise
useless. And now I just don't know what to do!
Danny.
Comment