Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create a thread & use mutex for synchronization Pin
paulb12-Jun-02 21:08
paulb12-Jun-02 21:08 
GeneralRe: Create a thread & use mutex for synchronization Pin
Tim Smith13-Jun-02 1:47
Tim Smith13-Jun-02 1:47 
GeneralDeleting files from floppy Pin
Sameer Maggon12-Jun-02 18:29
Sameer Maggon12-Jun-02 18:29 
GeneralRe: Deleting files from floppy Pin
Nish Nishant12-Jun-02 18:40
sitebuilderNish Nishant12-Jun-02 18:40 
GeneralRe: Deleting files from floppy Pin
Mike Nordell13-Jun-02 3:16
Mike Nordell13-Jun-02 3:16 
GeneralShared Memory Doubt!!! Pin
BK Pradeep12-Jun-02 17:58
BK Pradeep12-Jun-02 17:58 
GeneralConvert .x file to 3ds file format Pin
nachilau12-Jun-02 17:16
nachilau12-Jun-02 17:16 
GeneralFocus & Always-On-Top :: MFC Pin
valikac12-Jun-02 14:41
valikac12-Jun-02 14:41 
Hi.

I have question questions that are related: focus and always-on-top.

Focus: I have a modal dialog box with an edit box. When the program first initialized the dialog box, I would like the the edit box to be in focus. Okay, there is no problem. The solution is to set the edit box to focus on InitDialog(). I am having a problem setting the edit box focus if the program is no longer in focus and then regains focus. I overloaded OnSetFocus in the dialog box and called SetFocus() for the edit box, but that does not work. For some reason, OnSetFocus() never gets called even if the program loses focus and then focuses again. What do I have to overload to catch the program regaining focus so I can focus the edit box?

My second question is about always-on-top. I would like to add a feature to have the program always be on top. Is there a flag I need to add in main frame?

Thanks,
Kuphryn
GeneralRe: Focus & Always-On-Top :: MFC Pin
Christian Graus12-Jun-02 14:43
protectorChristian Graus12-Jun-02 14:43 
GeneralRe: Focus & Always-On-Top :: MFC Pin
valikac12-Jun-02 15:02
valikac12-Jun-02 15:02 
GeneralRe: Focus & Always-On-Top :: MFC Pin
valikac12-Jun-02 16:20
valikac12-Jun-02 16:20 
GeneralRe: Focus & Always-On-Top :: MFC Pin
valikac12-Jun-02 16:29
valikac12-Jun-02 16:29 
GeneralRe: Focus & Always-On-Top :: MFC Pin
Cris8-Nov-02 0:37
Cris8-Nov-02 0:37 
Generalcfile question Pin
jafrazee12-Jun-02 14:30
jafrazee12-Jun-02 14:30 
GeneralRe: cfile question Pin
Nish Nishant12-Jun-02 14:26
sitebuilderNish Nishant12-Jun-02 14:26 
GeneralRe: cfile question Pin
Christian Graus12-Jun-02 14:53
protectorChristian Graus12-Jun-02 14:53 
GeneralRe: cfile question Pin
Tim Smith12-Jun-02 15:50
Tim Smith12-Jun-02 15:50 
GeneralRe: cfile question Pin
Christian Graus12-Jun-02 17:39
protectorChristian Graus12-Jun-02 17:39 
GeneralRe: cfile question Pin
Tim Smith12-Jun-02 15:48
Tim Smith12-Jun-02 15:48 
GeneralRe: cfile question Pin
jafrazee12-Jun-02 17:21
jafrazee12-Jun-02 17:21 
GeneralLocal IP address Pin
ed987112-Jun-02 12:13
ed987112-Jun-02 12:13 
GeneralRe: Local IP address Pin
JohnnyG12-Jun-02 13:31
JohnnyG12-Jun-02 13:31 
GeneralRe: Local IP address Pin
JohnnyG12-Jun-02 13:34
JohnnyG12-Jun-02 13:34 
Generalmap or list? You decide! Pin
moredip12-Jun-02 12:04
moredip12-Jun-02 12:04 
GeneralRe: map or list? You decide! Pin
12-Jun-02 12:13
suss12-Jun-02 12:13 

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.