Click here to Skip to main content
15,905,144 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Dialog's of other processes on top of another process Pin
Chandrasekharan P19-Jan-09 0:48
Chandrasekharan P19-Jan-09 0:48 
GeneralRe: Dialog's of other processes on top of another process Pin
Super Hornet19-Jan-09 19:25
Super Hornet19-Jan-09 19:25 
Questionvisual c++ with msaccess program example Pin
karthik12345618-Jan-09 23:00
karthik12345618-Jan-09 23:00 
AnswerRe: visual c++ with msaccess program example Pin
Chandrasekharan P18-Jan-09 23:26
Chandrasekharan P18-Jan-09 23:26 
AnswerRe: visual c++ with msaccess program example Pin
David Crow19-Jan-09 3:11
David Crow19-Jan-09 3:11 
AnswerRe: visual c++ with msaccess program example Pin
Hamid_RT20-Jan-09 19:52
Hamid_RT20-Jan-09 19:52 
QuestionHow can I be notifeid if the caret position has changed or not in a RichEdit control? Pin
Joseph Marzbani18-Jan-09 22:40
Joseph Marzbani18-Jan-09 22:40 
AnswerRe: How can I be notifeid if the caret position has changed or not in a RichEdit control? Pin
Iain Clarke, Warrior Programmer18-Jan-09 23:19
Iain Clarke, Warrior Programmer18-Jan-09 23:19 
My thinking...
"Golly, what a dumb question. Just look at the edit control, and see what messages it sends back. Probably EN_UPDATE or such."
"Hmm, OK, it's not that... Lets fire up a normal edit and look".
"Hmm, just CTL_COLOREDIT coming back"

lots of other thoughts, but in the end, I found:

EN_SELCHANGE

The EN_SELCHANGE message notifies a rich edit control's parent window that the current selection has changed. A
rich edit control sends this notification message in the form of a WM_NOTIFY message.

To receive EN_SELCHANGE notifications, specify ENM_SELCHANGE in the mask sent with the EM_SETEVENTMASK message. 

Note, when there is no selection (that is, the caret is displayed) we have, in fact, the empty selection. Thus,
when the caret position changes (for example, clicking a mouse, typing, or pressing an arrow key), an EN_SELCHANGE
message is sent.


I hope that works for you. Just note that you have to turn notifications on.

Iain.

Codeproject MVP for C++, I can't believe it's for my lounge posts...

GeneralRe: How can I be notifeid if the caret position has changed or not in a RichEdit control? Pin
Joseph Marzbani19-Jan-09 0:44
Joseph Marzbani19-Jan-09 0:44 
QuestionTabControl (Very Urgent..........) [modified] Pin
AnithaSubramani18-Jan-09 20:28
AnithaSubramani18-Jan-09 20:28 
AnswerRe: TabControl (Very Urgent..........) Pin
_AnsHUMAN_ 18-Jan-09 21:12
_AnsHUMAN_ 18-Jan-09 21:12 
AnswerRe: TabControl (Very Urgent..........) Pin
Sarath C18-Jan-09 21:12
Sarath C18-Jan-09 21:12 
GeneralRe: TabControl (Very Urgent..........) Pin
AnithaSubramani18-Jan-09 21:38
AnithaSubramani18-Jan-09 21:38 
AnswerRe: TabControl (Very Urgent..........) Pin
CPallini18-Jan-09 21:19
mveCPallini18-Jan-09 21:19 
JokeRe: TabControl (Very Urgent..........) Pin
N a v a n e e t h18-Jan-09 21:29
N a v a n e e t h18-Jan-09 21:29 
AnswerRe: TabControl (Very Urgent..........) Pin
AnithaSubramani18-Jan-09 22:11
AnithaSubramani18-Jan-09 22:11 
GeneralRe: TabControl (Very Urgent..........) Pin
_AnsHUMAN_ 18-Jan-09 22:50
_AnsHUMAN_ 18-Jan-09 22:50 
QuestionReplaced view not get focused in Splitter Window. Pin
Le@rner18-Jan-09 20:12
Le@rner18-Jan-09 20:12 
AnswerRe: Replaced view not get focused in Splitter Window. Pin
Stuart Dootson18-Jan-09 22:09
professionalStuart Dootson18-Jan-09 22:09 
QuestionLinked Lists Pin
CodingYoshi18-Jan-09 19:38
CodingYoshi18-Jan-09 19:38 
QuestionRe: Linked Lists Pin
CPallini18-Jan-09 20:06
mveCPallini18-Jan-09 20:06 
AnswerRe: Linked Lists Pin
CodingYoshi19-Jan-09 3:32
CodingYoshi19-Jan-09 3:32 
GeneralRe: Linked Lists Pin
CPallini19-Jan-09 3:43
mveCPallini19-Jan-09 3:43 
AnswerRe: Linked Lists Pin
Stephen Hewitt19-Jan-09 1:27
Stephen Hewitt19-Jan-09 1:27 
AnswerRe: Linked Lists Pin
David Crow19-Jan-09 3:14
David Crow19-Jan-09 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.