Click here to Skip to main content
15,919,567 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Not so simple Pin
Stuart Dootson17-Aug-02 11:35
professionalStuart Dootson17-Aug-02 11:35 
GeneralRe: A strange compiler error C2440 Pin
Stuart Dootson17-Aug-02 21:59
professionalStuart Dootson17-Aug-02 21:59 
GeneralRe: A strange compiler error C2440 Pin
Mike Nordell17-Aug-02 23:25
Mike Nordell17-Aug-02 23:25 
GeneralNeed a help with CDialog and WM_QWERYENDSESSION Pin
Pavel Sokolov16-Aug-02 13:19
Pavel Sokolov16-Aug-02 13:19 
GeneralRe: Need a help with CDialog and WM_QWERYENDSESSION Pin
Daniel Ferguson16-Aug-02 21:05
Daniel Ferguson16-Aug-02 21:05 
GeneralRe: Need a help with CDialog and WM_QWERYENDSESSION Pin
Pavel Sokolov17-Aug-02 0:16
Pavel Sokolov17-Aug-02 0:16 
GeneralReal document in View Pin
RocardoS16-Aug-02 13:00
sussRocardoS16-Aug-02 13:00 
GeneralMFC newbie needs help with CString Pin
Raskolnikov16-Aug-02 12:42
Raskolnikov16-Aug-02 12:42 
GeneralRe: MFC newbie needs help with CString Pin
valikac16-Aug-02 13:14
valikac16-Aug-02 13:14 
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 

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.