37 #include "../dialogs/settings.h" 93 WindowCanvas canvas(_hwnd);
97 int start_btn_width =
rect.right+16+8;
140 rbBand.cyMaxChild = (
ULONG)-1;
145 TCHAR QuickLaunchBand[] =
_T(
"Quicklaunch");
146 rbBand.lpText = QuickLaunchBand;
149 rbBand.cxMinChild = 150;
153 TCHAR TaskbarBand[] =
_T(
"Taskbar");
154 rbBand.lpText = TaskbarBand;
157 rbBand.cxMinChild = 50;
284 #ifdef TASKBAR_AT_TOP 297 #ifdef TASKBAR_AT_TOP 318 ClientRect
size(_hwnd);
339 menu.TrackPopupMenu(_hwnd,
p);
419 WindowRect
rect(_hwnd);
521 return notify_area->ProcessTrayNotification(
ptr->notify_code, &
ptr->nicon_data);
542 if (dragRect->
top < screenHeight / 2)
544 else if (dragRect->
top > screenHeight - 5)
545 dragRect->
top = screenHeight - 5;
559 void DesktopBar::AddTrayIcons()
564 void DesktopBar::TrayClick(
UINT id,
int btn)
579 void DesktopBar::TrayDblClick(
UINT id,
int btn)
#define WINDOW_CREATOR(WND_CLASS)
#define WM_SYSCOLORCHANGE
WindowHandle _hwndStartButton
HDWP WINAPI BeginDeferWindowPos(_In_ int)
BOOL launch_file(HWND hwnd, LPCTSTR cmd, UINT nCmdShow, LPCTSTR parameters)
void explorer_show_frame(int cmdShow, LPTSTR lpCmdLine)
#define PM_UPDATE_DESKTOP
void ExplorerPropertySheet(HWND hparent)
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
#define WS_EX_PALETTEWINDOW
#define ID_DESKTOPBAR_SETTINGS
virtual LRESULT Init(LPCREATESTRUCT pcs)
#define PM_REFRESH_CONFIG
#define SetWindowFont(hwnd, hfont, fRedraw)
#define SystemParametersInfo
#define ID_VOLUME_PROPERTIES
void ProcessHotKey(int id_hotkey)
static HWND Create(HWND hwndParent)
DWORD WINAPI GetMessagePos(void)
int Notify(int id, NMHDR *pnmh)
void ShowOrHideStartMenu()
#define Button_GetState(hwndCtl)
struct StartMenuRoot * _startMenuRoot
void explorer_about(HWND hwndParent)
WindowHandle _hwndQuickLaunch
int WINAPI GetDlgCtrlID(_In_ HWND)
static HWND Create(HWND hwndParent)
static UINT WPARAM LPARAM lparam
BOOL launch_cpanel(HWND hwnd, LPCTSTR applet)
BOOL WINAPI EndDeferWindowPos(_In_ HDWP)
HWND WINAPI GetCapture(void)
#define WINMSG_TASKBARCREATED
_Out_opt_ int _Out_opt_ int * cy
WindowHandle _hwndTaskBar
#define CCS_NOPARENTALIGN
#define Button_SetState(hwndCtl, state)
static HWND Create(CREATORFUNC creator, DWORD dwExStyle, LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle, int x, int y, int w, int h, HWND hwndParent=0, HMENU hMenu=0)
#define RBBS_VARIABLEHEIGHT
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
#define IDW_QUICKLAUNCHBAR
#define PM_GET_NOTIFYAREA
convenient loading of small (16x16) icon resources
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
#define PM_RESIZE_CHILDREN
HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
window class with gray background color
int WINAPI GetSystemMetrics(_In_ int)
tray notification area aka "tray"
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
void Resize(int cx, int cy)
ExplorerGlobals g_Globals
int Command(int id, int code)
#define PM_GET_LAST_ACTIVE
void ToggleMinimize()
minimize/restore all windows on the desktop
#define RegisterWindowMessage
void SetWindowIcon(HWND hwnd, UINT nid)
set big and small icons out of the resources for a window
HWND WINAPI GetParent(_In_ HWND)
HWND WINAPI SetCapture(_In_ HWND hWnd)
static HWND Create(HWND hwndParent)
#define GET_WINDOW(CLASS, hwnd)
#define DESKTOPBARBAR_HEIGHT
#define CLASSNAME_EXPLORERBAR
#define ID_ABOUT_EXPLORER
LRESULT ProcessCopyData(COPYDATASTRUCT *pcd)
desktop bar window, also known as "system tray"
#define STARTMENUROOT_ICON_SIZE
void ControlResize(WPARAM wparam, LPARAM lparam)
HWND WINAPI WindowFromPoint(_In_ POINT)
BOOL WINAPI SetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT)
#define RBBS_GRIPPERALWAYS
BOOL WINAPI ReleaseCapture(void)
NOTIFYICONDATA nicon_data
void SwitchToDesktop(int idx)
const UINT WM_TASKBARCREATED
BOOL WINAPI RegisterHotKey(_In_opt_ HWND, _In_ int, _In_ UINT, _In_ UINT)
copy data structure for tray notifications
convenient loading of string resources
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)
HBRUSH WINAPI GetSysColorBrush(_In_ int)
DWORD WINAPI SHRestricted(RESTRICTIONS policy)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
LRESULT Init(LPCREATESTRUCT pcs)
#define ID_SWITCH_DESKTOP_1
void ShowExitWindowsDialog(HWND hwndOwner)
static UINT WPARAM wparam
#define TITLE_EXPLORERBAR