Click here to Skip to main content
15,921,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to pass structure or complex data in IDispatch using invoke() method . Pin
Thomas_Mathews19-Jan-09 19:09
Thomas_Mathews19-Jan-09 19:09 
GeneralRe: How to pass structure or complex data in IDispatch using invoke() method . Pin
Stuart Dootson19-Jan-09 19:48
professionalStuart Dootson19-Jan-09 19:48 
GeneralRe: How to pass structure or complex data in IDispatch using invoke() method . [modified] Pin
Thomas_Mathews19-Jan-09 20:19
Thomas_Mathews19-Jan-09 20:19 
GeneralRe: How to pass structure or complex data in IDispatch using invoke() method . Pin
Stuart Dootson19-Jan-09 22:07
professionalStuart Dootson19-Jan-09 22:07 
Questiondialog box displaying not responding Pin
VCProgrammer19-Jan-09 0:53
VCProgrammer19-Jan-09 0:53 
AnswerRe: dialog box displaying not responding Pin
Cedric Moonen19-Jan-09 1:09
Cedric Moonen19-Jan-09 1:09 
GeneralRe: dialog box displaying not responding Pin
Luc Pattyn19-Jan-09 1:15
sitebuilderLuc Pattyn19-Jan-09 1:15 
QuestionGet hour and minute value. Pin
Le@rner19-Jan-09 0:52
Le@rner19-Jan-09 0:52 
AnswerRe: Get hour and minute value. Pin
Cedric Moonen19-Jan-09 1:02
Cedric Moonen19-Jan-09 1:02 
AnswerRe: Get hour and minute value. Pin
CPallini19-Jan-09 4:50
mveCPallini19-Jan-09 4:50 
GeneralRe: Get hour and minute value. Pin
Le@rner19-Jan-09 17:12
Le@rner19-Jan-09 17:12 
AnswerRe: Get hour and minute value. Pin
Hamid_RT20-Jan-09 19:55
Hamid_RT20-Jan-09 19:55 
QuestionDialog's of other processes on top of another process Pin
Super Hornet18-Jan-09 23:18
Super Hornet18-Jan-09 23:18 
AnswerRe: Dialog's of other processes on top of another process - REPOST Pin
Iain Clarke, Warrior Programmer18-Jan-09 23:22
Iain Clarke, Warrior Programmer18-Jan-09 23:22 
GeneralRe: Dialog's of other processes on top of another process - REPOST Pin
Super Hornet18-Jan-09 23:47
Super Hornet18-Jan-09 23:47 
GeneralRe: Dialog's of other processes on top of another process - REPOST Pin
Stuart Dootson19-Jan-09 0:22
professionalStuart Dootson19-Jan-09 0:22 
GeneralRe: Dialog's of other processes on top of another process - REPOST Pin
sashoalm19-Jan-09 1:13
sashoalm19-Jan-09 1:13 
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...

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.