?
Solved

WindowSytle Explorer Control

Posted on 2008-10-02
2
Medium Priority
?
278 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:Ocrana
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 7

Expert Comment

by:fluglash
ID: 22632049
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
 
LVL 7

Accepted Solution

by:
fluglash earned 1500 total points
ID: 22632063
you can also use ModifyStyleEx, to change style for window:

http://msdn.microsoft.com/en-us/library/ahf6zed6(VS.80).aspx
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question