启动时加载部分CUI&ŧ039;s

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了启动时加载部分CUI&ŧ039;s相关的知识,希望对你有一定的参考价值。

  1. Try
  2. 'Load Main CUI Name
  3. Dim mainCuiFiles As String = Application.GetSystemVariable("MENUNAME")
  4. mainCuiFiles += ".cui"
  5. Dim cs As New CustomizationSection(mainCuiFiles)
  6. 'set default directory for your custom cui
  7. Dim pwgscCui As String = DEFAULTDIR + "pwgsc.cui"
  8. 'Find out the current workspace settings name
  9. Dim ws As String = Application.GetSystemVariable("WSCURRENT")
  10. ' check to see if partial cui is loaded
  11. If cs.PartialCuiFiles.Contains(pwgscCui) = False Then
  12. 'if your cui isn't loaded it and refresh all workspaces
  13. Application.MenuGroups.Load(pwgscCui)
  14. 'refresh current workspace to show toolbars and menu's
  15. Application.SetSystemVariable("WSCURRENT", ws)
  16. Else
  17. 'refresh current workspace to show toolbars and menu's
  18. Application.SetSystemVariable("WSCURRENT", ws)
  19. End If
  20. Catch Ex As System.Exception
  21. System.Windows.Forms.MessageBox.Show(Ex.ToString, "ERROR LOADING")
  22. End Try

以上是关于启动时加载部分CUI&ŧ039;s的主要内容,如果未能解决你的问题,请参考以下文章

枚举SSID&ŧ039;s

使用TextMate&ŧ039;s tmŧdialog命令显示警报框

使用两个表的并集获取Count&ŧ039;s

为addChild创建一个可以加载SWF&ŧ039;的对象

Clojure中的Dijkstra&ŧ039;s算法

Bresenham&ŧ039;s线算法