一个简单的API语句可以实现更改菜单字体颜色:Private Declare Function SetSysColors Lib "user32" (ByVal nChanges As Long, lpSysColor As Long, lpColorvalues As Long) As Long
Private Sub Form_Load()
SetSysColors 1, 7, vbRed ´设置菜单字体红色(可选择 &H0 -----> &HFFFFFF 共16777216种颜色!)
End Sub
Private Sub Form_Unload(Cancel As Integer)
SetSysColors 1, 7, vbBlack ´还原菜单字体
End Sub
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/