Why Ctrl+C,Ctrl+V,Ctrl+A,etc is invalid in MFC?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Why Ctrl+C,Ctrl+V,Ctrl+A,etc is invalid in MFC?

Postby tigerx » Mon Apr 18, 2016 7:57 pm

I generate a MFC app based on cefsimple and this app contains CHtmlView to load IE web site.

But now I found Ctrl+C,Ctrl+V,Ctrl+A,etc in CHtmlView is invalid.

Does cef refuse the keyboard event like ctrl+c,...?

Who can help me? Thank you!!!
tigerx
Newbie
 
Posts: 2
Joined: Mon Apr 18, 2016 7:27 pm

Re: Why Ctrl+C,Ctrl+V,Ctrl+A,etc is invalid in MFC?

Postby dlong11 » Thu Apr 21, 2016 6:51 pm

I'm not sure what you mean by MFC app with a CHtmlView based on cefsimple. Are you using both the IE browser and CEF? CHthmView uses the IE browser.... Can you give more details?
dlong11
Techie
 
Posts: 11
Joined: Wed Dec 23, 2015 1:19 pm

Re: Why Ctrl+C,Ctrl+V,Ctrl+A,etc is invalid in MFC?

Postby tigerx » Mon Apr 25, 2016 4:30 am

dlong11 wrote:I'm not sure what you mean by MFC app with a CHtmlView based on cefsimple. Are you using both the IE browser and CEF? CHthmView uses the IE browser.... Can you give more details?

Thanks for your reply.

My project uses both CHtmlView and CEF3.

I have resolved this problem.

code:
::GetWindowLongPtr(hWnd, GWLP_WNDPROC)
::SetWindowLongPtr(hWnd, GWLP_WNDPROC, reinterpret_cast<LONG_PTR>(MyWndProc))

Thank you very much!!!
tigerx
Newbie
 
Posts: 2
Joined: Mon Apr 18, 2016 7:27 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 56 guests