1.我的图标可以出现在“我的电脑”窗口,并且可以打开Windows Explorer。怎样才能在其它程序的“打开”对话框中不显示我的图标呢?GMail就能做到这样。2.怎样才能知道当前Windows Explorer左边的“浏览栏”的打开状态,比如搜索、文件夹、历史记录等。3.我可以在Windows Explorer的主菜单中添加自己的菜单,但是怎样才能在添加的菜单下面添加子菜单?4.我可以在Windows Explorer的工具栏中添加自己的下拉菜单的按钮,但是怎样才能添加该按钮的菜单?就像“查看”菜单一样。
解决方案 »
- SetFilePointer 超出2G定位问题,VB。
- 我用的是activereport报表,如何实现如下式样?
- vb 与access2003数据连接 不可识别数据格式
- 关于VB自动填写表单的问题,高人快帮我啊
- 3月2日喜得一子~~~散光所有分
- 我如何能使ComboBox象LIstbox一样不能让用户在界面上编辑?
- 运用ASP,怎样添加记录到数据库
- 我想在WEB上实现类似于画流程图的功能。大家出出主意,用什么方式实现比较好
- 十亿火急,如何用VB6读取Access2000的mdb数据库?
- 为什么用sendmessage发送wm_syscommand,cs_close到norton无法将其关闭
- VB的COPY文件问题(高分相赠)
- 如何设置MSHFlexGrid控件,使其只能选择一行?另外,如何设置MSHFlexGrid控件,使其只显示纵向的网格而不显示横向的网格
2 For display/hide a band, see http://support.microsoft.com/kb/q255920. There is no documented method to determin the visibility of a band.
3 handle QueryContextMenu
#define ID_MENU1 0
#define ID_MENU2 1
#define ID_MENU3 2
#define ID_MENU4 3
#define ID_LASTMENU 3 HMENU hPop = CreatePopupMenu();
LoadString( g_hResInst, IDS_ITEM1, szMenuText, DIM(szMenuText) );
InsertMenu( hPop, indexMenu, MenuItemFlags, idCmdFirst + ID_MENU1,
szMenuText );
indexMenu++;
... repeat the last 3 lines for other menu items
/* Add the popup to the main menu */
/* Now do it this way to work around quirk noted in KB article Q214477
*/
MENUITEMINFO mii;
mii.cbSize = sizeof( mii );
mii.fMask = MIIM_SUBMENU | MIIM_ID | MIIM_TYPE;
mii.fType = MFT_STRING;
mii.hSubMenu = hPop;
mii.wID = idCmdFirst + ID_MENU4;
mii.dwTypeData = _T("Popup");
mii.cch = sizeof("Popup")-1; // Shouldn't be needed, but works
around an MSLU bug
/* This currently fails (as does the ANSI version) under Win95, so
check failure and then use the old method */
if ( !InsertMenuItem( hMenu, indexMenu, true, &mii ) )
{
InsertMenu( hMenu, indexMenu, MF_STRING | MF_BYPOSITION |
MF_POPUP, (UINT_PTR) hPop, _T("Popup") );
}
indexMenu++; Note:
The Command ID's may be out of range.4 http://www.codeproject.com/wtl/toolband.asp
我的e文水平根本看不懂您给的那些网页,另外我仅会vb语言,c系列的根本看不懂。苦恼啊...
我想要vb的示例代码看看(有点得寸进尺哦)
http://www.mvps.org/emorcillo/en/code/shell/shellextensions.shtml这个网站:
http://www.mvps.org/emorcillo 有很多shell方面的代码
继续等待....
如果方便请给我个下载地址,谢谢。
稍后结贴。
Private Declare Function GetWindowRect Lib "user32" (ByVal hwnd As Long, lpRect As RECT) As LongDim RC As RECT
GetWindowRect Me.hwnd, RC
'判断RC.left > 20
短信已发
另外请关注一下第2贴,这个好像在示例中没有涉及到。
http://community.csdn.net/Expert/topic/4574/4574733.xml?temp=.4973871