2 * Openwide -- control Windows common dialog
4 * Copyright (c) 2000 Luke Hudson
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
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
};
44 CID_DIRLISTPARENT
= 0x461,
49 CMD_2K_LGICONS
= 28713,
50 CMD_2K_SMICONS
= 28714,
52 CMD_2K_DETAILS
= 28716,
53 CMD_2K_THUMBS
= 28721,
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,
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 //
101 DWORD
GetDllVersion(LPCTSTR lpszDllName
);
109 typedef struct OWSharedData
126 } OWSharedData
, *POWSharedData
;
137 #endif // C__Data_Code_C_openwide_openwidedll_proto_h