--
Dim Page As WinForm.TopicPage
Static OpenQQ As RibbonMenu.Button
Static LastTime As Date
If OpenQQ Is Nothing Then
OpenQQ = ConfigBar.Items("OpenQQ")
End If
Dim txt As String
If QQClient.Ready
If QQClient.UnreadCount > 0 Then
txt = "(" & QQClient.UnreadCount & "条)"
End If
End If
If OpenQQ.Text <> txt Then
OpenQQ.Text = txt
End If
If OpenQQ.Text > "" Then
Dim ntp As timeSpan = Date.Now - LastTime
If ntp.TotalSeconds >= 0.5 Then
LastTime = Date.Now
If OpenQQ.ForeColor = Color.Red Then
OpenQQ.ForeColor = Color.Transparent
Else
OpenQQ.ForeColor = Color.Red
End If
End If
End If
Page = e.Form.Controls("TopicBar1").Pages.Add("消息","消息")
Page.Links.Add("未读消息","今日未读消息(" & cnt1 & ")条" )
Page.Links.Add("已读消息","已读消息(" & cnt2 & ")条" )
这里代码要如何修改,我就简单显示有多少条未读