Click here to Skip to main content
15,885,767 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Stopping Morse code - overriding pending event function - how to? Pin
Albert Holguin27-Jun-11 15:18
professionalAlbert Holguin27-Jun-11 15:18 
GeneralRe: Stopping Morse code - overriding pending event function - how to? Pin
Vaclav_27-Jun-11 17:01
Vaclav_27-Jun-11 17:01 
GeneralRe: Stopping Morse code - overriding pending event function - how to? Pin
Albert Holguin28-Jun-11 4:49
professionalAlbert Holguin28-Jun-11 4:49 
AnswerRe: Stopping Morse code - overriding pending event function - how to? Pin
Vaclav_28-Jun-11 3:43
Vaclav_28-Jun-11 3:43 
GeneralRe: Stopping Morse code - overriding pending event function - how to? Pin
Albert Holguin28-Jun-11 4:51
professionalAlbert Holguin28-Jun-11 4:51 
GeneralRe: Stopping Morse code - overriding pending event function - how to? Pin
Vaclav_28-Jun-11 6:08
Vaclav_28-Jun-11 6:08 
GeneralRe: Stopping Morse code - overriding pending event function - how to? Pin
Albert Holguin28-Jun-11 8:24
professionalAlbert Holguin28-Jun-11 8:24 
AnswerSome thread questions Pin
Vaclav_1-Jul-11 3:22
Vaclav_1-Jul-11 3:22 
I am making progress, however, have some minor questions.
1.How does the parameter gets into worker thread control function ?
2.Why does this function need to be defined as static?
3.Per article I am using , the worker thread can be “easily stopped”, however, since the thread sets the COM port (DTR) how do I know it will disable the DTR not just quit the thread? ( I am guessing I need to make sure it will and stopping the thread is no guarantee.)
4.If I use user-interface thread I need to create Cwnd ( Morse code class) It fails but “getLastError” reports “function completed successfully”.

I am using MFC document / view to set / control COM port (DTR) ( outputting Morse code string) and have to be able to stop it ( reset DTR via keyboard ) from the main thread.
I think I will need to use user-interface thread to get better control.

One more – if I want the user interface thread to intercept keyboard messages I am planning to intercept them in the main thread (Cview) via PreTranslateMessage and than PostThreadMessage to thread of interest. Is that the only way to accomplish this?

Thanks for reading,
Any constructive help will be as always appreciated.
Cheers Vaclav
QuestionProblems with MFC Ribbon edit with spin button Pin
Dansveen27-Jun-11 11:04
Dansveen27-Jun-11 11:04 
QuestionRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin27-Jun-11 15:43
professionalAlbert Holguin27-Jun-11 15:43 
AnswerRe: Problems with MFC Ribbon edit with spin button Pin
Peter_in_278027-Jun-11 16:49
professionalPeter_in_278027-Jun-11 16:49 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Dansveen28-Jun-11 3:28
Dansveen28-Jun-11 3:28 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin28-Jun-11 3:44
professionalAlbert Holguin28-Jun-11 3:44 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Dansveen28-Jun-11 4:03
Dansveen28-Jun-11 4:03 
AnswerRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin28-Jun-11 5:00
professionalAlbert Holguin28-Jun-11 5:00 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Dansveen28-Jun-11 8:44
Dansveen28-Jun-11 8:44 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin28-Jun-11 9:31
professionalAlbert Holguin28-Jun-11 9:31 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Dansveen28-Jun-11 15:17
Dansveen28-Jun-11 15:17 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Albert Holguin29-Jun-11 4:30
professionalAlbert Holguin29-Jun-11 4:30 
GeneralRe: Problems with MFC Ribbon edit with spin button Pin
Peter_in_278028-Jun-11 15:00
professionalPeter_in_278028-Jun-11 15:00 
QuestionHow to Send/Post Message to a CDocument object? Pin
Odysseas Z27-Jun-11 10:25
Odysseas Z27-Jun-11 10:25 
QuestionRe: How to Send/Post Message to a CDocument object? Pin
David Crow27-Jun-11 10:44
David Crow27-Jun-11 10:44 
AnswerRe: How to Send/Post Message to a CDocument object? Pin
Odysseas Z27-Jun-11 10:59
Odysseas Z27-Jun-11 10:59 
GeneralRe: How to Send/Post Message to a CDocument object? Pin
Richard MacCutchan27-Jun-11 22:17
mveRichard MacCutchan27-Jun-11 22:17 
AnswerRe: How to Send/Post Message to a CDocument object? Pin
Albert Holguin27-Jun-11 11:41
professionalAlbert Holguin27-Jun-11 11:41 

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.