Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Clipz - A Friendly Introduction to the Windows 7 Taskbar Features

, 17 Dec 2009
An overview of the Windows 7 taskbar features, and how to use then in your own applications.
Clipz.zip
Clipz
bin
Debug
Clipz.csproj.user
CopyIcon.ico
DeleteIcon.ico
Model
Native Methods
Properties
Settings.settings
Resources
Audio.png
Clipboard.png
NextIcon.ico
PreviousIcon.ico
Utility
Core
AppRestartRecovery
Dialogs
Common
TaskDialogs
Interop
AppRestartRecovery
Dialogs
NetworkList
PowerManagement
TaskDialogs
NetworkList
PowerManagement
Properties
PropertySystem
SafeHandles
Libraries
StructureMap.dll
Shell
Common
CommonFileDialogs
Controls
Design
ShellObjects.cd
ShellThumbnailClassDiagram.cd
DesktopWindowManager
ExplorerBrowser
ExplorerBrowserDiagram.cd
Interop
Common
Dialogs
ExplorerBrowser
KnownFolders
PropertySystem
StockIcons
Taskbar
KnownFolders
Properties
PropertySystem
StockIcons
Taskbar
//Copyright (c) Microsoft Corporation.  All rights reserved.

using System;

namespace Microsoft.WindowsAPICodePack.Controls
{
    /// <summary>
    /// Indicates the viewing mode of the explorer browser
    /// </summary>
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1008:EnumsShouldHaveZeroValue", Justification = "This is following the native API")]
    public enum ExplorerBrowserViewMode
    {
        /// <summary>
        /// Choose the best view mode for the folder
        /// </summary>
        Auto = -1,

        /// <summary>
        /// (New for Windows7)
        /// </summary>
        Content = 8,

        /// <summary>
        /// Object names and other selected information, such as the size or date last updated, are shown.
        /// </summary>
        Details = 4,

        /// <summary>
        /// The view should display medium-size icons.
        /// </summary>
        Icon = 1,

        /// <summary>
        /// Object names are displayed in a list view.
        /// </summary>
        List = 3,

        /// <summary>
        /// The view should display small icons. 
        /// </summary>
        SmallIcon = 2,

        /// <summary>
        /// The view should display thumbnail icons. 
        /// </summary>
        Thumbnail = 5,

        /// <summary>
        /// The view should display icons in a filmstrip format.
        /// </summary>
        ThumbStrip = 7,

            /// <summary>
        /// The view should display large icons. 
        /// </summary>
        Tile = 6
    }

    /// <summary>
    /// Specifies the options that control subsequent navigation.
    /// Typically use one, or a bitwise combination of these
    /// flags to specify how the explorer browser navigates.
    /// </summary>
    [Flags]
    public enum ExplorerBrowserNavigationFlags
    {
        /// <summary>
        /// Always navigate, even if you are attempting to navigate to the current folder.
        /// </summary>
        AlwaysNavigate = 0x00000004,

        /// <summary>
        /// Do not navigate further than the initial navigation.
        /// </summary>
        NavigateOnce = 0x00000001,
    }

    /// <summary>
    /// Indicates the content options of the explorer browser.
    /// Typically use one, or a bitwise combination of these
    /// flags to specify how conent should appear in the
    /// explorer browser control
    /// </summary>
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2217:DoNotMarkEnumsWithFlags", Justification = "This is following the native API"), Flags]
    public enum ExplorerBrowserContentFlags : uint
    {
        /// <summary>
        /// The view should be left-aligned. 
        /// </summary>
        AlignLeft = 0x00000800,
        /// <summary>
        /// Automatically arrange the elements in the view. 
        /// </summary>
        AutoArrange = 0x00000001,
        /// <summary>
        /// Turns on check mode for the view
        /// </summary>
        CheckSelect = 0x08040000,
        /// <summary>
        /// When the view is set to "Tile" the layout of a single item should be extended to the width of the view.
        /// </summary>
        ExtendedTiles = 0x02000000,
        /// <summary>
        /// When an item is selected, the item and all its sub-items are highlighted.
        /// </summary>
        FullRowSelect = 0x00200000,
        /// <summary>
        /// The view should not display file names
        /// </summary>
        HideFileNames = 0x00020000,
        /// <summary>
        /// The view should not save view state in the browser.
        /// </summary>
        NoBrowserViewState = 0x10000000,
        /// <summary>
        /// Do not display a column header in the view in any view mode.
        /// </summary>
        NoColumnHeader = 0x00800000,
        /// <summary>
        /// Only show the column header in details view mode.
        /// </summary>
        NoHeaderInAllViews = 0x01000000,
        /// <summary>
        /// The view should not display icons. 
        /// </summary>
        NoIcons = 0x00001000,
        /// <summary>
        /// Do not show subfolders. 
        /// </summary>
        NoSubfolders = 0x00000080,
        /// <summary>
        /// Navigate with a single click
        /// </summary>
        SingleClickActivate = 0x00008000,
        /// <summary>
        /// Do not allow more than a single item to be selected.
        /// </summary>
        SingleSelection = 0x00000040,
    }

    /// <summary>
    /// Indicates the visibility state of an ExplorerBrowser pane
    /// </summary>
    public enum PaneVisibilityState
    {
        /// <summary>
        /// Allow the explorer browser to determine if this pane is displayed.
        /// </summary>
        DontCare,
        /// <summary>
        /// Hide the pane
        /// </summary>
        Hide,
        /// <summary>
        /// Show the pane
        /// </summary>
        Show
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

TylerBrinks
Web Developer PageLabs
United States United States
I'm the founder of PageLabs, a web-based performance and SEO optimization site.

Give your site a boost in performance, even take a free speed test!
 
http://www.pagelabs.com
Follow on   Twitter

| Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 17 Dec 2009
Article Copyright 2009 by TylerBrinks
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid