| |

VerySource

 Forgot password?
 Register
Search
View: 552|Reply: 3

How to prevent the browser window from ShellExecuteEx or WinExec from displaying its URL address bar?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-3 10:20:01
| Show all posts |Read mode
How to prevent the browser window from ShellExecuteEx or WinExec from displaying its URL address bar?

Started the browser with ShellExecuteEx or WinExec in the program, and passed the URL address to the browser through parameters.
But I hope others don't see the address of the webpage. May I ask how I can handle it, thank you for your help!
Reply

Use magic Report

0

Threads

57

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-1-3 10:57:01
| Show all posts
Use IWebBrowser2 for operation
Reply

Use magic Report

0

Threads

57

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-1-3 12:30:01
| Show all posts
#include <atlbase.h>
#include <MsHTML.h>
...
OleInitialize (NULL);
{
CComPtr <IWebBrowser2> spWebBrowser;
spWebBrowser.CoCreateInstance (CLSID_InternetExplorer);
// Add some properties here, such as no toolbar, no address bar or something
// Note that some browser shells will take over this request, such as setting the default Maxthon
spWebBrowser-> put_Visible (VARIANT_TRUE);
CComVariant url (TEXT ("http://www.microsoft.com/"));
CComVariant vtEmpty;
spWebBrowser-> Navigate2 (&url,&vtEmpty,&vtEmpty,&vtEmpty,&vtEmpty);
}
OleUninitialize ();
Reply

Use magic Report

0

Threads

18

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-8-3 07:15:02
| Show all posts
Learn.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list