Click here to Skip to main content
15,888,803 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can I pass through a variable number of arguments to another function? Pin
jp-mocs1-Nov-07 12:17
jp-mocs1-Nov-07 12:17 
GeneralRe: Can I pass through a variable number of arguments to another function? Pin
jp-mocs2-Nov-07 5:44
jp-mocs2-Nov-07 5:44 
QuestionOn selection a word in CEdit, which messages windows return? Pin
Gofur Halmurat1-Nov-07 6:19
Gofur Halmurat1-Nov-07 6:19 
AnswerRe: On selection a word in CEdit, which messages windows return? Pin
Maximilien1-Nov-07 6:23
Maximilien1-Nov-07 6:23 
GeneralRe: On selection a word in CEdit, which messages windows return? Pin
Gofur Halmurat1-Nov-07 6:34
Gofur Halmurat1-Nov-07 6:34 
AnswerRe: On selection a word in CEdit, which messages windows return? Pin
Mark Salsbery1-Nov-07 7:01
Mark Salsbery1-Nov-07 7:01 
GeneralRe: On selection a word in CEdit, which messages windows return? Pin
Gofur Halmurat1-Nov-07 7:24
Gofur Halmurat1-Nov-07 7:24 
GeneralRe: On selection a word in CEdit, which messages windows return? Pin
Mark Salsbery1-Nov-07 7:54
Mark Salsbery1-Nov-07 7:54 
Gofur Halmurat wrote:
or pMsg->message must be windows message, like WM_something?


Yes.  Edit control notifications are sent in WM_COMMAND messages.

When using MFC, I recommend using MFC event handling whenever possible.
That's a big benefit of MFC Smile | :)   You should generally only need to override
PreTranslateMessage() in special circumstances, when you absolutely have to
catch a message before it gets dispatched through MFC's message handling.
// add this to the class' message map
ON_EN_CHANGE(IDC_EDIT1, OnEditCtrlChange)
...
// add a handler method
void CGetSelectedIETextDlg::OnEditCtrlChange() 
{
    // do something when edit control text changes
}
I don't think EN_CHANGE is going to get sent when text is selected.
I could be wrong.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: On selection a word in CEdit, which messages windows return? Pin
Gofur Halmurat1-Nov-07 9:29
Gofur Halmurat1-Nov-07 9:29 
GeneralRe: On selection a word in CEdit, which messages windows return? Pin
Mark Salsbery1-Nov-07 10:51
Mark Salsbery1-Nov-07 10:51 
QuestionBandwidth Monitor Pin
Alisdair Piercy1-Nov-07 5:25
Alisdair Piercy1-Nov-07 5:25 
AnswerRe: Bandwidth Monitor Pin
led mike1-Nov-07 6:06
led mike1-Nov-07 6:06 
GeneralRe: Bandwidth Monitor Pin
Alisdair Piercy1-Nov-07 6:10
Alisdair Piercy1-Nov-07 6:10 
GeneralRe: Bandwidth Monitor Pin
led mike1-Nov-07 6:36
led mike1-Nov-07 6:36 
Questionunresolved external ... CInvalidArgException Pin
bruccutler1-Nov-07 5:05
bruccutler1-Nov-07 5:05 
AnswerRe: unresolved external ... CInvalidArgException Pin
led mike1-Nov-07 5:34
led mike1-Nov-07 5:34 
QuestionRe: unresolved external ... CInvalidArgException Pin
Chris Meech1-Nov-07 7:28
Chris Meech1-Nov-07 7:28 
AnswerRe: unresolved external ... CInvalidArgException Pin
bruccutler12-Nov-07 15:29
bruccutler12-Nov-07 15:29 
Questiona little code need to explain Pin
youbo1-Nov-07 3:37
youbo1-Nov-07 3:37 
AnswerRe: a little code need to explain Pin
chandu0041-Nov-07 3:50
chandu0041-Nov-07 3:50 
AnswerRe: a little code need to explain Pin
Matthew Faithfull1-Nov-07 4:11
Matthew Faithfull1-Nov-07 4:11 
GeneralRe: a little code need to explain Pin
youbo1-Nov-07 4:14
youbo1-Nov-07 4:14 
GeneralRe: a little code need to explain Pin
Chris Meech1-Nov-07 7:24
Chris Meech1-Nov-07 7:24 
GeneralRe: a little code need to explain Pin
Mark Salsbery1-Nov-07 7:59
Mark Salsbery1-Nov-07 7:59 
GeneralRe: a little code need to explain Pin
Rajesh R Subramanian4-Apr-08 1:18
professionalRajesh R Subramanian4-Apr-08 1:18 

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.