Link to home
Start Free TrialLog in
Avatar of Ocrana
Ocrana

asked on

WindowSytle Explorer Control

Hello,

I use following code to generate a exploer browser window. But this shows allways a vertical Scrollbar and a border. How I can remove the border and the scrollbar?

RECT rcBrowser = rcClient;
m_explorerWnd.Create( L"", WS_VISIBLE | WS_CHILD, rcBrowser, this, BROWSER_WINDOW_ID );
m_explorerWnd.Navigate( m_browserUrl.c_str(),
                              NULL, NULL, NULL, NULL );
m_explorerWnd.ModifyStyle( WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0 );
ModifyStyleForAllChildWindows( m_explorerWnd.m_hWnd, WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0 );

Thanks,

Ocrana
Avatar of fluglash
fluglash

to remove border try to create your explorer window with WS_NO_BORDER;
or use SetWindowLong to remove border and scrollbars for your explorer-window
ASKER CERTIFIED SOLUTION
Avatar of fluglash
fluglash

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial