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
e7cdbb05
Commit
e7cdbb05
authored
Nov 01, 1998
by
Tim Newsome
Committed by
Alexandre Julliard
Nov 01, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for non-modal dialog closing.
parent
120e4576
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
dialog.h
include/dialog.h
+1
-0
defdlg.c
windows/defdlg.c
+18
-3
No files found.
include/dialog.h
View file @
e7cdbb05
...
@@ -38,6 +38,7 @@ typedef struct
...
@@ -38,6 +38,7 @@ typedef struct
#pragma pack(4)
#pragma pack(4)
#define DF_END 0x0001
#define DF_END 0x0001
#define DF_ENDING 0x0002
extern
BOOL32
DIALOG_Init
(
void
);
extern
BOOL32
DIALOG_Init
(
void
);
extern
HWND32
DIALOG_CreateIndirect
(
HINSTANCE32
hInst
,
LPCSTR
dlgTemplate
,
extern
HWND32
DIALOG_CreateIndirect
(
HINSTANCE32
hInst
,
LPCSTR
dlgTemplate
,
...
...
windows/defdlg.c
View file @
e7cdbb05
...
@@ -260,11 +260,16 @@ LRESULT WINAPI DefDlgProc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam,
...
@@ -260,11 +260,16 @@ LRESULT WINAPI DefDlgProc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam,
dlgInfo
=
(
DIALOGINFO
*
)
&
wndPtr
->
wExtra
;
dlgInfo
=
(
DIALOGINFO
*
)
&
wndPtr
->
wExtra
;
dlgInfo
->
msgResult
=
0
;
dlgInfo
->
msgResult
=
0
;
if
(
dlgInfo
->
dlgProc
)
/* Call dialog procedure */
if
(
dlgInfo
->
dlgProc
)
{
/* Call dialog procedure */
result
=
CallWindowProc16
(
(
WNDPROC16
)
dlgInfo
->
dlgProc
,
result
=
CallWindowProc16
(
(
WNDPROC16
)
dlgInfo
->
dlgProc
,
hwnd
,
msg
,
wParam
,
lParam
);
hwnd
,
msg
,
wParam
,
lParam
);
/* Check if window was destroyed by dialog procedure */
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
}
if
(
!
result
&&
IsWindow32
(
hwnd
))
if
(
!
result
&&
IsWindow32
(
hwnd
))
{
{
...
@@ -315,11 +320,16 @@ LRESULT WINAPI DefDlgProc32A( HWND32 hwnd, UINT32 msg,
...
@@ -315,11 +320,16 @@ LRESULT WINAPI DefDlgProc32A( HWND32 hwnd, UINT32 msg,
dlgInfo
=
(
DIALOGINFO
*
)
&
wndPtr
->
wExtra
;
dlgInfo
=
(
DIALOGINFO
*
)
&
wndPtr
->
wExtra
;
dlgInfo
->
msgResult
=
0
;
dlgInfo
->
msgResult
=
0
;
if
(
dlgInfo
->
dlgProc
)
/* Call dialog procedure */
if
(
dlgInfo
->
dlgProc
)
{
/* Call dialog procedure */
result
=
CallWindowProc32A
(
(
WNDPROC32
)
dlgInfo
->
dlgProc
,
result
=
CallWindowProc32A
(
(
WNDPROC32
)
dlgInfo
->
dlgProc
,
hwnd
,
msg
,
wParam
,
lParam
);
hwnd
,
msg
,
wParam
,
lParam
);
/* Check if window was destroyed by dialog procedure */
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
}
if
(
!
result
&&
IsWindow32
(
hwnd
))
if
(
!
result
&&
IsWindow32
(
hwnd
))
{
{
...
@@ -370,11 +380,16 @@ LRESULT WINAPI DefDlgProc32W( HWND32 hwnd, UINT32 msg, WPARAM32 wParam,
...
@@ -370,11 +380,16 @@ LRESULT WINAPI DefDlgProc32W( HWND32 hwnd, UINT32 msg, WPARAM32 wParam,
dlgInfo
=
(
DIALOGINFO
*
)
&
wndPtr
->
wExtra
;
dlgInfo
=
(
DIALOGINFO
*
)
&
wndPtr
->
wExtra
;
dlgInfo
->
msgResult
=
0
;
dlgInfo
->
msgResult
=
0
;
if
(
dlgInfo
->
dlgProc
)
/* Call dialog procedure */
if
(
dlgInfo
->
dlgProc
)
{
/* Call dialog procedure */
result
=
CallWindowProc32W
(
(
WNDPROC32
)
dlgInfo
->
dlgProc
,
result
=
CallWindowProc32W
(
(
WNDPROC32
)
dlgInfo
->
dlgProc
,
hwnd
,
msg
,
wParam
,
lParam
);
hwnd
,
msg
,
wParam
,
lParam
);
/* Check if window was destroyed by dialog procedure */
/* Check if window was destroyed by dialog procedure */
if
(
dlgInfo
->
flags
&
DF_END
&&
!
(
dlgInfo
->
flags
&
DF_ENDING
))
{
dlgInfo
->
flags
|=
DF_ENDING
;
DestroyWindow32
(
hwnd
);
}
}
if
(
!
result
&&
IsWindow32
(
hwnd
))
if
(
!
result
&&
IsWindow32
(
hwnd
))
{
{
...
...
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