Click here to Skip to main content
15,908,173 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Window TreadId Pin
Lim Bio Liong18-Dec-07 19:05
Lim Bio Liong18-Dec-07 19:05 
Questiona question about event object Pin
zengkun10018-Dec-07 18:28
zengkun10018-Dec-07 18:28 
GeneralRe: a question about event object Pin
JudyL_MD19-Dec-07 2:19
JudyL_MD19-Dec-07 2:19 
GeneralRe: a question about event object Pin
zengkun10019-Dec-07 3:26
zengkun10019-Dec-07 3:26 
GeneralRe: a question about event object Pin
JudyL_MD19-Dec-07 3:41
JudyL_MD19-Dec-07 3:41 
GeneralRe: a question about event object Pin
zengkun10019-Dec-07 3:50
zengkun10019-Dec-07 3:50 
Generalconverting bitmap to gif through MFC Pin
ias118-Dec-07 18:22
ias118-Dec-07 18:22 
Questionconverting bitmap to gif through MFC Pin
ias118-Dec-07 18:20
ias118-Dec-07 18:20 
AnswerRe: converting bitmap to gif through MFC Pin
Paresh Chitte18-Dec-07 18:56
Paresh Chitte18-Dec-07 18:56 
GeneralRe: converting bitmap to gif through MFC Pin
Hamid_RT18-Dec-07 19:27
Hamid_RT18-Dec-07 19:27 
Generalno debug info at program start Pin
subramanyeswari18-Dec-07 17:36
subramanyeswari18-Dec-07 17:36 
QuestionRe: no debug info at program start Pin
Hamid_RT18-Dec-07 19:30
Hamid_RT18-Dec-07 19:30 
GeneralRe: no debug info at program start Pin
subramanyeswari18-Dec-07 19:38
subramanyeswari18-Dec-07 19:38 
QuestionWindows Media Player CLSID for CD or DVD Pin
GrizzlyDoug18-Dec-07 12:22
GrizzlyDoug18-Dec-07 12:22 
QuestionAccess Denied when MapViewOfFile [modified] Pin
eraccn18-Dec-07 4:40
eraccn18-Dec-07 4:40 
GeneralPlease reformat your post. Pin
CPallini18-Dec-07 4:50
mveCPallini18-Dec-07 4:50 
GeneralRe: Please reformat your post. Pin
eraccn18-Dec-07 14:04
eraccn18-Dec-07 14:04 
GeneralNope. Pin
CPallini18-Dec-07 21:19
mveCPallini18-Dec-07 21:19 
GeneralRe: Access Denied when MapViewOfFile Pin
Nelek18-Dec-07 22:26
protectorNelek18-Dec-07 22:26 
AnswerRe: Access Denied when MapViewOfFile [modified] Pin
G Haranadh14-Nov-11 0:17
G Haranadh14-Nov-11 0:17 
GeneralGetting Events from an embedded HTML viewer control Pin
Dave Calkins18-Dec-07 4:06
Dave Calkins18-Dec-07 4:06 
We have a native Visual C++/MFC app, and have a dialog which contains a web browser control.

The web browser control is a CWnd-derived class which uses InvokeHelper to communicate with the browser control. We call Navigate2() to send it to a URL and display the HTML in a child window within our dialog. This works great.

The question is how do we go about handling HTML events in the containing C++ dialog? For example, suppose we have a button in the displayed HTML which has an onclick event handler. We'd like the user to be able to click on the button in the HTML and have the containing MFC dialog get the event.

How do we communicate events out to the containing dialog?

The specifics of the control we're using are below. This is whats in the registry under the CLSID referenced in the wrapper class.
<br />
Windows Registry Editor Version 5.00<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}]<br />
@="Microsoft Web Browser"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\Control]<br />
@=""<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\InProcServer32]<br />
@="C:\\WINDOWS\\system32\\ieframe.dll"<br />
"ThreadingModel"="Apartment"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\MiscStatus]<br />
@="0"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\MiscStatus\1]<br />
@="131473"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\ProgID]<br />
@="Shell.Explorer.2"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\ToolboxBitmap32]<br />
@="C:\\WINDOWS\\system32\\ieframe.dll, 257"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\TypeLib]<br />
@="{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\Version]<br />
@="1.1"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{8856F961-340A-11D0-A96B-00C04FD705A2}\VersionIndependentProgID]<br />
@="Shell.Explorer"<br />

GeneralRe: Getting Events from an embedded HTML viewer control Pin
led mike18-Dec-07 5:03
led mike18-Dec-07 5:03 
GeneralRe: Getting Events from an embedded HTML viewer control Pin
Dave Calkins18-Dec-07 5:46
Dave Calkins18-Dec-07 5:46 
GeneralRe: Getting Events from an embedded HTML viewer control Pin
led mike18-Dec-07 6:58
led mike18-Dec-07 6:58 
GeneralRe: Getting Events from an embedded HTML viewer control Pin
Paresh Chitte18-Dec-07 18:00
Paresh Chitte18-Dec-07 18:00 

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.