How to filter Windows message in HWNDMessageHandler

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.

How to filter Windows message in HWNDMessageHandler

Postby sx5486510 » Sun Aug 14, 2016 3:55 am

Hi, I want to filter the windows message in HWNDMessageHandler, but i haven't find the interface.

For example i want return zero in OnEraseBkgnd
Code: Select all
LRESULT HWNDMessageHandler::OnEraseBkgnd(HDC dc) {
  // Needed to prevent resize flicker.
  return 1;
}


Did there a way to do that?
sx5486510
Techie
 
Posts: 10
Joined: Thu Aug 11, 2016 9:51 am

Re: How to filter Windows message in HWNDMessageHandler

Postby Czarek » Mon Aug 15, 2016 2:29 am

See the cefclient example, root_window_win.cc: https://bitbucket.org/chromiumembedded/ ... win.cc-561
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: How to filter Windows message in HWNDMessageHandler

Postby sx5486510 » Mon Aug 15, 2016 10:44 am

Czarek wrote:See the cefclient example, root_window_win.cc: https://bitbucket.org/chromiumembedded/ ... win.cc-561


I try to process msg there, but i cannot disable browser to get it.
For example, if i process WM_PAINT, i don't want the browser do it again.
sx5486510
Techie
 
Posts: 10
Joined: Thu Aug 11, 2016 9:51 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 89 guests