C++ GUI Windows Default Browser

862 Views Asked by At

I am trying to implement NotePad++ plugin, I am stuck in, how to get GUI of Windows Default Browser initialized with a URL in C++.

2

There are 2 best solutions below

1
Iosif Murariu On

Try ShellExecute(NULL, L"open", L"www.mywebsite.com",NULL, NULL, SW_SHOWNORMAL);

2
Mario On

If you're looking to implement any web browser control (i.e. utilize Internet Explorer), then you might want to have a look at this questions and its answers.

If you'd like to embed the user's preferred web browser, you're pretty much out of luck (there are possibly hacky ways to do it (e.g. modifying the browser's window and keeping it overlapping your control), but I wouldn't recommend them).