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

C / C++ / MFC

 
GeneralRe: Thread Pin
Rajesh R Subramanian12-Aug-09 2:08
professionalRajesh R Subramanian12-Aug-09 2:08 
GeneralRe: Thread Pin
CPallini12-Aug-09 2:38
mveCPallini12-Aug-09 2:38 
GeneralRe: Thread Pin
Rajesh R Subramanian12-Aug-09 2:45
professionalRajesh R Subramanian12-Aug-09 2:45 
GeneralRe: Thread Pin
CPallini12-Aug-09 3:28
mveCPallini12-Aug-09 3:28 
QuestionCWebBrowser - OnWindowClosingBrowser Method.. Pin
Member 383463011-Aug-09 23:44
Member 383463011-Aug-09 23:44 
AnswerRe: CWebBrowser - OnWindowClosingBrowser Method.. Pin
Bacon Ultimate Cheeseburger12-Aug-09 20:10
Bacon Ultimate Cheeseburger12-Aug-09 20:10 
GeneralRe: CWebBrowser - OnWindowClosingBrowser Method.. Pin
Member 383463012-Aug-09 22:29
Member 383463012-Aug-09 22:29 
GeneralRe: CWebBrowser - OnWindowClosingBrowser Method.. Pin
Bacon Ultimate Cheeseburger12-Aug-09 23:03
Bacon Ultimate Cheeseburger12-Aug-09 23:03 
Member 3834630 wrote:
What should i do to get dialog closed when Windows.Close() method is called in script.


It really depends on your requirements. One way would be to create a class that implements the DWebBrowserEvents2[^] dispatch interface and register it with the appropriate connection point in the browser control. When the windowClosing() method is invoked (in your dialog) you can cancel the event, display the prompt to close the window and if the user selects yes simply call EndDialog() with the desired error code:

void CMyDialog::onWindowClosing(      
    VARIANT_BOOL IsChildWindow,
    VARIANT_BOOL *Cancel)
{
    *Cancel = VARIANT_TRUE;

    UINT result = MessageBox("Close window?", "Close Window?", MB_YESNO);
    if(IDYES == result) {
        EndDialog(23);
    }
}


I am a lean mean ground beef machine!!!

QuestionQuestion on strict-aliasing Pin
Hing11-Aug-09 23:40
Hing11-Aug-09 23:40 
AnswerRe: Question on strict-aliasing Pin
Stuart Dootson12-Aug-09 6:14
professionalStuart Dootson12-Aug-09 6:14 
GeneralRe: Question on strict-aliasing [modified] Pin
Hing12-Aug-09 16:02
Hing12-Aug-09 16:02 
QuestionExamining a Message Queue Pin
ForNow11-Aug-09 22:53
ForNow11-Aug-09 22:53 
AnswerRe: Examining a Message Queue Pin
Stuart Dootson11-Aug-09 23:26
professionalStuart Dootson11-Aug-09 23:26 
QuestionVirtual Serial Port Question Pin
Programm3r11-Aug-09 22:24
Programm3r11-Aug-09 22:24 
AnswerRe: Virtual Serial Port Question Pin
Cedric Moonen11-Aug-09 23:01
Cedric Moonen11-Aug-09 23:01 
QuestionRe: Virtual Serial Port Question Pin
Programm3r11-Aug-09 23:27
Programm3r11-Aug-09 23:27 
AnswerRe: Virtual Serial Port Question Pin
Randor 12-Aug-09 9:31
professional Randor 12-Aug-09 9:31 
GeneralRe: Virtual Serial Port Question Pin
Programm3r12-Aug-09 20:01
Programm3r12-Aug-09 20:01 
Questionhow to display the IplImage into Picture control box. Pin
DevelopmentNoob11-Aug-09 22:13
DevelopmentNoob11-Aug-09 22:13 
AnswerRe: how to display the IplImage into Picture control box. Pin
zhu_lin11-Aug-09 22:59
zhu_lin11-Aug-09 22:59 
QuestionMaximum option to find a string/substring ,or compare option. Pin
Le@rner11-Aug-09 21:01
Le@rner11-Aug-09 21:01 
AnswerRe: Maximum option to find a string/substring ,or compare option. [modified] Pin
Adam Roderick J11-Aug-09 22:45
Adam Roderick J11-Aug-09 22:45 
AnswerRe: Maximum option to find a string/substring ,or compare option. Pin
zhu_lin11-Aug-09 23:10
zhu_lin11-Aug-09 23:10 
Questionload mp3 and seek by samples Pin
javad_200511-Aug-09 20:08
javad_200511-Aug-09 20:08 
AnswerRe: load mp3 and seek by samples Pin
zhu_lin11-Aug-09 23:12
zhu_lin11-Aug-09 23:12 

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.