Print Page | Close Window

Changing border style of attached view

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1758
Printed Date: 09 May 2024 at 2:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Changing border style of attached view
Posted By: zarchaoz
Subject: Changing border style of attached view
Date Posted: 06 February 2005 at 9:00pm
I am attaching a CTreeView derived class to a CXTPDockingPane. That is OK, but when the view is displayed in the docking pane it has WS_BORDER style. I want to change the border style to be like the examples with the CTreeCtrl and with WS_EX_STATICEDGE. (I does not want a deep border)

The code bellow does not work:


BOOL CDerivedTreeView::PreCreateWindow(CREATESTRUCT& cs)
{
    cs.style ^= WS_BORDER;
    cs.style |= TVS_HASLINES | TVS_LINESATROOT | TVS_HASBUTTONS | TVS_SHOWSELALWAYS;
    cs.dwExStyle |= WS_EX_STATICEDGE;

    return CTreeView::PreCreateWindow(cs);
}


Please, help me to resolve this?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net