Click here to Skip to main content
16,011,805 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to call interrupt function Pin
FlyingDancer19-Nov-03 3:09
FlyingDancer19-Nov-03 3:09 
GeneralDirectshow error w/ SetNotifyWindow Pin
georgiek5018-Nov-03 18:15
georgiek5018-Nov-03 18:15 
GeneralRe: Directshow error w/ SetNotifyWindow Pin
Ivor S. Sargoytchev18-Nov-03 19:28
Ivor S. Sargoytchev18-Nov-03 19:28 
GeneralRe: Directshow error w/ SetNotifyWindow Pin
georgiek5018-Nov-03 19:57
georgiek5018-Nov-03 19:57 
GeneralATL & DHTML Pin
Leesen18-Nov-03 17:40
Leesen18-Nov-03 17:40 
GeneralRe: ATL & DHTML Pin
Peter Molnar19-Nov-03 15:27
Peter Molnar19-Nov-03 15:27 
GeneralRe: ATL & DHTML Pin
Leesen19-Nov-03 19:13
Leesen19-Nov-03 19:13 
GeneralRe: ATL & DHTML Pin
Peter Molnar20-Nov-03 2:33
Peter Molnar20-Nov-03 2:33 
The last resort I see is to implement 4./
For this you will have to insert another attribute into the body tag with the name onunload.
you have two choices:
<body onunload="alert('This is my onunload message!')">

or
<script language=javascript>
function ExitFunction()
{
   alert('This my ExitFunction message');
}
</script>
<body onunload=ExitFunction()>


Your code:
spElement->setAttribute(CComBSTR("onunload"),CComVariant("\"alert('This is my onunload message!')\""),0);


or
spElement->insertAdjacentHTML(CComBSTR("beforeBegin"),CComBSTR("...the entire script tag..."));
spElement->setAttribute(CComBSTR("onunload"),CComVariant("ExitFunction()"),0);


Peter Molnar
GeneralRe: ATL &amp; DHTML Pin
Leesen20-Nov-03 5:13
Leesen20-Nov-03 5:13 
GeneralRe: ATL &amp; DHTML Pin
Peter Molnar20-Nov-03 5:34
Peter Molnar20-Nov-03 5:34 
Generalargv argc and buffer over-run HACK Pin
BaldwinMartin18-Nov-03 17:12
BaldwinMartin18-Nov-03 17:12 
GeneralRe: argv argc and buffer over-run HACK Pin
Peak18-Nov-03 20:20
Peak18-Nov-03 20:20 
GeneralRe: argv argc and buffer over-run HACK Pin
BaldwinMartin18-Nov-03 22:17
BaldwinMartin18-Nov-03 22:17 
GeneralRe: argv argc and buffer over-run HACK Pin
David Crow19-Nov-03 4:21
David Crow19-Nov-03 4:21 
QuestionHow to use GDI+ in MFC framework Pin
Member 65339918-Nov-03 16:43
Member 65339918-Nov-03 16:43 
AnswerRe: How to use GDI+ in MFC framework Pin
PJ Arends18-Nov-03 19:04
professionalPJ Arends18-Nov-03 19:04 
GeneralDetecting Virtual Adapters Pin
dafunkt18-Nov-03 16:22
dafunkt18-Nov-03 16:22 
Generaldetecting minimized view in MFC Pin
tgintz18-Nov-03 16:15
tgintz18-Nov-03 16:15 
GeneralRe: detecting minimized view in MFC Pin
PJ Arends18-Nov-03 19:08
professionalPJ Arends18-Nov-03 19:08 
GeneralRe: detecting minimized view in MFC Pin
tgintz18-Nov-03 19:23
tgintz18-Nov-03 19:23 
GeneralRe: detecting minimized view in MFC Pin
tgintz18-Nov-03 23:15
tgintz18-Nov-03 23:15 
QuestionNewB Memory Leak ? Pin
LOSTTWARE.com18-Nov-03 15:22
LOSTTWARE.com18-Nov-03 15:22 
AnswerRe: NewB Memory Leak ? Pin
Prakash Nadar18-Nov-03 16:07
Prakash Nadar18-Nov-03 16:07 
AnswerRe: NewB Memory Leak ? Pin
Peter Molnar19-Nov-03 14:43
Peter Molnar19-Nov-03 14:43 
GeneralNeed Help Pin
Cory Renfrow18-Nov-03 14:18
Cory Renfrow18-Nov-03 14:18 

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.