Solved

WindowSytle Explorer Control

Posted on 2008-10-02
2
247 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
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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Find Visual Studio Tools 2 92
matchUp  challenge 6 53
mapBully challenge 6 115
operator overload: incompatible type and too many params 5 64
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

861 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

30 Experts available now in Live!

Get 1:1 Help Now