Print Page | Close Window

Why this happened?

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=2334
Printed Date: 15 July 2025 at 9:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Why this happened?
Posted By: zhou_wz
Subject: Why this happened?
Date Posted: 07 June 2005 at 5:42am

When I used CXTShellTreeCtrl in a dockpane not in a view!
This shelltreel looks well execept the context menu.

The context menu of the CXTShellTreeCtrl in a dockpane was different from the sample code of  GUI_Exeplorer.

The context menu of my code less than that of sample code. It missed menuitem such as 'Sharing' or some else. While the sample code has.

1.Why this happened?
2.Could I let CXTShellTreeCtrl display not only the folders but also the files?




Replies:
Posted By: Oleg
Date Posted: 08 June 2005 at 11:14pm

1. I can't reproduce it. Atach your sample to see

2. We added ShowFiles method for 9.70



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


Posted By: zhou_wz
Date Posted: 09 June 2005 at 11:07pm

What I do is to try in GUI_Visualstudio7 samples
1. Re declare the m_wndResourceView as shelltree:
// CTreeCtrl m_wndResourceView;
CXTShellTreeCtrl m_wndResourceView;
2. Change the createResourceView in MainFrm.h
CWnd* CMainFrame::CreateResourceView()
{
 if (m_wndResourceView.GetSafeHwnd() == 0)
 {
  if (!m_wndResourceView.Create( WS_VISIBLE | TVS_HASLINES | TVS_LINESATROOT | TVS_HASBUTTONS | TVS_SHOWSELALWAYS,
   CRect(0,0,0,0), this, 0xFF ))
  {
   TRACE0( "Unable to create tree control.\n" );
   return 0;
  }
 /*
 m_wndResourceView.ModifyStyleEx(0, WS_EX_STATICEDGE);
  // load the tree images bitmap and add it to the image list.
  if (!m_ilResourceView.Create(IDB_RESTREE, 16, 1, COLOR_MASK))
   return 0;

  // Set the image list for the tree control.
  m_wndResourceView.SetImageList( &m_ilResourceView, TVSIL_NORMAL );

  // add the parent item
  HTREEITEM htItem = m_wndResourceView.InsertItem(_T("XtremeDemo resources"), 0, 1);
  m_wndResourceView.SetItemState(htItem, TVIS_BOLD, TVIS_BOLD);

  HTREEITEM hti = m_wndResourceView.InsertItem(_T("Accelerator"), 0, 1, htItem);
  m_wndResourceView.InsertItem(_T("IDR_MAINFRAME") , 2, 2, hti);
  m_wndResourceView.Expand(hti, TVE_EXPAND);

  hti = m_wndResourceView.InsertItem(_T("Dialog"), 0, 1, htItem);
  m_wndResourceView.InsertItem(_T("IDD_ABOUTBOX"), 3, 3, hti);
  m_wndResourceView.Expand(hti, TVE_EXPAND);

  hti = m_wndResourceView.InsertItem(_T("Icon"), 0, 1, htItem);
  m_wndResourceView.InsertItem(_T("IDR_MAINFRAME") , 4, 4, hti);
  m_wndResourceView.InsertItem(_T("IDR_XTREMETYPE" ), 4, 4, hti);
  m_wndResourceView.Expand(hti, TVE_EXPAND);

  hti = m_wndResourceView.InsertItem(_T("Menu"), 0, 1, htItem);
  m_wndResourceView.InsertItem(_T("IDR_MAINFRAME") , 5, 5, hti);
  m_wndResourceView.InsertItem(_T("IDR_XTREMETYPE" ), 5, 5, hti);

  hti = m_wndResourceView.InsertItem(_T("String Table"), 0, 1, htItem);
  m_wndResourceView.InsertItem(_T("String Table"), 6, 6, hti);

  hti = m_wndResourceView.InsertItem(_T("Toolbar"), 0, 1, htItem);
  m_wndResourceView.InsertItem(_T("IDR_MAINFRAME") , 7, 7, hti);

  hti = m_wndResourceView.InsertItem(_T("Version"), 0, 1, htItem);
  m_wndResourceView.InsertItem(_T("VS_VERSION_INFO "), 8, 8, hti);

  m_wndResourceView.Expand (htItem, TVE_EXPAND);
  */

 }
 return &m_wndResourceView;
}

3. Rebuilt GUI_visualStudio7
1. Run Gui_visualStudio and show Resource View
    rightclick one folder and show context menu



Posted By: zhou_wz
Date Posted: 09 June 2005 at 11:14pm


Posted By: zhou_wz
Date Posted: 09 June 2005 at 11:15pm


Posted By: Oleg
Date Posted: 11 June 2005 at 11:34am

Hmm... it is strange. I made all same and see all menus in GUI_Sample

What OS do you have?



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


Posted By: zhou_wz
Date Posted: 11 June 2005 at 9:17pm
windows2000 + SP4 + language patch



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