![]() |
Change CXTPPropertyPageTreeNavigator width |
Post Reply ![]() |
Author | |
netman2 ![]() Groupie ![]() Joined: 19 April 2016 Location: Seoul Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
netman2 ![]() Groupie ![]() Joined: 19 April 2016 Location: Seoul Status: Offline Points: 24 |
![]() ![]() ![]() ![]() ![]() |
I solved this problem myself.
Override SizeToPage function! Thanks!
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |