mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 13:54:54 +02:00
CustomFileDialog: Focus the file name when file already exists
Fix #11630, close 11631
This commit is contained in:
parent
ef9e836903
commit
ccbf08dc98
@ -317,6 +317,10 @@ public:
|
|||||||
|
|
||||||
IFACEMETHODIMP OnOverwrite(IFileDialog*, IShellItem*, FDE_OVERWRITE_RESPONSE*) override
|
IFACEMETHODIMP OnOverwrite(IFileDialog*, IShellItem*, FDE_OVERWRITE_RESPONSE*) override
|
||||||
{
|
{
|
||||||
|
// Called when a file with a given name already exists.
|
||||||
|
// Focus the file name edit box to make it easier to pick a new name.
|
||||||
|
if (_hwndNameEdit)
|
||||||
|
SetFocus(_hwndNameEdit);
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user