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++.
-
Are you actually trying to implement a browser control into Notepad++ (in some window?) or do you just want to open a web page in the default browser?Mario– Mario2013-07-21 10:05:36 +00:00Commented Jul 21, 2013 at 10:05
-
I have created a Dock in NotePad++, in Dock i want to Place Windows default browser object (and initialize it with a URL)Wasim A.– Wasim A.2013-07-21 10:07:03 +00:00Commented Jul 21, 2013 at 10:07
Add a comment
|
2 Answers
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).
Try ShellExecute(NULL, L"open", L"www.mywebsite.com",NULL, NULL, SW_SHOWNORMAL);
1 Comment
Wasim A.
shellexecute is to create an anchor in GUI