PhilMReel wrote:Ok. I got significantly further with my integration of CEF. I solved my previous problem by placing some JS in OnLoadStart. Anyway, now I have a new problem. I allow the user to open multiple CEF windows, and I keep track of them in my CCefSimpleHandler by the browser address. When OnAfterCreated is called, I store a pointer to the browser in the view. When OnBeforeClose is called, I check to see which browser it is, so I know which window to destroy. The thing is the browser pointers are completely different values from OnAfterCreated and OnBeforeClose. Is this correct, and if so why? Currently, I allow multiple application views to be made, and they each have their own handler. The handler can have up to two views: one application view, and one dev tools view. Is there any way I can tell which view is being destroyed, so I can do a proper cleanup? Thanks in advance.
xins0123 wrote:I just want to know how to show a cef window as modal window? Thanks!
Users browsing this forum: No registered users and 95 guests