Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Changing border style of attached view
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing border style of attached view

 Post Reply Post Reply
Author
Message
zarchaoz View Drop Down
Newbie
Newbie


Joined: 06 February 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote zarchaoz Quote  Post ReplyReply Direct Link To This Post Topic: Changing border style of attached view
    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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.