Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5a2efbcb
Commit
5a2efbcb
authored
Aug 22, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Sep 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Support drag-and-drop.
parent
d95fac15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
wordpad.c
programs/wordpad/wordpad.c
+13
-0
No files found.
programs/wordpad/wordpad.c
View file @
5a2efbcb
...
...
@@ -33,6 +33,7 @@
#include <commctrl.h>
#include <commdlg.h>
#include <shlobj.h>
#include <shellapi.h>
#include "resource.h"
...
...
@@ -1230,6 +1231,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
registry_read_filelist
(
hWnd
);
registry_read_options
();
DragAcceptFiles
(
hWnd
,
TRUE
);
return
0
;
}
...
...
@@ -1759,6 +1761,17 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
case
WM_SIZE
:
return
OnSize
(
hWnd
,
wParam
,
lParam
);
case
WM_DROPFILES
:
{
WCHAR
file
[
MAX_PATH
];
DragQueryFileW
((
HDROP
)
wParam
,
0
,
file
,
MAX_PATH
);
DragFinish
((
HDROP
)
wParam
);
if
(
prompt_save_changes
())
DoOpenFile
(
file
);
}
break
;
default:
return
DefWindowProcW
(
hWnd
,
msg
,
wParam
,
lParam
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment