Skip to content

Commit

Permalink
fix typo to re-enable tree view full row select (fixes #3845)
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Feb 29, 2024
1 parent 10e4a61 commit c489735
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/utils/HtmlWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1426,8 +1426,7 @@ static LRESULT CALLBACK WndProcParent(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
return DefWindowProc(hwnd, msg, wp, lp);
}

static LRESULT CALLBACK WndProcParent2(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp, UINT_PTR subclassId,
DWORD_PTR data) {
static LRESULT CALLBACK WndProcParent2(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp, UINT_PTR subclassId, DWORD_PTR data) {
return WndProcParent(hwnd, msg, wp, lp);
}

Expand All @@ -1436,7 +1435,6 @@ void HtmlWindow::SubclassHwnd() {
subclassId = NextSubclassId();
BOOL ok = SetWindowSubclass(hwndParent, WndProcParent2, subclassId, (DWORD_PTR)this);
CrashIf(!ok);

}

void HtmlWindow::UnsubclassHwnd() {
Expand Down
4 changes: 2 additions & 2 deletions src/wingui/WinGui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2743,8 +2743,8 @@ HWND TreeView::Create(const TreeViewCreateArgs& argsIn) {
args.exStyle = argsIn.exStyle | TVS_EX_DOUBLEBUFFER;

if (fullRowSelect) {
args.exStyle |= TVS_FULLROWSELECT;
args.exStyle &= ~TVS_HASLINES;
args.style |= TVS_FULLROWSELECT;
args.style &= ~TVS_HASLINES;
}

Wnd::CreateControl(args);
Expand Down

0 comments on commit c489735

Please sign in to comment.