Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ul> <li><a href="http://www.codeproject.com/KB/atl/rbdeskband.aspx?display=PrintAll&amp;select=1659628#xx1659628xx" rel="noreferrer">This CodeProject comment does it by simulating key presses</a></li> <li>Vista+ has API to do this, with <a href="http://msdn.microsoft.com/en-us/library/bb774485(VS.85).aspx" rel="noreferrer">ShowDeskBand</a> and <a href="http://msdn.microsoft.com/en-us/library/bb774482(VS.85).aspx" rel="noreferrer">HideDeskBand</a></li> <li><p>Edit: This code can now Add a deskband object (from Pinvoke.net, and <a href="http://social.msdn.microsoft.com/Forums/en-US/ieextensiondevelopment/thread/c1f93cbf-f5c5-41ec-a57c-c451bd18f444" rel="noreferrer">these</a> <a href="http://social.msdn.microsoft.com/forums/en-US/ieextensiondevelopment/thread/edbfa343-d6aa-43fc-9155-c5f806a65481/" rel="noreferrer">two</a> MSDN forum questions):</p> <pre><code>[ComImport] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] [Guid("4CF504B0-DE96-11D0-8B3F-00A0C911E8E5")] public interface IBandSite { [PreserveSig] uint AddBand([In, MarshalAs(UnmanagedType.IUnknown)] Object pUnkSite); [PreserveSig] void RemoveBand(uint dwBandID); } private uint AddDeskbandToTray(Guid Deskband) { Guid IUnknown = new Guid("{00000000-0000-0000-C000-000000000046}"); Guid ITrayBand = new Guid("{F60AD0A0-E5E1-45cb-B51A-E15B9F8B2934}"); Type TrayBandSiteService = Type.GetTypeFromCLSID(ITrayBand, true); IBandSite BandSite = Activator.CreateInstance(TrayBandSiteService) as IBandSite; object DeskbandObject = CoCreateInstance(Deskband, null, CLSCTX.CLSCTX_INPROC_SERVER, IUnknown); return BandSite.AddBand(DeskbandObject); } </code></pre></li> </ul> <p>And, an example use:</p> <pre><code>Guid address_toolbar_guid = new Guid("{01E04581-4EEE-11D0-BFE9-00AA005B4383}"); uint band_id = AddDeskbandToTray(address_toolbar_guid); </code></pre> <p>It would make sense that a similar call to RemoveBand would also do the trick, but as of yet, I can't get that code to work. Another issue: the added deskband closes when the application that added it closes.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload