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
OcranaAsked:
Who is Participating?
 
fluglashCommented:
you can also use ModifyStyleEx, to change style for window:

http://msdn.microsoft.com/en-us/library/ahf6zed6(VS.80).aspx
0
 
fluglashCommented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.