|
-
September 9th, 1999, 03:40 PM
#1
TreeView Style
I've derived a class based on a TreeView. When I actually put the TreeView in a window, it comes up as a generic "style-less" tree control. How do I modify the style of the TreeView? I've tried overriding the "OnCreate" and doing this:
BOOL CArcInfoTree::Create(LPCTSTR lpszClassName,
LPCTSTR lpszWindowName, DWORD dwStyle, const
RECT& rect, CWnd* pParentWnd, UINT nID,
CCreateContext* pContext)
{
dwStyle |= TVS_HASBUTTONS;
return CWnd::Create(lpszClassName,
lpszWindowName, dwStyle, rect, pParentWnd, nID,
pContext);
}
But it doesn't do anything.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|