'----------------------------------------------------------------------------------------------------
Static OpenQQ As RibbonMenu.Button
Static LastTime As Date
If OpenQQ Is Nothing Then
OpenQQ = ConfigBar.Items("内置聊天")
End If
Dim txt As String
If QQClient.Ready
ConfigBar.Items("内置聊天").SmallImage = GetImage("online.ico")
If QQClient.UnreadCount > 0 Then
txt = "(" & QQClient.UnreadCount & "条)"
End If
Else
ConfigBar.Items("内置聊天").SmallImage = GetImage("offline.ico")
End If
If OpenQQ.Text <> txt Then
OpenQQ.Text = txt
End If
If Forms("桌面导航").opened = True Then
Forms("桌面导航").Controls("TopicBar1").Pages("即时通讯").Links("即时通讯").text = " 即时通讯 " & txt
End If
Dim ntp As timeSpan = Date.Now - LastTime
If ntp.TotalSeconds >= 1 Then
LastTime = Date.Now
If OpenQQ.Text > "" Then
If OpenQQ.ForeColor = Color.Red Then
OpenQQ.ForeColor = Color.Transparent
Else
OpenQQ.ForeColor = Color.Red
End If
If Forms("桌面导航").opened = True Then
If QQClient.Ready = True Then
If Forms("桌面导航").Controls("TopicBar1").Pages("即时通讯").Links("即时通讯").ImageFile = "online.ico"
Forms("桌面导航").Controls("TopicBar1").Pages("即时通讯").Links("即时通讯").ImageFile = "offline.ico"
Else
Forms("桌面导航").Controls("TopicBar1").Pages("即时通讯").Links("即时通讯").ImageFile = "online.ico"
End If
Else
Forms("桌面导航").Controls("TopicBar1").Pages("即时通讯").Links("即时通讯").ImageFile = "offline.ico"
End If
End If
End If
If Forms("桌面导航").opened = True Then
If Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("今天生日员工").text.trim(" ") <> Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("今天生日员工").Name.trim(" ") Then
If Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("今天生日员工").ImageFile = "生日.ico" Then
Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("今天生日员工").ImageFile = "生日1.ico"
Else
Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("今天生日员工").ImageFile = "生日.ico"
End If
Else
Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("今天生日员工").ImageFile = "生日1.ico"
End If
If Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本周生日员工").text.trim(" ") <> Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本周生日员工").Name.trim(" ") Then
If Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本周生日员工").ImageFile = "生日.ico" Then
Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本周生日员工").ImageFile = "生日1.ico"
Else
Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本周生日员工").ImageFile = "生日.ico"
End If
Else
Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本周生日员工").ImageFile = "生日1.ico"
End If
If Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本月生日员工").text.trim(" ") <> Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本月生日员工").Name.trim(" ") Then
If Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本月生日员工").ImageFile = "生日.ico" Then
Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本月生日员工").ImageFile = "生日1.ico"
Else
Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本月生日员工").ImageFile = "生日.ico"
End If
Else
Forms("桌面导航").Controls("TopicBar1").Pages("员工生日提醒").Links("本月生日员工").ImageFile = "生日1.ico"
End If
End If
Dim cfbar今天生日员工 As RibbonMenu.Button = ConfigBar.Items("常用工具").Items("今天生日员工")
Dim cfbar本周生日员工 As RibbonMenu.Button = ConfigBar.Items("常用工具").Items("本周生日员工")
Dim cfbar本月生日员工 As RibbonMenu.Button = ConfigBar.Items("常用工具").Items("本月生日员工")
If cfbar今天生日员工.text.trim(" ") <> cfbar今天生日员工.Name.trim(" ") Then
If cfbar今天生日员工.Enabled = True Then
cfbar今天生日员工.SmallImage = GetImage("生日1.ico")
cfbar今天生日员工.Enabled = False
Else
cfbar今天生日员工.SmallImage = GetImage("生日.ico")
cfbar今天生日员工.Enabled = True
End If
Else
cfbar今天生日员工.SmallImage = GetImage("生日1.ico")
cfbar今天生日员工.Enabled = False
End If
If cfbar本周生日员工.text.trim(" ") <> cfbar本周生日员工.Name.trim(" ") Then
If cfbar本周生日员工.Enabled = True Then
cfbar本周生日员工.SmallImage = GetImage("生日1.ico")
cfbar本周生日员工.Enabled = False
Else
cfbar本周生日员工.SmallImage = GetImage("生日.ico")
cfbar本周生日员工.Enabled = True
End If
Else
cfbar本周生日员工.SmallImage = GetImage("生日1.ico")
cfbar本周生日员工.Enabled = False
End If
If cfbar本月生日员工.text.trim(" ") <> cfbar本月生日员工.Name.trim(" ") Then
If cfbar本月生日员工.Enabled = True Then
cfbar本月生日员工.SmallImage = GetImage("生日1.ico")
cfbar本月生日员工.Enabled = False
Else
cfbar本月生日员工.SmallImage = GetImage("生日.ico")
cfbar本月生日员工.Enabled = True
End If
Else
cfbar本月生日员工.SmallImage = GetImage("生日1.ico")
cfbar本月生日员工.Enabled = False
End If
End If