In my Windows-based CEF3 application, I create a new browser in the WM_CREATE handler for my main application window and then load a URL. Since my application uses the WTL (similar to MFC), I want to subclass the browser window. In the past with CEF1, this involved subclassing the main browser window. However, with CEF3, subclassing the browser window isn't sufficient and I need to subclass the renderer window. Of course, the renderer process isn't created until after WM_CREATE is finished. I worked around this problem by subclassing the renderer window in OnRenderProcessThreadCreated instead of in WM_CREATE.
The issue I have is that my application creates a few other renderer processes (I guess because it loads a couple of URLs with different schemes/hosts). How can I tell "which" renderer process was created when OnRenderProcessThreadCreated is called? Is there a way to know which renderer was created or am I just going about this wrong?
Thanks,
Emerick