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
);
48 #define LOG(x) if (g_Globals._log) _ftprintf(g_Globals._log, TEXT("%s\n"), (LPCTSTR)(x));
51 /// convenient loading of string resources
52 struct ResString
: public String
57 /// convenient loading of standard (32x32) icon resources
62 operator HICON() const {return _hIcon
;}
68 /// convenient loading of small (16x16) icon resources
73 operator HICON() const {return _hIcon
;}
79 /// convenient loading of icon resources with specified sizes
82 ResIconEx(UINT nid
, int w
, int h
);
84 operator HICON() const {return _hIcon
;}
90 /// set big and small icons out of the resources for a window
91 extern void SetWindowIcon(HWND hwnd
, UINT nid
);
93 /// convenient loading of bitmap resources
97 ~ResBitmap() {DeleteObject(_hBmp
);}
99 operator HBITMAP() const {return _hBmp
;}