ataranto/CefSharp — pull request #13 by kppullin (2012-03-13 03:08:46+00:00)
Title: Implemented LoadHtml/LoadString

Fully prepared to have this rejected : )

Basically I added a little bit of code to allow for invoking `LoadString()` on the CEF control.

It works, and I added a added a test method to the two example apps, but there are a few "issues" remaining to be aware of:

1. I wanted to keep the naming consistent by using `LoadString()` everywhere. However, as far as I can tell, this clashed with the `LoadString`/`LoadStringW` defined in winuser.h and I've no idea how to work around this : ). Instead I named it `LoadHtml`.

2. The CEF control appears to require a valid URL to be included with `LoadString()`. For my needs, I don't need this and hardcoded `about:blank`. If necessary I can change the definition to allow a user to specify a value.

3. The file `CefSharp.WinForms.Example/Browser.Designer.cs` was changed a bunch by the Visual Studio designer. Again, something I can work around if needed.