Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
3d6d9b21
Commit
3d6d9b21
authored
Oct 18, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Oct 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg: Load the correct dialog template and add a skeleton dialog proc.
parent
3c2c4a03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
oledlg_private.h
dlls/oledlg/oledlg_private.h
+2
-0
pastespl.c
dlls/oledlg/pastespl.c
+44
-0
No files found.
dlls/oledlg/oledlg_private.h
View file @
3d6d9b21
...
...
@@ -21,6 +21,8 @@
#ifndef __OLEDLG_PRIVATE_H__
#define __OLEDLG_PRIVATE_H__
extern
HINSTANCE
OLEDLG_hInstance
;
extern
UINT
cf_embed_source
;
extern
UINT
cf_embedded_object
;
extern
UINT
cf_link_source
;
...
...
dlls/oledlg/pastespl.c
View file @
3d6d9b21
...
...
@@ -28,6 +28,9 @@
#include "winuser.h"
#include "winnls.h"
#include "oledlg.h"
#include "oledlg_private.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ole
);
...
...
@@ -107,6 +110,30 @@ static inline WCHAR *strdupAtoW(const char *str)
return
ret
;
}
static
INT_PTR
CALLBACK
ps_dlg_proc
(
HWND
hdlg
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
{
TRACE
(
"(%p, %04x, %08x, %08lx)
\n
"
,
hdlg
,
msg
,
wp
,
lp
);
switch
(
msg
)
{
case
WM_INITDIALOG
:
return
TRUE
;
/* use default focus */
case
WM_COMMAND
:
switch
(
LOWORD
(
wp
))
{
case
IDOK
:
case
IDCANCEL
:
EndDialog
(
hdlg
,
wp
);
return
TRUE
;
}
return
FALSE
;
default:
return
FALSE
;
}
}
/***********************************************************************
* OleUIPasteSpecialA (OLEDLG.4)
*/
...
...
@@ -170,10 +197,27 @@ UINT WINAPI OleUIPasteSpecialA(LPOLEUIPASTESPECIALA psA)
*/
UINT
WINAPI
OleUIPasteSpecialW
(
LPOLEUIPASTESPECIALW
ps
)
{
LPCDLGTEMPLATEW
dlg_templ
=
(
LPCDLGTEMPLATEW
)
ps
->
hResource
;
TRACE
(
"(%p)
\n
"
,
ps
);
if
(
TRACE_ON
(
ole
))
dump_pastespecial
(
ps
);
if
(
ps
->
hInstance
||
!
ps
->
hResource
)
{
HINSTANCE
hInst
=
ps
->
hInstance
?
ps
->
hInstance
:
OLEDLG_hInstance
;
const
WCHAR
*
name
=
ps
->
hInstance
?
ps
->
lpszTemplate
:
MAKEINTRESOURCEW
(
IDD_PASTESPECIAL4
);
HRSRC
hrsrc
;
if
(
name
==
NULL
)
return
OLEUI_ERR_LPSZTEMPLATEINVALID
;
hrsrc
=
FindResourceW
(
hInst
,
name
,
MAKEINTRESOURCEW
(
RT_DIALOG
));
if
(
!
hrsrc
)
return
OLEUI_ERR_FINDTEMPLATEFAILURE
;
dlg_templ
=
LoadResource
(
hInst
,
hrsrc
);
if
(
!
dlg_templ
)
return
OLEUI_ERR_LOADTEMPLATEFAILURE
;
}
DialogBoxIndirectParamW
(
OLEDLG_hInstance
,
dlg_templ
,
ps
->
hWndOwner
,
ps_dlg_proc
,
(
LPARAM
)
ps
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
OLEUI_FALSE
;
}
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