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;
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;
559void DesktopBar::AddTrayIcons()
564void DesktopBar::TrayClick(
UINT id,
int btn)
579void DesktopBar::TrayDblClick(
UINT id,
int btn)
#define TITLE_EXPLORERBAR
#define CLASSNAME_EXPLORERBAR
#define DESKTOPBARBAR_HEIGHT
#define PM_REFRESH_CONFIG
#define PM_RESIZE_CHILDREN
void ShowExitWindowsDialog(HWND hwndOwner)
void ExplorerPropertySheet(HWND hparent)
void SetWindowIcon(HWND hwnd, UINT nid)
set big and small icons out of the resources for a window
ExplorerGlobals g_Globals
void explorer_show_frame(int cmdShow, LPTSTR lpCmdLine)
void explorer_about(HWND hwndParent)
#define STARTMENUROOT_ICON_SIZE
#define ID_ABOUT_EXPLORER
#define ID_DESKTOPBAR_SETTINGS
#define ID_SWITCH_DESKTOP_1
#define ID_VOLUME_PROPERTIES
BOOL launch_cpanel(HWND hwnd, LPCTSTR applet)
BOOL launch_file(HWND hwnd, LPCTSTR cmd, UINT nCmdShow, LPCTSTR parameters)
#define GET_WINDOW(CLASS, hwnd)
#define WINDOW_CREATOR(WND_CLASS)
#define WINMSG_TASKBARCREATED
_Out_opt_ int _Out_opt_ int * cy
#define CCS_NOPARENTALIGN
#define RBBS_GRIPPERALWAYS
#define RBBS_VARIABLEHEIGHT
#define PM_UPDATE_DESKTOP
#define IDW_QUICKLAUNCHBAR
@ REST_NOTRAYITEMSDISPLAY
DWORD WINAPI SHRestricted(RESTRICTIONS rest)
window class with gray background color
desktop bar window, also known as "system tray"
void Resize(int cx, int cy)
const UINT WM_TASKBARCREATED
int Notify(int id, NMHDR *pnmh)
WindowHandle _hwndQuickLaunch
void ShowOrHideStartMenu()
LRESULT Init(LPCREATESTRUCT pcs)
WindowHandle _hwndTaskBar
void ControlResize(WPARAM wparam, LPARAM lparam)
WindowHandle _hwndStartButton
int Command(int id, int code)
struct StartMenuRoot * _startMenuRoot
void ProcessHotKey(int id_hotkey)
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
LRESULT ProcessCopyData(COPYDATASTRUCT *pcd)
void SwitchToDesktop(int idx)
void ToggleMinimize()
minimize/restore all windows on the desktop
tray notification area aka "tray"
static HWND Create(HWND hwndParent)
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
static HWND Create(HWND hwndParent)
convenient loading of string resources
convenient loading of small (16x16) icon resources
static HWND Create(HWND hwndParent)
copy data structure for tray notifications
NOTIFYICONDATA nicon_data
virtual LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
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)
virtual LRESULT Init(LPCREATESTRUCT pcs)
#define PM_GET_LAST_ACTIVE
#define PM_GET_NOTIFYAREA
#define Button_GetState(hwndCtl)
#define Button_SetState(hwndCtl, state)
#define SetWindowFont(hwnd, hfont, fRedraw)
HWND WINAPI SetCapture(_In_ HWND hWnd)
BOOL WINAPI ReleaseCapture(void)
BOOL WINAPI SetMenuDefaultItem(_In_ HMENU, _In_ UINT, _In_ UINT)
DWORD WINAPI GetMessagePos(void)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
HBRUSH WINAPI GetSysColorBrush(_In_ int)
HWND WINAPI GetCapture(void)
BOOL WINAPI EndDeferWindowPos(_In_ HDWP)
#define WM_SYSCOLORCHANGE
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
#define WS_EX_PALETTEWINDOW
BOOL WINAPI RegisterHotKey(_In_opt_ HWND, _In_ int, _In_ UINT, _In_ UINT)
#define RegisterWindowMessage
HWND WINAPI GetParent(_In_ HWND)
HWND WINAPI WindowFromPoint(_In_ POINT)
int WINAPI GetDlgCtrlID(_In_ HWND)
HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
#define SystemParametersInfo
int WINAPI GetSystemMetrics(_In_ int)
HDWP WINAPI BeginDeferWindowPos(_In_ int)
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)