Skip to content

Commit 629fc83

Browse files
authored
Correct return value of CTaskDialog::OnHelp()
It returns `S_FALSE`, not `S_OK`, according to `afxtaskdialog.cpp` in 14.42.34433. In testing, returning `S_OK` from an overridden implementation may result in another window (e.g., a main frame window) also presenting help.
1 parent 501834a commit 629fc83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/mfc/reference/ctaskdialog-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ virtual HRESULT OnHelp();
685685

686686
### Return Value
687687

688-
The default implementation returns S_OK.
688+
The default implementation returns S_FALSE.
689689

690690
### Remarks
691691

0 commit comments

Comments
 (0)