summaryrefslogtreecommitdiffstats
path: root/private/nw/convert/nwconv/hierdraw.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/nw/convert/nwconv/hierdraw.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to '')
-rw-r--r--private/nw/convert/nwconv/hierdraw.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/private/nw/convert/nwconv/hierdraw.h b/private/nw/convert/nwconv/hierdraw.h
new file mode 100644
index 000000000..f8007fbee
--- /dev/null
+++ b/private/nw/convert/nwconv/hierdraw.h
@@ -0,0 +1,65 @@
+#define XBMPOFFSET 2
+
+
+typedef struct _HierDrawStruct {
+ HDC hdcMem;
+ HBITMAP hbmIcons;
+ HBITMAP hbmMem;
+ int nBitmapHeight;
+ int nBitmapWidth;
+ int nTextHeight;
+ int nLineHeight;
+ BOOL bLines;
+ int NumOpened;
+ DWORD FAR *Opened;
+
+} HEIRDRAWSTRUCT;
+
+typedef HEIRDRAWSTRUCT FAR * LPHEIRDRAWSTRUCT ;
+
+
+//
+// Interface functions
+//
+VOID HierDraw_DrawTerm(LPHEIRDRAWSTRUCT lpHierDrawStruct);
+
+VOID HierDraw_DrawSetTextHeight (HWND hwnd, HFONT hFont, LPHEIRDRAWSTRUCT lpHierDrawStruct );
+
+BOOL HierDraw_DrawInit(HINSTANCE hInstance,
+ int nBitmap,
+ int nRows,
+ int nColumns,
+ BOOL bLines,
+ LPHEIRDRAWSTRUCT lpHierDrawStruct,
+ BOOL bInit);
+
+
+VOID HierDraw_OnDrawItem(HWND hwnd,
+ const DRAWITEMSTRUCT FAR* lpDrawItem,
+ int nLevel,
+ DWORD dwConnectLevel,
+ TCHAR *szText,
+ int nRow,
+ int nColumn,
+ LPHEIRDRAWSTRUCT lpHierDrawStruct);
+
+
+VOID HierDraw_OnMeasureItem(HWND hwnd, MEASUREITEMSTRUCT FAR* lpMeasureItem,
+ LPHEIRDRAWSTRUCT lpHierDrawStruct);
+
+BOOL HierDraw_IsOpened(LPHEIRDRAWSTRUCT lpHierDrawStruct, DWORD dwData);
+
+VOID HierDraw_OpenItem(LPHEIRDRAWSTRUCT lpHierDrawStruct, DWORD dwData);
+
+VOID HierDraw_CloseItem(LPHEIRDRAWSTRUCT lpHierDrawStruct, DWORD dwData);
+
+VOID HierDraw_DrawCloseAll(LPHEIRDRAWSTRUCT lpHierDrawStruct );
+
+VOID HierDraw_ShowKids(LPHEIRDRAWSTRUCT lpHierDrawStruct,
+ HWND hwndList, WORD wCurrentSelection, WORD wKids);
+
+//
+// Support functions
+//
+static VOID near FastRect(HDC hDC, int x, int y, int cx, int cy);
+static DWORD near RGB2BGR(DWORD rgb);