Print Page | Close Window

CtreeCtrl's problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=12842
Printed Date: 15 May 2024 at 6:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CtreeCtrl's problem
Posted By: brucerain
Subject: CtreeCtrl's problem
Date Posted: 02 December 2008 at 9:04pm
1.Remove the image of the tree item and Run the CtreeCtrl demo ,then click "Start->Settings->Taskbar and start menu" , do nothing and then click "OK" button , you will find that the expand button in the demo program became a little smaller.

2. Run the demo with the image of the tree item, all is OK.

3.Do the same with the tree control not using the ctreectrl class, all is OK.


What's the reason?







Replies:
Posted By: Oleg
Date Posted: 03 December 2008 at 4:40am
Hi,
 
Can you attach some screenshots ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: brucerain
Date Posted: 03 December 2008 at 11:37pm
Steps to reproduce it:
 
Comment the following code lines in the TreeCtrl sample in version 11.2:

void CSelectTreeCtrl::PreSubclassWindow()
{
    CTreeCtrl::PreSubclassWindow();

    m_pParentDlg = DYNAMIC_DOWNCAST(CTreeCtrlDlg, GetParent());
    ASSERT_VALID(m_pParentDlg);

//    CBitmap bitmap;
//    bitmap.LoadBitmap(IDB_TREE_IMAGES);

//    m_imageList.Create(16, 16, ILC_COLOR24|ILC_MASK, 2, 1);
//    m_imageList.Add(&bitmap, RGB(0,255,0));
//    SetImageList(&m_imageList, TVSIL_NORMAL);
}

Compile and run it, and then do the steps in the previous message.





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