Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC newbie needs help with CString Pin
Christian Graus16-Aug-02 13:19
protectorChristian Graus16-Aug-02 13:19 
GeneralCString Trim Pin
Shotgun16-Aug-02 12:26
Shotgun16-Aug-02 12:26 
GeneralRe: CString Trim Pin
Michael Dunn16-Aug-02 12:32
sitebuilderMichael Dunn16-Aug-02 12:32 
GeneralRe: CString Trim Pin
Shotgun16-Aug-02 12:38
Shotgun16-Aug-02 12:38 
QuestionCan we put an Icon (Shortcut) for an application with Visual C++ 6.0 MFC in Run Time? Pin
Anonymous16-Aug-02 11:15
Anonymous16-Aug-02 11:15 
AnswerRe: Can we put an Icon (Shortcut) for an application with Visual C++ 6.0 MFC in Run Time? Pin
Anonymous16-Aug-02 12:00
Anonymous16-Aug-02 12:00 
GeneralRe: I tried & failed Pin
ATC16-Aug-02 13:41
ATC16-Aug-02 13:41 
QuestionReturn to the previous active window? Pin
Matt Eckerson16-Aug-02 11:15
Matt Eckerson16-Aug-02 11:15 
Hi all,

I have a dialog that pops up every hour or so, and I'd like it to return to the previous active window after the user clicks OK on the dialog.
I've got a HWND member variable that gets the previous active window in PreCreateWindow, and a SetActiveWindow function in the PostNcDestroy of the popup dialog class. I'm not sure about where else to put these functions, --and it does bomb with an error, "...memory could not be read."

Could someone point me in the right direction? Where's the best place to do this?

Thanks in advance.

Matt
AnswerRe: Return to the previous active window? Pin
Matt Eckerson16-Aug-02 19:38
Matt Eckerson16-Aug-02 19:38 
QuestionCan we put an Icon (Shortcut) for an application with Visual C++ 6.0 MFC? Pin
Anonymous16-Aug-02 11:12
Anonymous16-Aug-02 11:12 
AnswerRe: Can we put an Icon (Shortcut) for an application with Visual C++ 6.0 MFC? Pin
Ken Mazaika16-Aug-02 14:54
Ken Mazaika16-Aug-02 14:54 
GeneralNeed Advice on learning MFC. Pin
Raskolnikov16-Aug-02 10:55
Raskolnikov16-Aug-02 10:55 
GeneralRe: Need Advice on learning MFC. Pin
Michael Dunn16-Aug-02 11:17
sitebuilderMichael Dunn16-Aug-02 11:17 
GeneralRe: Need Advice on learning MFC. Pin
Raskolnikov16-Aug-02 12:09
Raskolnikov16-Aug-02 12:09 
GeneralRe: Need Advice on learning MFC. Pin
Christian Graus16-Aug-02 13:21
protectorChristian Graus16-Aug-02 13:21 
GeneralRe: Need Advice on learning MFC. Pin
Ernest Laurentin16-Aug-02 19:02
Ernest Laurentin16-Aug-02 19:02 
GeneralRe: Need Advice on learning MFC. Pin
valikac16-Aug-02 11:20
valikac16-Aug-02 11:20 
GeneralRe: Need Advice on learning MFC. Pin
Raskolnikov16-Aug-02 12:29
Raskolnikov16-Aug-02 12:29 
GeneralRe: Need Advice on learning MFC. Pin
valikac16-Aug-02 13:11
valikac16-Aug-02 13:11 
GeneralRe: Need Advice on learning MFC. Pin
Anonymous16-Aug-02 16:50
Anonymous16-Aug-02 16:50 
GeneralRe: Need Advice on learning MFC. Pin
Christian Graus16-Aug-02 13:23
protectorChristian Graus16-Aug-02 13:23 
GeneralLPDISPATCH - cant find it in mSDN Pin
ns16-Aug-02 10:22
ns16-Aug-02 10:22 
GeneralRe: LPDISPATCH - cant find it in mSDN Pin
Le centriste16-Aug-02 10:23
Le centriste16-Aug-02 10:23 
GeneralRe: LPDISPATCH - cant find it in mSDN Pin
Anonymous16-Aug-02 13:11
Anonymous16-Aug-02 13:11 
QuestionReinterpreting a keypress? Pin
dazinith16-Aug-02 9:07
dazinith16-Aug-02 9:07 

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.