Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - CtreeCtrl's problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CtreeCtrl's problem

 Post Reply Post Reply
Author
Message
brucerain View Drop Down
Newbie
Newbie


Joined: 13 March 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote brucerain Quote  Post ReplyReply Direct Link To This Post Topic: CtreeCtrl's problem
    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?




Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2008 at 4:40am
Hi,
 
Can you attach some screenshots ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
brucerain View Drop Down
Newbie
Newbie


Joined: 13 March 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote brucerain Quote  Post ReplyReply Direct Link To This Post 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.


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.156 seconds.