- 博客(12)
- 资源 (3)
- 收藏
- 关注
原创 在vspackage中使用DTE中的属性框窗口编辑属性
1、使用ITrackSelection接口;2、使用SelectionContainer容器;3、将对象列表放在SelectionContainer容器中;4、使用ITrackSelection接口显示SecletionContainer容器中的对象的属性;https://msdn.microsoft.com/en-us/library/bb165149.a
2016-11-25 16:15:33 660
转载 通过CStdioFile读写unicode字符串
关键有两点:首先:#include "locale.h"接着: _tsetlocale(LC_CTYPE,_T("chs"));
2016-11-23 09:06:43 1531
转载 在vspackage中强制更新command的ui状态(Forcing Command UI refresh)
文章来源:http://www.visualstudioextensibility.com/2014/08/25/forcing-command-ui-refresh/----AddIn的用法As you know, whether you are an add-in developer or a package developer, Visual Stud
2016-11-22 16:59:23 349
原创 信息来源
最近在使用visual studio 2010 shell开发,发现国内的资料十分缺乏,通过baidu找不到什么有价值的东西,无奈之下,通过如下工具,用google查找,逐个找到了解决问题的办法:http://my.yizhihongxing.com/aff.php?aff=3229
2016-11-22 16:19:31 565
转载 在vspackage中修改dte中的命令状态
文章来源:https://social.msdn.microsoft.com/Forums/vstudio/en-US/5b3ffafa-5cc7-4eae-8a7a-29d688872713/vspackage-2010-how-to-enable-copycutpaste-edit-menu-command?forum=vsx&prof=required在ToolWin
2016-11-22 14:32:42 955
转载 Visual studio shell 2010中跟踪当前选中的ToolWindow
Step1:在VSpakage中实现IVsSelectionEvents接口;Step2:在Initiliaze初始话函数中注册之:IVsMonitorSelection ms = Package.GetGlobalService(typeof(IVsMonitorSelection)) as IVsMonitorSelectionif(ms != null){ms.Advis
2016-11-22 10:50:57 676
翻译 visual studio shell 2010的vspacage中的ToolWindow增加关闭时的二次确认功能
1、 public class XXXToolWindow : Microsoft.VisualStudio.Shell.ToolWindowPane, IVsWindowFrameNotify2 实现IVsWindowFrameNotify2接口2、实现OnClose方法 int IVsWindowFrameNotify2.OnClose(ref uint pg
2016-11-18 17:40:05 1191
翻译 在vspackage中创建同一类型的toolwindow的多个实例
1、[ProvideToolWindow(typeof(XXXToolWindow),MultiInstances=true)]2、在显示Toolwindow是方法中,实现如下逻辑: private void ShowXXXToolWindow(object sender, EventArgs e) { // Get the ins
2016-11-18 17:36:16 381
转载 visual studio shell custom command
11down votefavorite4I am creating a Visual Studio Package (this is my first time) and my end goal is to create a context-menu item for the solution explorer that only works on certai
2016-11-17 15:51:24 653
原创 visual studio shell SelectionEvents OnChange事件丢失问题
解决办法如下:http://stackoverflow.com/questions/14165885/add-in-events-are-never-executeddown voteIf you look at applicationObject in the debugger you'll see its a COM obje
2016-11-17 11:30:13 572 1
原创 vs 2015 不能调试winform程序解决办法
First thing you could try is to turn on Project -> Properties -> Debug -> Enable Debuggers -> Enable unmanaged code debugging
2016-11-13 21:15:43 5659 1
Pattern-Oriented.Software.Architecture (Vol.3)
2009-07-30
Design Patterns Gang of Four English
2009-07-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人