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
7f11441a
Commit
7f11441a
authored
Dec 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Duplicate DIALOG_Enable/DisableOwner implementation on the 16-bit side.
parent
780ae3a6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
4 deletions
+40
-4
controls.h
dlls/user32/controls.h
+0
-2
dialog.c
dlls/user32/dialog.c
+2
-2
dialog16.c
dlls/user32/dialog16.c
+38
-0
No files found.
dlls/user32/controls.h
View file @
7f11441a
...
...
@@ -240,8 +240,6 @@ typedef struct tagDIALOGINFO
#define DF_OWNERENABLED 0x0002
extern
DIALOGINFO
*
DIALOG_get_info
(
HWND
hwnd
,
BOOL
create
)
DECLSPEC_HIDDEN
;
extern
void
DIALOG_EnableOwner
(
HWND
hOwner
)
DECLSPEC_HIDDEN
;
extern
BOOL
DIALOG_DisableOwner
(
HWND
hOwner
)
DECLSPEC_HIDDEN
;
extern
INT
DIALOG_DoDialogBox
(
HWND
hwnd
,
HWND
owner
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_CONTROLS_H */
dlls/user32/dialog.c
View file @
7f11441a
...
...
@@ -109,7 +109,7 @@ const struct builtin_class_descr DIALOG_builtin_class =
* Helper function for modal dialogs to enable again the
* owner of the dialog box.
*/
void
DIALOG_EnableOwner
(
HWND
hOwner
)
static
void
DIALOG_EnableOwner
(
HWND
hOwner
)
{
/* Owner must be a top-level window */
if
(
hOwner
)
...
...
@@ -125,7 +125,7 @@ void DIALOG_EnableOwner( HWND hOwner )
* Helper function for modal dialogs to disable the
* owner of the dialog box. Returns TRUE if owner was enabled.
*/
BOOL
DIALOG_DisableOwner
(
HWND
hOwner
)
static
BOOL
DIALOG_DisableOwner
(
HWND
hOwner
)
{
/* Owner must be a top-level window */
if
(
hOwner
)
...
...
dlls/user32/dialog16.c
View file @
7f11441a
...
...
@@ -66,6 +66,44 @@ typedef struct
/***********************************************************************
* DIALOG_EnableOwner
*
* Helper function for modal dialogs to enable again the
* owner of the dialog box.
*/
static
void
DIALOG_EnableOwner
(
HWND
hOwner
)
{
/* Owner must be a top-level window */
if
(
hOwner
)
hOwner
=
GetAncestor
(
hOwner
,
GA_ROOT
);
if
(
!
hOwner
)
return
;
EnableWindow
(
hOwner
,
TRUE
);
}
/***********************************************************************
* DIALOG_DisableOwner
*
* Helper function for modal dialogs to disable the
* owner of the dialog box. Returns TRUE if owner was enabled.
*/
static
BOOL
DIALOG_DisableOwner
(
HWND
hOwner
)
{
/* Owner must be a top-level window */
if
(
hOwner
)
hOwner
=
GetAncestor
(
hOwner
,
GA_ROOT
);
if
(
!
hOwner
)
return
FALSE
;
if
(
IsWindowEnabled
(
hOwner
))
{
EnableWindow
(
hOwner
,
FALSE
);
return
TRUE
;
}
else
return
FALSE
;
}
/***********************************************************************
* DIALOG_GetControl16
*
* Return the class and text of the control pointed to by ptr,
...
...
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