Hello,

how can my Program detect a left mousebutton in a Richedit Control ?

And what other Messages are interesting programming a Richedit Control ?

Thanks,
Nordwind64
Posted on 2002-03-04 10:13:47 by Nordwind64
subclass your richedit control. also to receive some messages that will be sent directly to your window procedure you need to set certain flags using the EM_SETEVENTMASK message.
Posted on 2002-03-04 10:18:37 by smurf
Hello,

thank you smurf (smurf=Schlumpf in my home language, hehe).
EM_SETEVENTMASK works very fine.

Are there other interesting messages for richedits? I want to collect interesting messages...

Greeting, Nordwind64
Posted on 2002-03-04 14:47:41 by Nordwind64
List of all, only rich edit messages:



[size=9]

EM_AUTOURLDETECT
EM_CANPASTE
EM_CANREDO
EM_DISPLAYBAND
EM_EXGETSEL
EM_EXLIMITTEXT
EM_EXLINEFROMCHAR
EM_EXSETSEL
EM_FINDTEXT
EM_FINDTEXTEX
EM_FINDTEXTEXW
EM_FINDTEXTW
EM_FINDWORDBREAK
EM_FORMATRANGE
EM_GETAUTOURLDETECT
EM_GETBIDIOPTIONS
EM_GETCHARFORMAT
EM_GETEDITSTYLE
EM_GETEVENTMASK
EM_GETIMECOLOR
EM_GETIMECOMPMODE
EM_GETIMEOPTIONS
EM_GETLANGOPTIONS
EM_GETOLEINTERFACE
EM_GETOPTIONS
EM_GETPARAFORMAT
EM_GETPUNCTUATION
EM_GETREDONAME
EM_GETSCROLLPOS
EM_GETSELTEXT
EM_GETTEXTEX
EM_GETTEXTLENGTHEX
EM_GETTEXTMODE
EM_GETTEXTRANGE
EM_GETTYPOGRAPHYOPTIONS
EM_GETUNDONAME
EM_GETWORDBREAKPROCEX
EM_GETWORDWRAPMODE
EM_GETZOOM
EM_HIDESELECTION
EM_PASTESPECIAL
EM_RECONVERSION
EM_REDO
EM_REQUESTRESIZE
EM_SELECTIONTYPE
EM_SETBIDIOPTIONS
EM_SETBKGNDCOLOR
EM_SETCHARFORMAT
EM_SETEDITSTYLE
EM_SETEVENTMASK
EM_SETFONTSIZE
EM_SETIMECOLOR
EM_SETIMEOPTIONS
EM_SETLANGOPTIONS
EM_SETOLECALLBACK
EM_SETOPTIONS
EM_SETPALETTE
EM_SETPARAFORMAT
EM_SETPUNCTUATION
EM_SETSCROLLPOS
EM_SETTARGETDEVICE
EM_SETTEXTEX
EM_SETTEXTMODE
EM_SETTYPOGRAPHYOPTIONS
EM_SETUNDOLIMIT
EM_SETWORDBREAKPROCEX
EM_SETWORDWRAPMODE
EM_SETZOOM
EM_SHOWSCROLLBAR
EM_STOPGROUPTYPING
EM_STREAMIN
EM_STREAMOUT

[b]:: void edit(ANSI-C parameter) ::[/b]

Notification Messages:

EN_ALIGNLTR
EN_ALIGNRTL
EN_OLEOPFAILED
EN_SAVECLIPBOARD
EN_STOPNOUNDO

EN_CORRECTTEXT
EN_DRAGDROPDONE
EN_DROPFILES
EN_IMECHANGE
EN_LINK
EN_MSGFILTER
EN_OBJECTPOSITIONS
EN_PROTECTED
EN_REQUESTRESIZE
EN_SELCHANGE



[/size]


How's that? :)
Posted on 2002-03-04 15:45:59 by stryker
Hello stryker,

the EM_ and EN_ are in the WINDOWS.INC, too.
I meant something like that:

invoke SendMessage,hwndRichEdit,EM_SETBKGNDCOLOR,0,BackgroundColor ;this sends a new backgroundcolor to a richedit

...

Greeting, Nordwind64
Posted on 2002-03-04 23:45:14 by Nordwind64
Yes EM_ and EN_ , are included in the WINDOWS.inc but I can't assure you that everything's in there. Just try to mix and match, and check if that particular message will receive an error during the assembling process. If you receive an error try searching that message on winuser.h - this is a C header file. :)
Posted on 2002-03-05 00:15:00 by stryker