Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralThe copy and paste fundtion Pin
Jeason Zhao24-Oct-02 6:17
Jeason Zhao24-Oct-02 6:17 
GeneralRe: The copy and paste fundtion Pin
valikac24-Oct-02 9:48
valikac24-Oct-02 9:48 
GeneralRe: The copy and paste fundtion Pin
Rickard Andersson2024-Oct-02 11:29
Rickard Andersson2024-Oct-02 11:29 
GeneralATL ActiveX and AxWindow Pin
Braulio Dez24-Oct-02 6:01
Braulio Dez24-Oct-02 6:01 
QuestionVisual C++ 6, er no 7, er 7.1 ? Pin
Patje24-Oct-02 5:52
Patje24-Oct-02 5:52 
AnswerRe: Visual C++ 6, er no 7, er 7.1 ? Pin
Joao Vaz24-Oct-02 6:18
Joao Vaz24-Oct-02 6:18 
GeneralADO and ADOX Pin
arthivjii24-Oct-02 5:44
arthivjii24-Oct-02 5:44 
GeneralClosing CFrameWnd children Dialogs from Frame Pin
Brian Nash24-Oct-02 5:21
Brian Nash24-Oct-02 5:21 
I'm trying to implement a 'inactivity' feature in my MDI/SDI app. Since there are many different modal dialogs that could be up, I'm using windows hooks to set/reset a timer based on keyboard and mouse events. That's all working fine.

I'm having a problem killing off any dialogs (who might also have children dialogs) that might be up when the timer kicks off.

I'm doing all of this from within my CFrameWnd derived class, but can't simply post WM_CLOSE to the frame, since my frame class has a little 'signon' screen that it reverts to.

In my timer handler I've tried SendMessageToDescendants(WM_CLOSE), and I've tried finding children windows with GetWindow(GW_CHILD) and posting WM_CLOSE (even tried WM_DESTROY), but my child windows never seem to care. Actually they never even seem to get the message...

If I save off a CWnd* to the currently modal dialog, and then send a WM_CLOSE to that, it'll go away, but it's children hang out. I thought they would go away too. But I'd rather not have to save off that ptr (there are a lot of menu commands that bring up dialogs, dozens and dozens) if there is another way around it..

Anyone have any suggestions?


GeneralCEdit multiline Pin
Mark Donkers24-Oct-02 4:55
Mark Donkers24-Oct-02 4:55 
GeneralRe: CEdit multiline Pin
jmkhael24-Oct-02 5:02
jmkhael24-Oct-02 5:02 
GeneralRe: CEdit multiline Pin
Mark Donkers24-Oct-02 5:15
Mark Donkers24-Oct-02 5:15 
QuestionWhat is the easyest way to get HTTP response header? Pin
George224-Oct-02 4:49
George224-Oct-02 4:49 
AnswerRe: What is the easyest way to get HTTP response header? Pin
Ravi Bhavnani24-Oct-02 5:08
professionalRavi Bhavnani24-Oct-02 5:08 
GeneralRe: What is the easyest way to get HTTP response header? Pin
George224-Oct-02 20:39
George224-Oct-02 20:39 
GeneralRe: What is the easyest way to get HTTP response header? Pin
George225-Oct-02 0:25
George225-Oct-02 0:25 
GeneralRe: What is the easyest way to get HTTP response header? Pin
Ravi Bhavnani25-Oct-02 1:43
professionalRavi Bhavnani25-Oct-02 1:43 
GeneralRe: What is the easyest way to get HTTP response header? Pin
George225-Oct-02 17:23
George225-Oct-02 17:23 
AnswerRe: What is the easyest way to get HTTP response header? Pin
Todd Smith24-Oct-02 8:48
Todd Smith24-Oct-02 8:48 
GeneralRe: What is the easyest way to get HTTP response header? Pin
George224-Oct-02 18:51
George224-Oct-02 18:51 
GeneralRe: What is the easyest way to get HTTP response header? Pin
Todd Smith25-Oct-02 6:47
Todd Smith25-Oct-02 6:47 
GeneralRichEdit Ctrl question. Pin
JohnnyG24-Oct-02 4:49
JohnnyG24-Oct-02 4:49 
GeneralCrystal Reports Pin
Ruca24-Oct-02 4:49
Ruca24-Oct-02 4:49 
GeneralRe: Crystal Reports Pin
Stephane Rodriguez.24-Oct-02 5:26
Stephane Rodriguez.24-Oct-02 5:26 
GeneralRe: Crystal Reports Pin
Patje24-Oct-02 5:46
Patje24-Oct-02 5:46 
GeneralRe: Crystal Reports Pin
Anonymous24-Oct-02 23:07
Anonymous24-Oct-02 23: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.