Select to view content in your preferred language

IApplicationRefreshBitmap, where to get this?

606
1
07-06-2011 01:18 PM
PrestonMcCormick
Occasional Contributor
I'm trying to get hold of the IApplicationRefreshBitmap interface to force the refresh of a command item's iconin ArcGIS 10, but I cannot figure out what class implements it.
0 Kudos
1 Reply
HusseinNasser
Deactivated User
i'm having the same issue here,

first ESRI mention this in small font at the bottom of a page that they changed the refresh mechanism and commands no longer refreshed automatically.. so they said use IApplicationRefreshBitmap.RefreshBitmap interface which has no class

I even tried to implemnet IApplicationRefreshBitmap in my command figured that ArcMap will detect it and refreshes it but no lock..

a small example will be nice guys you need to work on your documentation and resources it is very poor.

I end up using this method to refresh the bitmap

        Dim uid As ESRI.ArcGIS.esriSystem.UID = New UIDClass
        uid.Value = "Project.Command1"
  Dim pCMD As ICommandItem = m_application.Document.CommandBars.Find(uid)
        If _current = 0 Then
            MyBase.m_bitmap = _statuslive
            _current = 1
            pCMD.FaceID = ESRI.ArcGIS.ADF.COMSupport.OLE.GetIPictureDispFromBitmap(_statuslive)
        Else
            MyBase.m_bitmap = _statusproposed
            _current = 0
            pCMD.FaceID = ESRI.ArcGIS.ADF.COMSupport.OLE.GetIPictureDispFromBitmap(_statusproposed)
        End If

        pCMD.Caption = NetworkStatus
        pCMD.Tooltip = NetworkStatus 
0 Kudos