Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO : Display a different context menu than the default system context menu.

 
Subscribe to the RSS feed for this forum  Forum Index -> FolderView ActiveX Control
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Wed Jun 18, 2008 11:07 am    Post subject: HOWTO : Display a different context menu than the default system context menu.

To display your own context menu instead of the default system context menu, use the OnContextMenuPopup event as follows :

[VB6]
Private Sub fldrVw_OnContextMenuPopup(ByVal ShellMenu As FolderViewControl.IShellContextMenu, Cancel As Boolean)
' This prevents FolderView from displaying its own context menu
Cancel = True

' Show your own menu instead
contextMenu.Show()
End Sub


[C++]
void CFdrViewVCDlg::OnOnContextMenuPopupFolderviewctrl1(LPDISPATCH ShellMenu, BOOL FAR* Cancel)
{
// This prevents FolderView from displaying its own context menu
*Cancel = TRUE ;

// Show your own menu instead
contextMenu.Show();
}
Back to top
Display posts from previous:   
Forum Index -> FolderView ActiveX Control All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group