Click here to Skip to main content
15,897,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionHow to Create and Load automatically a form type interface Pin
Larry Mills Sr18-Dec-07 3:34
Larry Mills Sr18-Dec-07 3:34 
AnswerRe: How to Create and Load automatically a form type interface Pin
CPallini18-Dec-07 3:48
mveCPallini18-Dec-07 3:48 
GeneralRe: How to Create and Load automatically a form type interface Pin
Larry Mills Sr18-Dec-07 9:07
Larry Mills Sr18-Dec-07 9:07 
AnswerRe: How to Create and Load automatically a form type interface Pin
David Crow18-Dec-07 10:09
David Crow18-Dec-07 10:09 
GeneralRe: How to Create and Load automatically a form type interface Pin
Larry Mills Sr20-Dec-07 13:10
Larry Mills Sr20-Dec-07 13:10 
GeneralRe: How to Create and Load automatically a form type interface Pin
David Crow21-Dec-07 4:13
David Crow21-Dec-07 4:13 
GeneralAudio Capture Before DAC Pin
Saurabh Srivastava18-Dec-07 3:26
Saurabh Srivastava18-Dec-07 3:26 
GeneralRe: Audio Capture Before DAC Pin
Mark Salsbery18-Dec-07 6:13
Mark Salsbery18-Dec-07 6:13 
GeneralLogon User error Pin
narayanagvs18-Dec-07 2:30
narayanagvs18-Dec-07 2:30 
GeneralRe: Logon User error Pin
David Crow18-Dec-07 2:50
David Crow18-Dec-07 2:50 
QuestionDirectX + (MFC or managed) C++ Pin
snir_ya18-Dec-07 2:29
snir_ya18-Dec-07 2:29 
GeneralRe: DirectX + (MFC or managed) C++ Pin
CPallini18-Dec-07 3:37
mveCPallini18-Dec-07 3:37 
GeneralRe: DirectX + (MFC or managed) C++ Pin
snir_ya18-Dec-07 4:09
snir_ya18-Dec-07 4:09 

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.