Click here to Skip to main content
15,887,381 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: priview of files Pin
VCProgrammer12-Oct-11 20:51
VCProgrammer12-Oct-11 20:51 
GeneralRe: priview of files Pin
Richard MacCutchan12-Oct-11 23:13
mveRichard MacCutchan12-Oct-11 23:13 
QuestionRe: priview of files Pin
David Crow8-Oct-11 12:27
David Crow8-Oct-11 12:27 
AnswerRe: priview of files Pin
VCProgrammer12-Oct-11 20:50
VCProgrammer12-Oct-11 20:50 
GeneralRe: priview of files Pin
David Crow13-Oct-11 3:13
David Crow13-Oct-11 3:13 
QuestionPosting messages in MFC to the view. Pin
Vaclav_7-Oct-11 11:01
Vaclav_7-Oct-11 11:01 
AnswerRe: Posting messages in MFC to the view. Pin
André Kraak7-Oct-11 13:38
André Kraak7-Oct-11 13:38 
GeneralRe: Posting messages in MFC to the view. Pin
Vaclav_7-Oct-11 15:08
Vaclav_7-Oct-11 15:08 
Andre,
thank you for your suggestion.
I have passed the view pointer to the new thread and can use it to read edit box text directly, without sending message.
However, I need to control the cursor in this edit box, using SetSel, and it does not work right now.
I think I can figure it out.
It seem that posting messages using PostThreadMessage is an iffy proposition. The documentation said that if it does not work use Sleep and try again.
It seems to work in bebug / stepping thru the code mode.
I cannot do that since my goal is to move edit box cursor along when the characters are output. I am sending Morse code and however slow it is in comparison with other data, I cannot see using Sleep.
Anyway, you suggested to pass a pointer to view, however, all MFC Post/Send messages need a thread ID. Is that correct?
But since I am not going to use messages, it is irrelevant for now.
Thanks for you help.
Vaclav
AnswerRe: Posting messages in MFC to the view. Pin
PJ Arends7-Oct-11 19:37
professionalPJ Arends7-Oct-11 19:37 
GeneralRe: Posting messages in MFC to the view. Pin
André Kraak7-Oct-11 22:23
André Kraak7-Oct-11 22:23 
GeneralRe: Posting messages in MFC to the view. Pin
Vaclav_8-Oct-11 4:30
Vaclav_8-Oct-11 4:30 
GeneralRe: Posting messages in MFC to the view. Pin
André Kraak8-Oct-11 4:35
André Kraak8-Oct-11 4:35 
GeneralRe: Posting messages in MFC to the view. Pin
Vaclav_8-Oct-11 5:35
Vaclav_8-Oct-11 5:35 
GeneralRe: Posting messages in MFC to the view. Pin
André Kraak8-Oct-11 5:39
André Kraak8-Oct-11 5:39 
SuggestionHow to create secure, uncrackable product keys for your application Pin
Catalin Stavaru7-Oct-11 5:02
Catalin Stavaru7-Oct-11 5:02 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
Albert Holguin7-Oct-11 5:04
professionalAlbert Holguin7-Oct-11 5:04 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
Maximilien7-Oct-11 5:11
Maximilien7-Oct-11 5:11 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
bob169727-Oct-11 16:10
bob169727-Oct-11 16:10 
JokeRe: How to create secure, uncrackable product keys for your application Pin
Chris Meech7-Oct-11 5:24
Chris Meech7-Oct-11 5:24 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
TheGreatAndPowerfulOz7-Oct-11 6:06
TheGreatAndPowerfulOz7-Oct-11 6:06 
GeneralRe: How to create secure, uncrackable product keys for your application Pin
Dave Kreskowiak7-Oct-11 9:02
mveDave Kreskowiak7-Oct-11 9:02 
QuestionSource Code Editor Control Pin
peterchen7-Oct-11 1:33
peterchen7-Oct-11 1:33 
AnswerRe: Source Code Editor Control Pin
Software_Developer7-Oct-11 1:52
Software_Developer7-Oct-11 1:52 
GeneralRe: Source Code Editor Control Pin
peterchen7-Oct-11 2:29
peterchen7-Oct-11 2:29 
GeneralRe: Source Code Editor Control Pin
Software_Developer7-Oct-11 3:44
Software_Developer7-Oct-11 3:44 

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.