ReactOS
0.4.16-dev-125-g798ea90
quicklaunch.h
Go to the documentation of this file.
1
/*
2
* Copyright 2003, 2004, 2005 Martin Fuchs
3
*
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.
8
*
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.
13
*
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
19
20
//
21
// Explorer and Desktop clone
22
//
23
// quicklaunch.h
24
//
25
// Martin Fuchs, 22.08.2003
26
//
27
28
29
#define QUICKLAUNCH_WIDTH_DEF 70
30
#define QUICKLAUNCH_WIDTH_DEF 70
31
32
#define IDW_QUICKLAUNCHBAR 101
33
34
#define PM_UPDATE_DESKTOP (WM_APP+0x23)
35
36
#define IDC_FIRST_QUICK_ID 0x4000
37
38
39
#define QUICKLAUNCH_FOLDER TEXT("Microsoft\\Internet Explorer\\Quick Launch"
)
40
41
43
struct
QuickLaunchEntry
44
{
45
QuickLaunchEntry
();
46
47
HBITMAP
_hbmp
;
48
String
_title
;
49
Entry
*
_entry
;
50
};
51
53
struct
QuickLaunchMap
:
public
map
<int, QuickLaunchEntry>
54
{
55
~QuickLaunchMap
();
56
};
57
58
60
struct
QuickLaunchBar
:
public
ExtContextMenuHandlerT
<SubclassedWindow>
61
{
62
typedef
ExtContextMenuHandlerT<SubclassedWindow>
super
;
63
64
QuickLaunchBar
(
HWND
hwnd
);
65
~QuickLaunchBar
();
66
67
static
HWND
Create
(
HWND
hwndParent
);
68
69
protected
:
70
LRESULT
WndProc
(
UINT
nmsg,
WPARAM
wparam
,
LPARAM
lparam
);
71
int
Command
(
int
id
,
int
code
);
72
int
Notify
(
int
id
,
NMHDR
* pnmh);
73
74
ShellDirectory
*
_dir
;
75
76
int
_next_id
;
77
QuickLaunchMap
_entries
;
78
int
_btn_dist
;
79
int
_size
;
80
81
void
AddShortcuts
();
82
void
AddButton
(
int
id
,
HBITMAP
hbmp
,
LPCTSTR
name
,
Entry
*
entry
,
int
flags
=
TBSTATE_ENABLED
);
83
void
UpdateDesktopButtons
(
int
desktop_idx);
84
};
lparam
@ lparam
Definition:
SystemMenu.c:31
wparam
@ wparam
Definition:
SystemMenu.c:30
Create
@ Create
Definition:
registry.c:563
hbmp
HBITMAP hbmp
Definition:
buttonvistest.cpp:10
map
Definition:
_map.h:48
hwndParent
static HWND hwndParent
Definition:
cryptui.c:300
flags
GLbitfield flags
Definition:
glext.h:7161
void
Definition:
nsiface.idl:2307
entry
uint32_t entry
Definition:
isohybrid.c:63
HBITMAP
static HBITMAP
Definition:
button.c:44
UINT
unsigned int UINT
Definition:
ndis.h:50
TBSTATE_ENABLED
#define TBSTATE_ENABLED
Definition:
commctrl.h:974
Command
Definition:
shell.h:41
Entry
base of all file and directory entries
Definition:
entries.h:83
ExtContextMenuHandlerT
Definition:
shellclasses.h:1122
QuickLaunchBar
quick launch bar window
Definition:
quicklaunch.h:61
QuickLaunchBar::~QuickLaunchBar
~QuickLaunchBar()
Definition:
quicklaunch.cpp:67
QuickLaunchBar::AddShortcuts
void AddShortcuts()
Definition:
quicklaunch.cpp:90
QuickLaunchBar::UpdateDesktopButtons
void UpdateDesktopButtons(int desktop_idx)
Definition:
quicklaunch.cpp:195
QuickLaunchBar::_dir
ShellDirectory * _dir
Definition:
quicklaunch.h:74
QuickLaunchBar::_size
int _size
Definition:
quicklaunch.h:79
QuickLaunchBar::Notify
int Notify(int id, NMHDR *pnmh)
Definition:
quicklaunch.cpp:282
QuickLaunchBar::_btn_dist
int _btn_dist
Definition:
quicklaunch.h:78
QuickLaunchBar::super
ExtContextMenuHandlerT< SubclassedWindow > super
Definition:
quicklaunch.h:62
QuickLaunchBar::_next_id
int _next_id
Definition:
quicklaunch.h:76
QuickLaunchBar::_entries
QuickLaunchMap _entries
Definition:
quicklaunch.h:77
QuickLaunchBar::AddButton
void AddButton(int id, HBITMAP hbmp, LPCTSTR name, Entry *entry, int flags=TBSTATE_ENABLED)
Definition:
quicklaunch.cpp:174
QuickLaunchBar::WndProc
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
Definition:
quicklaunch.cpp:204
QuickLaunchEntry
quick launch bar shortcut
Definition:
quicklaunch.h:44
QuickLaunchEntry::_title
String _title
Definition:
quicklaunch.h:48
QuickLaunchEntry::QuickLaunchEntry
QuickLaunchEntry()
Definition:
quicklaunch.cpp:34
QuickLaunchEntry::_entry
Entry * _entry
Definition:
quicklaunch.h:49
QuickLaunchEntry::_hbmp
HBITMAP _hbmp
Definition:
quicklaunch.h:47
QuickLaunchMap
map for managing the task bar buttons
Definition:
quicklaunch.h:54
QuickLaunchMap::~QuickLaunchMap
~QuickLaunchMap()
Definition:
quicklaunch.cpp:39
ShellDirectory
shell folder entry
Definition:
shellfs.h:54
code
Definition:
inflate.c:139
name
Definition:
name.c:39
tagNMHDR
Definition:
winuser.h:3159
String
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition:
wdfdevice.h:2433
hwnd
_In_ LONG _In_ HWND hwnd
Definition:
winddi.h:4023
LPARAM
LONG_PTR LPARAM
Definition:
windef.h:208
LRESULT
LONG_PTR LRESULT
Definition:
windef.h:209
WPARAM
UINT_PTR WPARAM
Definition:
windef.h:207
LPCTSTR
const CHAR * LPCTSTR
Definition:
xmlstorage.h:193
modules
rosapps
applications
explorer-old
taskbar
quicklaunch.h
Generated on Mon Oct 14 2024 06:06:11 for ReactOS by
1.9.6