Click here to Skip to main content
15,881,423 members
Articles / Desktop Programming / Win32

.NET Shell Extensions - Shell Info Tip Handlers

Rate me:
Please Sign up or sign in to vote.
4.90/5 (16 votes)
5 Apr 2013CPOL7 min read 54.3K   2K   43  
Rapidly create Shell Info Tip Extensions using .NET
using System;
using System.Runtime.InteropServices;

namespace SharpShell.Interop
{
    [StructLayout(LayoutKind.Sequential)]
    public struct PROPSHEETPAGE
    {
        public int dwSize;
        public PSP dwFlags;
        public IntPtr hInstance;
        public IntPtr pTemplate;
        public IntPtr hIcon;
        public string pszTitle;
        public DialogProc pfnDlgProc;
        public IntPtr lParam;

        public PropSheetCallback pfnCallback;

        public int pcRefParent;
        public string pszHeaderTitle;
        public string pszHeaderSubTitle;
    }

    [Flags]
    internal enum PSH : uint
    {
        PSH_DEFAULT = 0x00000000,
        PSH_AEROWIZARD = 0x00004000,
        PSH_HASHELP = 0x00000200,
        PSH_HEADER = 0x00080000,
        PSH_HEADERBITMAP = 0x08000000,
        PSH_MODELESS = 0x00000400,
        PSH_NOAPPLYNOW = 0x00000080,
        PSH_NOCONTEXTHELP = 0x02000000,
        PSH_NOMARGIN = 0x10000000,
        PSH_PROPSHEETPAGE = 0x00000008,
        PSH_PROPTITLE = 0x00000001,
        PSH_RESIZABLE = 0x04000000,
        PSH_RTLREADING = 0x00000800,
        PSH_STRETCHWATERMARK = 0x00000008,
        PSH_USECALLBACK = 0x00040000,
        PSH_USEHBMHEADER = 0x00100000,
        PSH_USEHBMWATERMARK = 0x00010000,
        PSH_USEHICON = 0x00000002,
        PSH_USEHPLWATERMARK = 0x00020000,
        PSH_USEICONID = 0x00000004,
        PSH_USEPAGELANG = 0x00200000,
        PSH_USEPSTARTPAGE = 0x00000040,
        PSH_WATERMARK = 0x00008000,
        PSH_WIZARD = 0x00000020,
        PSH_WIZARD97 = 0x00002000,
        PSH_WIZARDCONTEXTHELP = 0x00001000,
        PSH_WIZARDHASFINISH = 0x00000010,
        PSH_WIZARD_LITE = 0x00400000
    }
}

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)


Written By
Software Developer
United Kingdom United Kingdom
Follow my blog at www.dwmkerr.com and find out about my charity at www.childrenshomesnepal.org.

Comments and Discussions