Click here to Skip to main content
15,906,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Guess what... another edit problem! :) Remove "pling" when I press enter! Pin
Rickard Andersson206-Feb-03 21:13
Rickard Andersson206-Feb-03 21:13 
GeneralRe: Guess what... another edit problem! :) Remove "pling" when I press enter! Pin
georgiek507-Feb-03 0:10
georgiek507-Feb-03 0:10 
GeneralRe: Guess what... another edit problem! :) Remove "pling" when I press enter! Pin
Rickard Andersson207-Feb-03 0:25
Rickard Andersson207-Feb-03 0:25 
GeneralRe: Guess what... another edit problem! :) Remove "pling" when I press enter! Pin
georgiek507-Feb-03 2:37
georgiek507-Feb-03 2:37 
GeneralSend a message from a thread to a function with parameters Pin
willempipi5-Feb-03 0:48
willempipi5-Feb-03 0:48 
GeneralRe: Send a message from a thread to a function with parameters Pin
Chris Meech5-Feb-03 1:25
Chris Meech5-Feb-03 1:25 
GeneralRe: Send a message from a thread to a function with parameters Pin
willempipi5-Feb-03 1:58
willempipi5-Feb-03 1:58 
GeneralRe: Send a message from a thread to a function with parameters Pin
HENDRIK R5-Feb-03 2:11
HENDRIK R5-Feb-03 2:11 
willempipi wrote:
can't i send the CString with the Message toward the function (like OnPaint sends a point value with it's message) so that it would look a little like this:

Since you're dealing with user defined messages, no. Sending your own message and handling it with ON_MESSAGE requires you to provide a function declarated like that you did before (with WPARAM and LPARAM as parameters). Only then the message is handled correctly. It's not comparable to messages like WM_PAINT. These are special messages handled by corresponding functions which for sure can have other parameter types.
In fact, you should do it the way described before by creating your CString on the heap (calling new) and passing it as WPARAM to your function.
GeneralRe: Send a message from a thread to a function with parameters Pin
willempipi5-Feb-03 2:42
willempipi5-Feb-03 2:42 
GeneralRe: Send a message from a thread to a function with parameters Pin
HENDRIK R5-Feb-03 3:14
HENDRIK R5-Feb-03 3:14 
GeneralRe: Send a message from a thread to a function with parameters Pin
willempipi5-Feb-03 3:26
willempipi5-Feb-03 3:26 
GeneralRe: Send a message from a thread to a function with parameters Pin
Chris Meech5-Feb-03 2:19
Chris Meech5-Feb-03 2:19 
GeneralCheck Menu Items Pin
satyavasu5-Feb-03 0:46
satyavasu5-Feb-03 0:46 
GeneralRe: Check Menu Items Pin
Abbas_Riazi5-Feb-03 1:22
professionalAbbas_Riazi5-Feb-03 1:22 
QuestionHow many processor inside... Pin
Raphael Kindt5-Feb-03 0:46
Raphael Kindt5-Feb-03 0:46 
AnswerRe: How many processor inside... Pin
Mike Nordell5-Feb-03 0:53
Mike Nordell5-Feb-03 0:53 
GeneralRe: How many processor inside... Pin
Anders Molin5-Feb-03 1:16
professionalAnders Molin5-Feb-03 1:16 
AnswerRe: How many processor inside... Pin
Abbas_Riazi5-Feb-03 1:26
professionalAbbas_Riazi5-Feb-03 1:26 
General.exe from VC++ Pin
Anonymous5-Feb-03 0:35
Anonymous5-Feb-03 0:35 
GeneralRe: .exe from VC++ Pin
Abbas_Riazi5-Feb-03 0:39
professionalAbbas_Riazi5-Feb-03 0:39 
GeneralRe: .exe from VC++ Pin
Anonymous5-Feb-03 1:01
Anonymous5-Feb-03 1:01 
GeneralRe: .exe from VC++ Pin
Rage5-Feb-03 1:10
professionalRage5-Feb-03 1:10 
GeneralRe: .exe from VC++ Pin
Abbas_Riazi5-Feb-03 1:18
professionalAbbas_Riazi5-Feb-03 1:18 
GeneralRe: .exe from VC++ Pin
Anonymous5-Feb-03 2:31
Anonymous5-Feb-03 2:31 
GeneralRe: .exe from VC++ Pin
Abbas_Riazi5-Feb-03 4:58
professionalAbbas_Riazi5-Feb-03 4:58 

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.