Skip to content

Add Windows WindowTaskbar API - #106

Merged
lijy91 merged 1 commit into
mainfrom
feat/windows-taskbar-issue-62
Nov 30, 2026
Merged

lijy91 merged 1 commit into
mainfrom
feat/windows-taskbar-issue-62

Conversation

@lijy91

@lijy91 lijy91 commented Nov 30, 2026

Copy link
Copy Markdown
Member

Implements the Windows taskbar API for libnativeapi/nativeapi#62.

Changes

  • Added Window::GetTaskbar() returning a per-window WindowTaskbar controller (IdTypeTag 28) and TaskbarThumbnailButton (IdTypeTag 29) with TaskbarThumbnailButtonClickedEvent.
  • Added Windows implementation (ITaskbarList3 + FlashWindowEx) in src/platform/windows/window_taskbar_windows.{h,cpp}:
    • Progress indicator (SetProgressState / GetProgressState, SetProgressValue / GetProgressValue) preserving Paused/Error across value updates.
    • Overlay icon (SetOverlayIcon / GetOverlayIcon / GetOverlayIconDescription).
    • Thumbnail toolbar buttons (Add/Insert/Remove*/Clear/Get*, up to 7 buttons), with ThumbBarAddButtons → E_INVALIDARG → ThumbBarUpdateButtons fallback and TaskbarButtonCreated replay to handle window hide/restore and Explorer restarts.
    • Window flashing (StartFlashing / StopFlashing with TaskbarFlashOptions).
    • Shared per-HWND taskbar state with Application::SetProgressBar and Application::SetBadgeLabel in application_windows.cpp.
  • Added cross-platform no-op stubs for macOS, Linux, Android, iOS, OpenHarmony, and WebAssembly.
  • Regenerated C ABI (src/capi/window_taskbar_c.{h,cpp}, src/capi/window_c.{h,cpp}, include/nativeapi.h).
  • Added unit/C ABI tests (tests/window_taskbar_test.cpp) and interactive native example (examples/window_taskbar_example/).

@lijy91
lijy91 merged commit 98e197b into main Nov 30, 2026
10 checks passed
@lijy91
lijy91 deleted the feat/windows-taskbar-issue-62 branch November 30, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant