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
10d825aa
Commit
10d825aa
authored
Feb 18, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Feb 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Enable WM_RBUTTONDOWN to set the splitbar.
parent
a55b005f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
11 deletions
+23
-11
childwnd.c
programs/regedit/childwnd.c
+23
-11
No files found.
programs/regedit/childwnd.c
View file @
10d825aa
...
...
@@ -30,8 +30,9 @@
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
regedit
);
ChildWnd
*
g_pChildWnd
;
static
int
last_split
;
/*******************************************************************************
* Local module support methods
...
...
@@ -162,6 +163,24 @@ static void OnTreeSelectionChanged(HWND hwndTV, HWND hwndLV, HTREEITEM hItem, BO
}
/*******************************************************************************
* finish_splitbar [internal]
*
* make the splitbar invisible and resize the windows
* (helper for ChildWndProc)
*/
static
void
finish_splitbar
(
HWND
hWnd
,
int
x
)
{
RECT
rt
;
draw_splitbar
(
hWnd
,
last_split
);
last_split
=
-
1
;
GetClientRect
(
hWnd
,
&
rt
);
g_pChildWnd
->
nSplitPos
=
x
;
ResizeWnd
(
rt
.
right
,
rt
.
bottom
);
ReleaseCapture
();
}
/*******************************************************************************
*
* FUNCTION: _CmdWndProc(HWND, unsigned, WORD, LONG)
*
...
...
@@ -203,8 +222,6 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
*/
LRESULT
CALLBACK
ChildWndProc
(
HWND
hWnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
static
int
last_split
;
switch
(
message
)
{
case
WM_CREATE
:
g_pChildWnd
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ChildWnd
));
...
...
@@ -253,16 +270,11 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa
break
;
}
/* WM_RBUTTONDOWN sets the splitbar the same way as WM_LBUTTONUP */
case
WM_LBUTTONUP
:
case
WM_RBUTTONDOWN
:
if
(
GetCapture
()
==
hWnd
)
{
RECT
rt
;
int
x
=
LOWORD
(
lParam
);
draw_splitbar
(
hWnd
,
last_split
);
last_split
=
-
1
;
GetClientRect
(
hWnd
,
&
rt
);
g_pChildWnd
->
nSplitPos
=
x
;
ResizeWnd
(
rt
.
right
,
rt
.
bottom
);
ReleaseCapture
();
finish_splitbar
(
hWnd
,
LOWORD
(
lParam
));
}
break
;
...
...
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