David Hedberg : include: Add INameSpaceTreeControlCustomDraw interface declaration.

Alexandre Julliard julliard at winehq.org
Wed Jul 21 10:55:02 CDT 2010


Module: wine
Branch: master
Commit: 5acb6f0132ef1d62abdab1a78ac91051f06aeffa
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5acb6f0132ef1d62abdab1a78ac91051f06aeffa

Author: David Hedberg <david.hedberg at gmail.com>
Date:   Tue Jul 20 16:39:09 2010 +0200

include: Add INameSpaceTreeControlCustomDraw interface declaration.

---

 include/shobjidl.idl |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/include/shobjidl.idl b/include/shobjidl.idl
index 333c32a..fa6d86d 100644
--- a/include/shobjidl.idl
+++ b/include/shobjidl.idl
@@ -2195,3 +2195,52 @@ interface INameSpaceTreeControlEvents : IUnknown
         [out] int *piDefaultIcon,
         [out] int *piOpenIcon);
 }
+
+cpp_quote("#ifdef MIDL_PASS")
+typedef IUnknown *HIMAGELIST;
+cpp_quote("#endif")
+
+/*****************************************************************************
+ * INameSpaceTreeControlCustomDraw interface
+ */
+[
+ object,
+ uuid(2D3BA758-33EE-42D5-BB7B-5F3431D86C78),
+ local
+]
+
+interface INameSpaceTreeControlCustomDraw : IUnknown
+{
+    typedef struct NSTCCUSTOMDRAW
+    {
+        IShellItem *psi;
+        UINT uItemState;
+        NSTCITEMSTATE nstcis;
+        LPCWSTR pszText;
+        int iImage;
+        HIMAGELIST himl;
+        int iLevel;
+        int iIndent;
+    } NSTCCUSTOMDRAW;
+
+    HRESULT PrePaint(
+        [in] HDC hdc,
+        [in] RECT *prc,
+        [out] LRESULT *plres);
+
+    HRESULT PostPaint(
+        [in] HDC hdc,
+        [in] RECT *prc);
+
+    HRESULT ItemPrePaint(
+        [in] HDC hdc,
+        [in] RECT *prc,
+        [in, out] COLORREF *pclrText,
+        [in, out] COLORREF *pclrTextBk,
+        [out] LRESULT *plres);
+
+    HRESULT ItemPostPaint(
+        [in] HDC hdc,
+        [in] RECT *prc,
+        [in] NSTCCUSTOMDRAW *pnstccdItem);
+}




More information about the wine-cvs mailing list