Hi anyone,

I am developing an embedded app on W2K, that uses gecko as a 'dumb' GUI: The real application pumps commands into the GUI which converts them into DOM-related commands and then does the DOM-changes. These changes don't take effect until the pending notifications are flushed. I used a trick in which i overwrite the WindowProc of the BrowserView (i use it like in MFCEmbed, but with some more methods to access the DOM) and catch a message which from that point calls a method which flushes the pending notifications in the presentation shell.

I don't really like this design, although it works in most cases. That is the other point: When another application is set to the foreground by the user, and the app pumps commands to the DOM and afterwards calls the SendMessage API-call to kick the reflow-method, the app crashes with a null-pointer.

My question: I read about implementing message-queues somewhere, but i don't really understand how to do this in a correct way. Has someone samplecode or an idea what i am doing wrong?

(Maybe this is also a layout-issue)

Thanks in advance
Timm


Reply via email to