00001 /* 00002 * Copyright 2003, 2004, 2005 Martin Fuchs 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 */ 00018 00019 00020 // 00021 // Explorer and Desktop clone 00022 // 00023 // quicklaunch.h 00024 // 00025 // Martin Fuchs, 22.08.2003 00026 // 00027 00028 00029 #define QUICKLAUNCH_WIDTH_DEF 70 00030 #define QUICKLAUNCH_WIDTH_DEF 70 00031 00032 #define IDW_QUICKLAUNCHBAR 101 00033 00034 #define PM_UPDATE_DESKTOP (WM_APP+0x23) 00035 00036 #define IDC_FIRST_QUICK_ID 0x4000 00037 00038 00039 #define QUICKLAUNCH_FOLDER TEXT("Microsoft\\Internet Explorer\\Quick Launch") 00040 00041 00042 /// quick launch bar shortcut 00043 struct QuickLaunchEntry 00044 { 00045 QuickLaunchEntry(); 00046 00047 HBITMAP _hbmp; 00048 String _title; 00049 Entry* _entry; 00050 }; 00051 00052 /// map for managing the task bar buttons 00053 struct QuickLaunchMap : public map<int, QuickLaunchEntry> 00054 { 00055 ~QuickLaunchMap(); 00056 }; 00057 00058 00059 /// quick launch bar window 00060 struct QuickLaunchBar : public ExtContextMenuHandlerT<SubclassedWindow> 00061 { 00062 typedef ExtContextMenuHandlerT<SubclassedWindow> super; 00063 00064 QuickLaunchBar(HWND hwnd); 00065 ~QuickLaunchBar(); 00066 00067 static HWND Create(HWND hwndParent); 00068 00069 protected: 00070 LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam); 00071 int Command(int id, int code); 00072 int Notify(int id, NMHDR* pnmh); 00073 00074 ShellDirectory* _dir; 00075 00076 int _next_id; 00077 QuickLaunchMap _entries; 00078 int _btn_dist; 00079 int _size; 00080 00081 void AddShortcuts(); 00082 void AddButton(int id, HBITMAP hbmp, LPCTSTR name, Entry* entry, int flags=TBSTATE_ENABLED); 00083 void UpdateDesktopButtons(int desktop_idx); 00084 };
ROS Explorer Source Code Documentation
generated on 02.01.2013 by ![]() |