Added icons/ dir to repo
[openwide.git] / openwidedll.h
blobc8e78a0cf669b6dfd9eb4a0383f871e169d84473
1 /*
2 * Openwide -- control Windows common dialog
3 *
4 * Copyright (c) 2000 Luke Hudson
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #ifndef C__Data_Code_C_openwide_openwidedll_proto_h_H
24 #define C__Data_Code_C_openwide_openwidedll_proto_h_H
25 #pragma once
27 #include <windows.h>
29 #define DLLEXPORT __declspec(dllexport)
31 // Different view and focus options for the Open/Save dialogs
32 enum ViewMode {V_LGICONS, V_SMICONS, V_LIST, V_DETAILS, V_THUMBS, V_TILES, V_MAX};
34 enum FocusMode {F_DIRLIST, F_FNAME, F_FTYPE, F_PLACES, F_LOOKIN, F_MAX};
36 enum CtrlIDs2k
38 CID_DIRLIST = 0x1,
39 CID_TOOLBAR = 0x1,
40 CID_FNAME = 0x47C,
41 CID_FTYPE = 0x470,
42 CID_PLACES = 0x4A0,
43 CID_LOOKIN = 0x471,
44 CID_DIRLISTPARENT = 0x461,
47 enum CommandIDs2k
49 CMD_2K_LGICONS = 28713,
50 CMD_2K_SMICONS = 28714,
51 CMD_2K_LIST = 28715,
52 CMD_2K_DETAILS = 28716,
53 CMD_2K_THUMBS = 28721,
56 enum CommandIDsXP
58 CMD_XP_DETAILS = CMD_2K_DETAILS,//30978,
59 CMD_XP_LIST = CMD_2K_LIST,//30979,
60 CMD_XP_LGICONS = CMD_2K_LGICONS,//30980,
61 CMD_XP_TILES = 28718,//30981,
62 CMD_XP_THUMBS = 28717,//30982,
66 enum OW_COMMANDS {
67 OW_ABOUT_CMDID = 0x1010,
68 OW_EXPLORE_CMDID = 0x1020,
69 OW_TBUTTON_CMDID = 0x1030,
70 OW_ADDFAV_CMDID = 0x1040,
71 OW_FAVOURITE_CMDID = 0x1050,
72 OW_SHOWDESK_CMDID = 0x1060,
75 #define PACKVERSION(major,minor) MAKELONG(minor,major)
77 #define OW_MATCH_STYLE 0x82CC20C4
78 #define OW_MATCH_EXSTYLE 0x00010501
80 #define OW_SHARED_FILE_MAPPING ("openwidedll_shared_memfile")
81 #define OW_MUTEX_NAME ("openwidedll_mem_mutex")
82 #define OW_PROP_NAME ("openwidedll_window_property")
83 #define OW_OVERLAY_CLASS ("openwidedll_overlay_window_class")
85 #define OW_REGKEY_NAME ("Software\\Lingo\\OpenWide")
86 #define OW_REGKEY_EXCLUDES_NAME ("Software\\Lingo\\OpenWide\\Excludes")
88 #define OW_2K_MINWIDTH 565
89 #define OW_2K_MINHEIGHT 349
91 #define OW_XP_MINWIDTH 563
92 #define OW_XP_MINHEIGHT 419
94 #define OW_LISTVIEW_STYLE (LVS_EX_FULLROWSELECT)
97 // functions from file C:\Data\Code\C\openwide\openwidedll.c //
98 int rmvHook(void);
99 int setHook(void);
101 DWORD GetDllVersion(LPCTSTR lpszDllName);
102 BOOL isWinXP(void);
109 typedef struct OWSharedData
111 HWND hwListener;
112 POINT ptOrg;
113 SIZE szDim;
115 int iView;
116 int iFocus;
118 BOOL bStartMin : 1;
119 BOOL bDisable : 1;
120 BOOL bShowIcon : 1;
121 BOOL bPadding : 29;
123 // HHOOK hHook;
124 int refCount;
125 int iCloseMsg;
126 } OWSharedData, *POWSharedData;
137 #endif // C__Data_Code_C_openwide_openwidedll_proto_h