Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Change CXTPPropertyPageTreeNavigator width
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Change CXTPPropertyPageTreeNavigator width

 Post Reply Post Reply
Author
Message
netman2 View Drop Down
Groupie
Groupie


Joined: 19 April 2016
Location: Seoul
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote netman2 Quote  Post ReplyReply Direct Link To This Post Topic: Change CXTPPropertyPageTreeNavigator width
    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

Back to Top
netman2 View Drop Down
Groupie
Groupie


Joined: 19 April 2016
Location: Seoul
Status: Offline
Points: 24
Post Options Post Options   Thanks (1) Thanks(1)   Quote netman2 Quote  Post ReplyReply Direct Link To This Post Posted: 20 April 2017 at 5:11am
I solved this problem myself.

Override SizeToPage function!

Thanks!
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.141 seconds.