-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUtil.h
67 lines (67 loc) · 2.12 KB
/
Util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#ifndef __ICE_UTILLIB_H
#define __ICE_UTILLIB_H
//
#pragma once
//
#ifdef __cplusplus
extern "C" {
#endif
//
#include <windows.h>
#include <setupapi.h>
#include <commctrl.h>
#include <stdio.h>
#include <tchar.h>
#include <shellapi.h>
#include <shlobj.h>
//#include "resource.h"
//
#pragma comment(lib, "comctl32.lib")
//
UINT IsListViewClkEvent(const UINT, NMHDR *);
UINT IsListViewDBClkEvent(const UINT, NMHDR *);
void ListViewDeleteItem(HWND hList, const short wItem);
void ListViewGetItemText(HWND, const int, char *);
void ListViewGetSpecItem(HWND, const int, const int, char *);
void ListViewInsertColumnText(HWND, const short, const int, char *, const BOOL);
void ListViewAddColumnImageText(HWND, const UINT, const short, const int, char *, const BOOL);
void ListViewInsertItemText(HWND, const int, const int, char *);
void ListViewSetExtStyle(HWND, const DWORD);
void ListViewSetSelectItem(HWND, const short);
void ListViewRemoveAllItems(HWND);
void ListViewRemoveItem(HWND, const UINT, const int);
void ListViewRemoveColumn(HWND, const UINT, const int);
int ListViewGetItemSelect(HWND);
int ListViewGetItemCount(HWND);
//
HTREEITEM TreeViewInsertRootText(HWND, UINT, HTREEITEM, HTREEITEM, char *);
HTREEITEM TreeViewFindChild(HWND, HTREEITEM, const char *);
HTREEITEM MakeDeviceRootTree(SP_CLASSIMAGELIST_DATA, const UINT);
UINT IsTreeViewClkEvent(const UINT, NMHDR *);
UINT IsTreeViewSelectChanged(const UINT, NMHDR *);
void TreeViewGetSelectText(HWND, NMHDR *, TVITEM *);
void TreeViewExpand(HWND, HTREEITEM, const BOOL);
void TreeViewRemoveAllNodes(HWND, const UINT);
//
void SetOverlayImage(HIMAGELIST, const int, const int);
int GetImageCount(HIMAGELIST);
int ListViewSetImageList(HWND, const int, LPARAM);
//
void ShowErrorMsg(HWND, const DWORD, const char *);
void DisableCloseBox(HWND);
void WaitCursor(const char);
//
BOOL AnsiToUnicode(const char *, const short, wchar_t *, const short);
BOOL UnicodeToAnsi(const wchar_t *, const short, char *, const short);
//
void FindComma(char *);
void StrLTrim(char *);
void StrRTrim(char *);
void StrRight(char *, short);
void ConvertGUIDToString(const GUID, char *);
//
#ifdef __cplusplus
}
#endif
//
#endif