Click here to Skip to main content
15,886,799 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to read "compiier output " Pin
k505421-Jan-22 7:15
mvek505421-Jan-22 7:15 
GeneralMessage Closed Pin
21-Jan-22 8:25
Member 1496877121-Jan-22 8:25 
GeneralRe: How to read "compiier output " Pin
k505421-Jan-22 11:36
mvek505421-Jan-22 11:36 
QuestionMessage Closed Pin
20-Jan-22 14:58
Member 1496877120-Jan-22 14:58 
AnswerRe: Another long shot... Pin
k505420-Jan-22 16:40
mvek505420-Jan-22 16:40 
QuestionMessage Closed Pin
18-Jan-22 11:04
Member 1496877118-Jan-22 11:04 
AnswerRe: Passing system function to QProcess - need syntax help Pin
k505418-Jan-22 11:37
mvek505418-Jan-22 11:37 
Questionwindow.chrome.webview.postmessage from child html to main c++ app (webView2) Pin
Member 1543991717-Jan-22 16:20
Member 1543991717-Jan-22 16:20 
I am using WebView2 for displaying html contents in my win32 application. I have parent.html in which I am providing reference of child.html like -
HTML
<frameset id="myFrmset">
        <frame id="myFrm" name="frmContent" src="child.html"></frame> 
</frameset>

In child.html :
HTML
<button id="samplebutton" onclick="postmessagetocode()">clickhere</button>
<script>
function postmessagetocode() {
            window.chrome.webview.postmessage('clickSample');
        }
</script>

In my c++ code I am loading parent.htm and want to get above message 'clickSample' in
C++
m_webView->add_WebMessageReceived
.

Issue that I am facing : by doing like above I am not getting this message in code. If I post any message from parent.html then I can get it. But if I do like from child.html then it never come to c++ code.

Is there the way to do so?
Is it something like I need to catch the message at parent.html first then post again to c++?

Thanks.
QuestionDDX_Text embedding nulls on UpdateData(TRUE) Pin
ForNow13-Jan-22 16:50
ForNow13-Jan-22 16:50 
AnswerRe: DDX_Text embedding nulls on UpdateData(TRUE) Pin
Peter_in_278013-Jan-22 19:00
professionalPeter_in_278013-Jan-22 19:00 
GeneralRe: DDX_Text embedding nulls on UpdateData(TRUE) Pin
ForNow13-Jan-22 20:10
ForNow13-Jan-22 20:10 
GeneralRe: DDX_Text embedding nulls on UpdateData(TRUE) Pin
Richard MacCutchan13-Jan-22 20:54
mveRichard MacCutchan13-Jan-22 20:54 
GeneralRe: DDX_Text embedding nulls on UpdateData(TRUE) Pin
ForNow14-Jan-22 2:11
ForNow14-Jan-22 2:11 
GeneralRe: DDX_Text embedding nulls on UpdateData(TRUE) Pin
Richard MacCutchan14-Jan-22 3:19
mveRichard MacCutchan14-Jan-22 3:19 
GeneralRe: DDX_Text embedding nulls on UpdateData(TRUE) Pin
ForNow14-Jan-22 3:29
ForNow14-Jan-22 3:29 
GeneralRe: DDX_Text embedding nulls on UpdateData(TRUE) Pin
Richard MacCutchan14-Jan-22 4:07
mveRichard MacCutchan14-Jan-22 4:07 
QuestionNow none of my .h header file changes seem to take Pin
ForNow11-Jan-22 17:30
ForNow11-Jan-22 17:30 
AnswerRe: Now none of my .h header file changes seem to take Pin
Richard MacCutchan11-Jan-22 23:18
mveRichard MacCutchan11-Jan-22 23:18 
GeneralRe: Now none of my .h header file changes seem to take Pin
ForNow12-Jan-22 1:28
ForNow12-Jan-22 1:28 
GeneralRe: Now none of my .h header file changes seem to take Pin
Victor Nijegorodov12-Jan-22 2:14
Victor Nijegorodov12-Jan-22 2:14 
GeneralRe: Now none of my .h header file changes seem to take Pin
ForNow12-Jan-22 2:17
ForNow12-Jan-22 2:17 
GeneralRe: Now none of my .h header file changes seem to take Pin
Richard MacCutchan12-Jan-22 2:46
mveRichard MacCutchan12-Jan-22 2:46 
GeneralRe: Now none of my .h header file changes seem to take Pin
ForNow12-Jan-22 3:32
ForNow12-Jan-22 3:32 
GeneralRe: Now none of my .h header file changes seem to take Pin
Richard MacCutchan12-Jan-22 3:35
mveRichard MacCutchan12-Jan-22 3:35 
GeneralRe: Now none of my .h header file changes seem to take Pin
ForNow12-Jan-22 3:38
ForNow12-Jan-22 3:38 

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.