Click here to Skip to main content
15,887,477 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: How to delete/destroy modeless dlg/sheet Pin
Justin Tay9-Mar-06 7:28
Justin Tay9-Mar-06 7:28 
GeneralRe: How to delete/destroy modeless dlg/sheet Pin
shaohao10-Mar-06 1:35
shaohao10-Mar-06 1:35 
GeneralRe: How to delete/destroy modeless dlg/sheet Pin
Justin Tay10-Mar-06 1:51
Justin Tay10-Mar-06 1:51 
GeneralPart of ATL not WTL Pin
Justin Tay10-Mar-06 2:04
Justin Tay10-Mar-06 2:04 
GeneralRe: Part of ATL not WTL Pin
shaohao10-Mar-06 2:48
shaohao10-Mar-06 2:48 
AnswerRe: How to delete/destroy modeless dlg/sheet Pin
Michael Dunn9-Mar-06 12:48
sitebuilderMichael Dunn9-Mar-06 12:48 
QuestionIDispEventImpl Pin
QuickDeveloper7-Mar-06 21:32
QuickDeveloper7-Mar-06 21:32 
AnswerRe: IDispEventImpl Pin
Stuart Dootson8-Mar-06 20:53
professionalStuart Dootson8-Mar-06 20:53 
1. Add IDispEventImpl as a base class
class CAboutDlg: public CAxDialogImpl<CAboutDlg>,
                 public IDispEventImpl<IDC_ABOUT, CAboutDlg, &DIID_DWebBrowserEvents2, &LIBID_SHDocVw, 1, 1>


2. Add a sink map to the class
BEGIN_SINK_MAP(CAboutDlg)
   SINK_ENTRY_EX(IDC_ABOUT, DIID_DWebBrowserEvents2, DISPID_DOCUMENTCOMPLETE, OnDocumentComplete)
END_SINK_MAP()


3. Implement the event handler - this is the implementation, you obviously need a corresponding declaration in the class.

void __stdcall CAboutDlg::OnDocumentComplete(IDispatch* pDisp, VARIANT * URL)
{
Do Stuff Here
}


This is from actual working code - a dialog that embeds HTML display using IE.

HTH!
NewsLooking for Freelance ATL Programmers Pin
Ajay Chadha7-Mar-06 19:28
Ajay Chadha7-Mar-06 19:28 
GeneralRe: Looking for Freelance ATL Programmers Pin
toxcct7-Mar-06 22:11
toxcct7-Mar-06 22:11 
QuestionUsing VC7.1 compiler under VC6 IDE.... woes.... :S Pin
kevingpo6-Mar-06 23:52
kevingpo6-Mar-06 23:52 
AnswerRe: Using VC7.1 compiler under VC6 IDE.... woes.... :S Pin
Stuart Dootson7-Mar-06 20:38
professionalStuart Dootson7-Mar-06 20:38 
QuestionAdding vectors Pin
Anil_vvs5-Mar-06 18:21
Anil_vvs5-Mar-06 18:21 
AnswerRe: Adding vectors Pin
toxcct5-Mar-06 22:07
toxcct5-Mar-06 22:07 
GeneralRe: Adding vectors Pin
Anil_vvs5-Mar-06 22:13
Anil_vvs5-Mar-06 22:13 
GeneralRe: Adding vectors Pin
Stephen Hewitt5-Mar-06 23:29
Stephen Hewitt5-Mar-06 23:29 
AnswerRe: Adding vectors Pin
Stephen Hewitt5-Mar-06 22:40
Stephen Hewitt5-Mar-06 22:40 
QuestionRGBQUAD Pin
davidhart1-Mar-06 5:38
davidhart1-Mar-06 5:38 
AnswerRe: RGBQUAD Pin
John R. Shaw4-Mar-06 16:09
John R. Shaw4-Mar-06 16:09 
AnswerRe: RGBQUAD Pin
Chris Losinger7-Mar-06 10:00
professionalChris Losinger7-Mar-06 10:00 
QuestionStrange ActiveX behaviour Pin
Monty21-Mar-06 2:58
Monty21-Mar-06 2:58 
QuestionHWND of an ActiveX control Pin
Monty228-Feb-06 23:39
Monty228-Feb-06 23:39 
AnswerRe: HWND of an ActiveX control Pin
Stephen Hewitt1-Mar-06 11:53
Stephen Hewitt1-Mar-06 11:53 
GeneralRe: HWND of an ActiveX control [Edited] Pin
Monty21-Mar-06 20:47
Monty21-Mar-06 20:47 
GeneralRe: HWND of an ActiveX control [Edited] Pin
Stephen Hewitt1-Mar-06 21:43
Stephen Hewitt1-Mar-06 21:43 

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.