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

C / C++ / MFC

 
GeneralRe: MoveWindow dynamically - how to determine the destination? Pin
Vaclav_27-Jun-11 13:38
Vaclav_27-Jun-11 13:38 
GeneralRe: MoveWindow dynamically - how to determine the destination? Pin
Albert Holguin27-Jun-11 15:14
professionalAlbert Holguin27-Jun-11 15:14 
Questionlocalizing MFC feature pack (VS 2008) resources. Pin
kle8vi27-Jun-11 1:09
kle8vi27-Jun-11 1:09 
QuestionError while using A_StringFromGUID2 Pin
Pranit Kothari26-Jun-11 23:01
Pranit Kothari26-Jun-11 23:01 
AnswerRe: Error while using A_StringFromGUID2 Pin
Iain Clarke, Warrior Programmer26-Jun-11 23:19
Iain Clarke, Warrior Programmer26-Jun-11 23:19 
QuestionSetting Focus to a Dialog on Clicking it. [modified] Pin
pix_programmer26-Jun-11 22:48
pix_programmer26-Jun-11 22:48 
AnswerRe: Setting Focus to a Dialog on Clicking it. Pin
Iain Clarke, Warrior Programmer26-Jun-11 23:11
Iain Clarke, Warrior Programmer26-Jun-11 23:11 
GeneralRe: Setting Focus to a Dialog on Clicking it. Pin
pix_programmer26-Jun-11 23:18
pix_programmer26-Jun-11 23:18 
Iain Clarke, Warrior Programmer wrote:
I can see some problems:
 
1/ Unless you *really* know what you're
doing it's a bad idea to create UI objects from multiple threads. It's like
juggling with loaded guns whilst drunk. Sure, it may seem like a good idea at
the time, but someone's gonna lose a toe.
 
2/ TerminateThread is
also a really bad idea. I don't think I have *ever* used it. I've used plenty of
Events, and BOOL's, and WaitForSingleMessage (hSomeThread, dwA_short_time)'s,
but never TerminateThread.
That way memory leaks and crashes
lie.
 
3/ To answer your actual question...
Ptr->SetFocus ()
?
 
Iain.


Inside which Event?
GeneralRe: Setting Focus to a Dialog on Clicking it. Pin
Iain Clarke, Warrior Programmer26-Jun-11 23:29
Iain Clarke, Warrior Programmer26-Jun-11 23:29 
AnswerRe: Setting Focus to a Dialog on Clicking it. Pin
d358207727-Jun-11 0:53
d358207727-Jun-11 0:53 
GeneralRe: Setting Focus to a Dialog on Clicking it. Pin
pix_programmer27-Jun-11 2:05
pix_programmer27-Jun-11 2:05 
QuestionON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 5:28
professionalMohibur Rashid26-Jun-11 5:28 
AnswerRe: ON_COMMAND not working on mfc Pin
Richard MacCutchan26-Jun-11 6:04
mveRichard MacCutchan26-Jun-11 6:04 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 12:32
professionalMohibur Rashid26-Jun-11 12:32 
GeneralRe: ON_COMMAND not working on mfc Pin
Richard MacCutchan26-Jun-11 21:23
mveRichard MacCutchan26-Jun-11 21:23 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 21:28
professionalMohibur Rashid26-Jun-11 21:28 
GeneralRe: ON_COMMAND not working on mfc Pin
Iain Clarke, Warrior Programmer26-Jun-11 22:01
Iain Clarke, Warrior Programmer26-Jun-11 22:01 
GeneralRe: ON_COMMAND not working on mfc Pin
Richard MacCutchan26-Jun-11 22:48
mveRichard MacCutchan26-Jun-11 22:48 
GeneralRe: ON_COMMAND not working on mfc Pin
Iain Clarke, Warrior Programmer26-Jun-11 23:00
Iain Clarke, Warrior Programmer26-Jun-11 23:00 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 22:49
professionalMohibur Rashid26-Jun-11 22:49 
GeneralRe: ON_COMMAND not working on mfc Pin
Iain Clarke, Warrior Programmer26-Jun-11 22:59
Iain Clarke, Warrior Programmer26-Jun-11 22:59 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 23:18
professionalMohibur Rashid26-Jun-11 23:18 
GeneralRe: ON_COMMAND not working on mfc Pin
Iain Clarke, Warrior Programmer26-Jun-11 23:35
Iain Clarke, Warrior Programmer26-Jun-11 23:35 
GeneralRe: ON_COMMAND not working on mfc Pin
Mohibur Rashid26-Jun-11 23:50
professionalMohibur Rashid26-Jun-11 23:50 
GeneralRe: ON_COMMAND not working on mfc Pin
Iain Clarke, Warrior Programmer26-Jun-11 22:08
Iain Clarke, Warrior Programmer26-Jun-11 22:08 

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.