2 * Copyright 2003 Martin Fuchs
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 // Martin Fuchs, 23.07.2003
29 /// structure containing global variable of Explorer
30 extern struct ExplorerGlobals
43 #ifndef __MINGW32__ // SHRestricted() missing in MinGW (as of 29.10.2003)
44 DWORD(STDAPICALLTYPE
* _SHRestricted
)(RESTRICTIONS
);
52 if (g_Globals._log) _ftprintf(g_Globals._log, TEXT("%s\n"), (LPCTSTR)(x)); \
53 OutputDebugString(FmtString(TEXT("%s\n"), (LPCTSTR)(x))); \
57 /// convenient loading of string resources
58 struct ResString
: public String
63 /// convenient loading of standard (32x32) icon resources
68 operator HICON() const {return _hIcon
;}
74 /// convenient loading of small (16x16) icon resources
79 operator HICON() const {return _hIcon
;}
85 /// convenient loading of icon resources with specified sizes
88 ResIconEx(UINT nid
, int w
, int h
);
90 operator HICON() const {return _hIcon
;}
96 /// set big and small icons out of the resources for a window
97 extern void SetWindowIcon(HWND hwnd
, UINT nid
);
99 /// convenient loading of bitmap resources
103 ~ResBitmap() {DeleteObject(_hBmp
);}
105 operator HBITMAP() const {return _hBmp
;}