Files
Open-Shell-Menu/Src/StartMenu/StartMenuDLL/StartButton.h
ge0rdi 04770c403d Windows 11 start menu button support
- handling of `Taskbar alignment` setting (left/center)
  - start menu position is based on position of start button
  - mouse clicks to original button now work properly (without triggering original menu)
  - custom button is properly positioned
  - Win+X works properly
2022-12-06 19:17:18 +01:00

26 lines
797 B
C

// Classic Shell (c) 2009-2017, Ivo Beltchev
// Open-Shell (c) 2017-2018, The Open-Shell Team
// Confidential information of Ivo Beltchev. Not for disclosure or distribution without prior written consent from the author
#pragma once
enum TStartButtonType
{
START_BUTTON_AERO,
START_BUTTON_CLASSIC,
START_BUTTON_CUSTOM,
// START_BUTTON_METRO,
};
HWND CreateStartButton( int taskbarId, HWND taskBar, HWND rebar );
void DestroyStartButton( int taskbarId );
void UpdateStartButton( int taskbarId );
void PressStartButton( int taskbarId, bool bPressed );
TStartButtonType GetStartButtonType( void );
SIZE GetStartButtonSize( int taskbarId );
bool IsStartButtonSmallIcons( int taskbarId );
bool IsTaskbarSmallIcons( void );
void TaskBarMouseMove( int taskbarId );
extern bool g_bAllowMoveButton;