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
0a0316ea
Commit
0a0316ea
authored
Feb 08, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Feb 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Do not pass a global available pointer to a static function.
parent
cccd55a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
childwnd.c
programs/regedit/childwnd.c
+7
-7
No files found.
programs/regedit/childwnd.c
View file @
0a0316ea
...
...
@@ -60,14 +60,14 @@ static void draw_splitbar(HWND hWnd, int x)
ReleaseDC
(
hWnd
,
hdc
);
}
static
void
ResizeWnd
(
ChildWnd
*
pChildWnd
,
int
cx
,
int
cy
)
static
void
ResizeWnd
(
int
cx
,
int
cy
)
{
HDWP
hdwp
=
BeginDeferWindowPos
(
2
);
RECT
rt
=
{
0
,
0
,
cx
,
cy
};
cx
=
pChildWnd
->
nSplitPos
+
SPLIT_WIDTH
/
2
;
DeferWindowPos
(
hdwp
,
pChildWnd
->
hTreeWnd
,
0
,
rt
.
left
,
rt
.
top
,
pChildWnd
->
nSplitPos
-
SPLIT_WIDTH
/
2
-
rt
.
left
,
rt
.
bottom
-
rt
.
top
,
SWP_NOZORDER
|
SWP_NOACTIVATE
);
DeferWindowPos
(
hdwp
,
pChildWnd
->
hListWnd
,
0
,
rt
.
left
+
cx
,
rt
.
top
,
rt
.
right
-
cx
,
rt
.
bottom
-
rt
.
top
,
SWP_NOZORDER
|
SWP_NOACTIVATE
);
cx
=
g_
pChildWnd
->
nSplitPos
+
SPLIT_WIDTH
/
2
;
DeferWindowPos
(
hdwp
,
g_pChildWnd
->
hTreeWnd
,
0
,
rt
.
left
,
rt
.
top
,
g_
pChildWnd
->
nSplitPos
-
SPLIT_WIDTH
/
2
-
rt
.
left
,
rt
.
bottom
-
rt
.
top
,
SWP_NOZORDER
|
SWP_NOACTIVATE
);
DeferWindowPos
(
hdwp
,
g_
pChildWnd
->
hListWnd
,
0
,
rt
.
left
+
cx
,
rt
.
top
,
rt
.
right
-
cx
,
rt
.
bottom
-
rt
.
top
,
SWP_NOZORDER
|
SWP_NOACTIVATE
);
EndDeferWindowPos
(
hdwp
);
}
...
...
@@ -263,7 +263,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
last_split
=
-
1
;
GetClientRect
(
hWnd
,
&
rt
);
pChildWnd
->
nSplitPos
=
x
;
ResizeWnd
(
pChildWnd
,
rt
.
right
,
rt
.
bottom
);
ResizeWnd
(
rt
.
right
,
rt
.
bottom
);
ReleaseCapture
();
}
break
;
...
...
@@ -279,7 +279,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
RECT
rt
;
draw_splitbar
(
hWnd
,
last_split
);
GetClientRect
(
hWnd
,
&
rt
);
ResizeWnd
(
pChildWnd
,
rt
.
right
,
rt
.
bottom
);
ResizeWnd
(
rt
.
right
,
rt
.
bottom
);
last_split
=
-
1
;
ReleaseCapture
();
SetCursor
(
LoadCursor
(
0
,
IDC_ARROW
));
...
...
@@ -364,7 +364,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
case
WM_SIZE
:
if
(
wParam
!=
SIZE_MINIMIZED
&&
pChildWnd
!=
NULL
)
{
ResizeWnd
(
pChildWnd
,
LOWORD
(
lParam
),
HIWORD
(
lParam
));
ResizeWnd
(
LOWORD
(
lParam
),
HIWORD
(
lParam
));
}
/* fall through */
default:
def:
...
...
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