Skip to content

Commit

Permalink
[RAPPS] Forbid the "Install" tree-view section to collapse in APPWIZ …
Browse files Browse the repository at this point in the history
…mode (reactos#6655)

However, there is currently a bug in Wine's comctl32, which ignores
the value returned from the TVN_ITEMEXPANDING notification handler
to control the collapse/expansion behaviour.

https://bugs.winehq.org/show_bug.cgi?id=53727

As a result, this feature doesn't work in ReactOS yet.
  • Loading branch information
HBelusca committed Sep 16, 2024
1 parent 2313f88 commit 720148e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions base/applications/rapps/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,22 @@ CMainWindow::ProcessWindowMessage(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lPa

switch (data->code)
{
case TVN_ITEMEXPANDING:
{
if (data->hwndFrom == m_TreeView->m_hWnd)
{
// APPWIZ-mode: forbid item collapse.
// FIXME: Prevent collapse (COMCTL32 is buggy)
// https://bugs.winehq.org/show_bug.cgi?id=53727
if (m_bAppwizMode && (((LPNMTREEVIEW)lParam)->action & TVE_TOGGLE) == TVE_COLLAPSE)
{
theResult = TRUE;
return TRUE; // Handled
}
}
break;
}

case TVN_SELCHANGED:
{
if (data->hwndFrom == m_TreeView->m_hWnd)
Expand Down

0 comments on commit 720148e

Please sign in to comment.