Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

[Windows 11] Snap layouts for custom maximize buttons

Aberta
#70 0 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
55/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
cpp, flutter

Direção de pesquisa

Start by tracing the Windows handling of WM_NCHITTEST and review the linked Windows 11 snap-layout example. Determine how a maximize-button rectangle in content coordinates can be supplied and how hover and press states reach the Flutter button. Done means custom caption buttons trigger the Windows 11 snap flyout and preserve those states.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

enhancement

On Windows 11, hovering the maximize button shows the snap layout flyout. Apps that hide the native title bar and draw their own caption buttons lose it, unless the window answers WM_NCHITTEST with HTMAXBUTTON over their maximize button.

Proposal: let the app tell the window where its maximize button is (for example Window::SetMaximizeButtonRect(Rect), in content coordinates), and have the Windows hit-testing return HTMAXBUTTON there, with the hover and press states forwarded so the Flutter button can still render them.

Background:

  • leanflutter/window_manager#122: Windows 11 snap layout support (see the sample linked there: luoluoqixi/flutter_windows11_snap_layouts_examples)
Linguagem predominante
C++
Estrelas
34
Forks
7
Merge médio
3d 1h
PRs com merge (30d)
1

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de libnativeapi/nativeapi

Todas as issues de libnativeapi/nativeapi

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.