added View has no border 
Author Message
 added View has no border

  I'm adding a 2nd view in a SDI and switching between
them.  The added view is drawn with no border in the
client area, so it runs right into the status, toolbar and
side edges.  The original view is fine.
  I've compared the dialog template Style flags and have
everything set the same.  Both are derived from CFormView.
      -- Thanks


Thu, 28 Jul 2005 23:45:58 GMT  
 added View has no border


Wed, 18 Jun 1902 01:00:00 GMT  
 added View has no border
Solved...
  The code I had simple had WS_CHILD in the Create!  
Instead I'm now using AFX_WS_DEFAULT_VIEW, which is
WS_CHILD | WS_VISIBLE | WS_BORDER.


Fri, 29 Jul 2005 00:17:14 GMT  
 added View has no border


Wed, 18 Jun 1902 01:00:00 GMT  
 added View has no border
Hi Chris,

Now you get the result by yourselfe. :) In fact, many features are
supported by different window styles. The border is controlled by |
WS_BORDER. You can check out WE_* in MSDN to find other useful info.

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net?  http://www.gotdotnet.com
--------------------
!Content-Class: urn:content-classes:message


!Subject: added View has no border
!Date: Sun, 9 Feb 2003 14:45:58 -0800
!Lines: 7

!MIME-Version: 1.0
!Content-Type: text/plain;
!       charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!Thread-Index: AcLQjQMzgttzSshjQ1yde+KXsbcyXw==
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Newsgroups: microsoft.public.vc.mfc
!Path: cpmsftngxa08
!Xref: cpmsftngxa08 microsoft.public.vc.mfc:361887
!NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
!X-Tomcat-NG: microsoft.public.vc.mfc
!
!  I'm adding a 2nd view in a SDI and switching between
!them.  The added view is drawn with no border in the
!client area, so it runs right into the status, toolbar and
!side edges.  The original view is fine.
!  I've compared the dialog template Style flags and have
!everything set the same.  Both are derived from CFormView.
!      -- Thanks
!



Mon, 08 Aug 2005 10:01:27 GMT  
 added View has no border


Quote:
> Now you get the result by yourselfe. :) In fact, many features are
> supported by different window styles. The border is controlled by |
> WS_BORDER. You can check out WE_* in MSDN to find other useful info.

Be careful - for a view, designed to be embedded inside another window, the
border is usually controlled by WS_EX_CLIENTEDGE instead...

--
---
Jason Teagle

A list of programming resources I use:
E-mail lists: www.windev.org, www.beginthread.com, www.codecipher.com
Newsgroups: comp.lang.java.*
Online info & msg boards: www.codeguru.com, www.codeprojects.com
Online info only: www.php.net
---



Mon, 08 Aug 2005 11:19:19 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Web Browser Control - Add Border - Remove Right Click Functionality

2. Having problems adding record.

3. adding borders to a dialog ?

4. VC++ dynamically add/remove CEdit borders

5. adding border to CToolBarCtrl

6. View with no border, title, menu

7. Scrolling a view when mouse hits border

8. views and thier borders

9. Border in a View

10. Frame window with no Border around the View

11. view border drawing

12. Stop view from having scroll bars?

 

 
Powered by phpBB® Forum Software