启动时加载部分CUI&ŧ039;s
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了启动时加载部分CUI&ŧ039;s相关的知识,希望对你有一定的参考价值。
Try 'Load Main CUI Name Dim mainCuiFiles As String = Application.GetSystemVariable("MENUNAME") mainCuiFiles += ".cui" Dim cs As New CustomizationSection(mainCuiFiles) 'set default directory for your custom cui Dim pwgscCui As String = DEFAULTDIR + "pwgsc.cui" 'Find out the current workspace settings name Dim ws As String = Application.GetSystemVariable("WSCURRENT") If cs.PartialCuiFiles.Contains(pwgscCui) = False Then 'if your cui isn't loaded it and refresh all workspaces Application.MenuGroups.Load(pwgscCui) 'refresh current workspace to show toolbars and menu's Application.SetSystemVariable("WSCURRENT", ws) Else 'refresh current workspace to show toolbars and menu's Application.SetSystemVariable("WSCURRENT", ws) End If Catch Ex As System.Exception System.Windows.Forms.MessageBox.Show(Ex.ToString, "ERROR LOADING") End Try
以上是关于启动时加载部分CUI&ŧ039;s的主要内容,如果未能解决你的问题,请参考以下文章