97 (*g_DeregisterShellHookWindow)(_hwnd);
102 (*g_SetTaskmanWindow)(0);
111 int taskbar_pos = 80;
128 IDW_TASKTOOLBAR, 0, 0, 0,
NULL, 0, 0, 0, 16, 16,
sizeof(
TBBUTTON));
152 (*g_SetTaskmanWindow)(_hwnd);
155 LOG(
TEXT(
"Using shell hooks for notification of shell events."));
157 (*g_RegisterShellHookWindow)(_hwnd);
159 LOG(
TEXT(
"Shell hooks not available."));
212 case HSHELL_WINDOWACTIVATED:
217#ifdef HSHELL_RUDEAPPACTIVATED
288 if (can_restore && !minimize_it)
359 if (allow_from_class) {
391 if (found != pThis->
_map.
end()) {
392 last_id = found->second._id;
395 found->second._id = pThis->
_next_id++;
420 entry._bmp_idx = bmp_idx;
436 if (
hwnd==foreground ||
hwnd==foreground_owner) {
491 it->second._used = 0;
510 if (!btn_idx_to_delete.
empty()) {
551 if (it->second._hbmp ==
hbmp) {
564 if (it->second._id ==
id)
575 int bar_width = ClientRect(_hwnd).right;
576 int btn_width = (bar_width / btns) - 3;
_STLP_TEMPLATE_FOR_CONT_EXT iterator find(const _KT &__x)
_Rep_type::iterator iterator
void erase(iterator __pos)
_Rep_type::reverse_iterator reverse_iterator
pair< iterator, bool > insert(const value_type &__x)
reverse_iterator rbegin()
_Rep_type::iterator iterator
HWND WINAPI CreateToolbarEx(HWND hwnd, DWORD style, UINT wID, INT nBitmaps, HINSTANCE hBMInst, UINT_PTR wBMID, LPCTBBUTTON lpButtons, INT iNumButtons, INT dxButton, INT dyButton, INT dxBitmap, INT dyBitmap, UINT uStructSize)
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
HBITMAP create_bitmap_from_icon(HICON hIcon, HBRUSH hbrush_bkgnd, HDC hdc_wnd)
create a bitmap from an icon
HICON get_window_icon_small(HWND hwnd)
retrieve icon from window
#define WINDOW_CREATOR(WND_CLASS)
UCHAR ab[sizeof("Hello World!") -1]
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
unsigned __int3264 UINT_PTR
#define TBMF_BUTTONSPACING
#define TB_SETBUTTONWIDTH
window class with gray background color
internal task bar button management entry
void ActivateApp(TaskBarMap::iterator it, bool can_minimize=true, bool can_restore=true)
static BOOL CALLBACK EnumWndProc(HWND hwnd, LPARAM lparam)
WindowHandle _last_foreground_wnd
int Command(int id, int code)
LRESULT Init(LPCREATESTRUCT pcs)
void ShowAppSystemMenu(TaskBarMap::iterator it)
MINIMIZEDMETRICS _mmMetrics_org
static HWND Create(HWND hwndParent)
LRESULT WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
int Notify(int id, NMHDR *pnmh)
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 int Command(int id, int code)
virtual LRESULT Init(LPCREATESTRUCT pcs)
virtual int Notify(int id, NMHDR *pnmh)
HICON get_window_icon_big(HWND hwnd, bool allow_from_class)
DynamicFct< BOOL(WINAPI *)(HWND hwnd)> g_SetTaskmanWindow(TEXT("user32"), "SetTaskmanWindow")
DynamicFct< BOOL(WINAPI *)(HWND hwnd)> g_DeregisterShellHookWindow(TEXT("user32"), "DeregisterShellHookWindow")
DynamicFct< BOOL(WINAPI *)(HWND hwnd)> g_RegisterShellHookWindow(TEXT("user32"), "RegisterShellHookWindow")
HICON get_window_icon_small(HWND hwnd)
retrieve icon from window
#define CLASSNAME_TASKBAR
#define TASKBUTTONWIDTH_MIN
#define TASKBUTTONWIDTH_MAX
#define PM_GET_LAST_ACTIVE
#define NOTIFYAREA_WIDTH_DEF
#define DeleteBitmap(hbm)
#define GetWindowExStyle(hwnd)
#define GetWindowStyle(hwnd)
#define SendMessageTimeout
#define HSHELL_RUDEAPPACTIVATED
DWORD WINAPI GetMessagePos(void)
HWND WINAPI GetForegroundWindow(void)
#define HSHELL_WINDOWDESTROYED
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
#define HSHELL_WINDOWCREATED
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
HBRUSH WINAPI GetSysColorBrush(_In_ int)
BOOL WINAPI SetForegroundWindow(_In_ HWND)
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
HMENU WINAPI GetSystemMenu(_In_ HWND, _In_ BOOL)
#define WM_SYSCOLORCHANGE
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
BOOL WINAPI IsIconic(_In_ HWND)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
BOOL WINAPI EnumWindows(_In_ WNDENUMPROC lpEnumFunc, _In_ LPARAM lParam)
#define RegisterWindowMessage
struct tagMINIMIZEDMETRICS MINIMIZEDMETRICS
HWND WINAPI GetParent(_In_ HWND)
HWND WINAPI GetWindow(_In_ HWND, _In_ UINT)
BOOL WINAPI TrackPopupMenu(_In_ HMENU, _In_ UINT, _In_ int, _In_ int, _Reserved_ int, _In_ HWND, _Reserved_ LPCRECT)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
#define SystemParametersInfo
BOOL WINAPI DestroyIcon(_In_ HICON)
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)