Print Page | Close Window

Change CXTPPropertyPageTreeNavigator width

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=23321
Printed Date: 02 May 2024 at 8:07pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Change CXTPPropertyPageTreeNavigator width
Posted By: netman2
Subject: Change CXTPPropertyPageTreeNavigator width
Date Posted: 18 April 2017 at 3:47am
Hello!

Nowadays, I'm making program with property sheet.

I put CXTPPropertyPageTreeNavigator in my property sheet.

My tree view item's caption is a longer than CXTPPropertyPageTreeNavigator width.

So, there is a horizontal scroll.

I want to change CXTPPropertyPageTreeNavigator width.

BOOL Create()
{
CFont* pFont = m_pSheet->GetFont();

if (!CWnd::CreateEx(WS_EX_CLIENTEDGE, WC_TREEVIEW, 0,
WS_VISIBLE | WS_VSCROLL | WS_CHILD | WS_GROUP | WS_TABSTOP | m_dwStyle, CRect(0, 0, 0, 0), m_pSheet, 1000))
return FALSE;

SetFont(pFont);

if (!CreateTree())
return FALSE;
return TRUE;
}

What should I do above function?? I tried to change CRect size, but it's not working. 

I'm looking forward to your reply!

Thanks




Replies:
Posted By: netman2
Date Posted: 20 April 2017 at 5:11am
I solved this problem myself.

Override SizeToPage function!

Thanks!



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