Solved

WindowSytle Explorer Control

Posted on 2008-10-02
2
234 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
  • 2
2 Comments
 
LVL 7

Expert Comment

by:fluglash
Comment Utility
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 500 total points
Comment Utility
you can also use ModifyStyleEx, to change style for window:

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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now