Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Why this happened?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Why this happened?

 Post Reply Post Reply
Author
Message Reverse Sort Order
zhou_wz View Drop Down
Groupie
Groupie


Joined: 11 December 2003
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote zhou_wz Quote  Post ReplyReply Direct Link To This Post Topic: Why this happened?
    Posted: 11 June 2005 at 9:17pm
windows2000 + SP4 + language patch
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: 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
Back to Top
zhou_wz View Drop Down
Groupie
Groupie


Joined: 11 December 2003
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote zhou_wz Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2005 at 11:15pm
Back to Top
zhou_wz View Drop Down
Groupie
Groupie


Joined: 11 December 2003
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote zhou_wz Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2005 at 11:14pm
Back to Top
zhou_wz View Drop Down
Groupie
Groupie


Joined: 11 December 2003
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote zhou_wz Quote  Post ReplyReply Direct Link To This Post 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

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: 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
Back to Top
zhou_wz View Drop Down
Groupie
Groupie


Joined: 11 December 2003
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote zhou_wz Quote  Post ReplyReply Direct Link To This Post 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?

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