ReactOS  0.4.14-dev-49-gfb4591c
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 
44 {
46 
50 };
51 
53 struct QuickLaunchMap : public map<int, QuickLaunchEntry>
54 {
56 };
57 
58 
60 struct QuickLaunchBar : public ExtContextMenuHandlerT<SubclassedWindow>
61 {
63 
66 
67  static HWND Create(HWND hwndParent);
68 
69 protected:
71  int Command(int id, int code);
72  int Notify(int id, NMHDR* pnmh);
73 
75 
76  int _next_id;
78  int _btn_dist;
79  int _size;
80 
81  void AddShortcuts();
83  void UpdateDesktopButtons(int desktop_idx);
84 };
QuickLaunchBar(HWND hwnd)
Definition: quicklaunch.cpp:49
quick launch bar window
Definition: quicklaunch.h:60
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
int Notify(int id, NMHDR *pnmh)
void AddButton(int id, HBITMAP hbmp, LPCTSTR name, Entry *entry, int flags=TBSTATE_ENABLED)
void AddShortcuts()
Definition: quicklaunch.cpp:90
shell folder entry
Definition: shellfs.h:53
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
static WCHAR String[]
Definition: stringtable.c:55
UINT_PTR WPARAM
Definition: windef.h:207
ShellDirectory * _dir
Definition: quicklaunch.h:74
static HWND Create(HWND hwndParent)
Definition: quicklaunch.cpp:72
static UINT WPARAM LPARAM lparam
Definition: combo.c:716
static HWND hwndParent
Definition: cryptui.c:300
LONG_PTR LPARAM
Definition: windef.h:208
int Command(int id, int code)
HBITMAP hbmp
map for managing the task bar buttons
Definition: quicklaunch.h:53
QuickLaunchMap _entries
Definition: quicklaunch.h:77
Definition: _map.h:44
GLbitfield flags
Definition: glext.h:7161
ExtContextMenuHandlerT< SubclassedWindow > super
Definition: quicklaunch.h:62
uint32_t entry
Definition: isohybrid.c:63
unsigned int UINT
Definition: ndis.h:50
Definition: name.c:36
#define TBSTATE_ENABLED
Definition: commctrl.h:946
static HBITMAP
Definition: button.c:44
void UpdateDesktopButtons(int desktop_idx)
LONG_PTR LRESULT
Definition: windef.h:209
base of all file and directory entries
Definition: entries.h:82
static UINT WPARAM wparam
Definition: combo.c:716
quick launch bar shortcut
Definition: quicklaunch.h:43