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
9f3eb19a
Commit
9f3eb19a
authored
May 22, 1999
by
Marcus Meissner
Committed by
Alexandre Julliard
May 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed use of win.h, sysmetrics.h and associated WINE USER internal
variables. Added missing infoPtr->Buddy = hwndBud; in updown.c
parent
654ee2c1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
18 deletions
+19
-18
comctl32undoc.c
dlls/comctl32/comctl32undoc.c
+1
-1
rebar.c
dlls/comctl32/rebar.c
+8
-7
toolbar.c
dlls/comctl32/toolbar.c
+5
-4
updown.c
dlls/comctl32/updown.c
+5
-6
No files found.
dlls/comctl32/comctl32undoc.c
View file @
9f3eb19a
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
#include <stdlib.h>
/* atoi */
#include <stdlib.h>
/* atoi */
#include <ctype.h>
#include <ctype.h>
#include "winbase.h"
#include "commctrl.h"
#include "commctrl.h"
#include "heap.h"
#include "debug.h"
#include "debug.h"
DEFAULT_DEBUG_CHANNEL
(
commctrl
)
DEFAULT_DEBUG_CHANNEL
(
commctrl
)
...
...
dlls/comctl32/rebar.c
View file @
9f3eb19a
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
#include <string.h>
#include <string.h>
#include "winbase.h"
#include "winbase.h"
#include "wingdi.h"
#include "commctrl.h"
#include "commctrl.h"
#include "rebar.h"
#include "rebar.h"
#include "sysmetrics.h"
#include "debug.h"
#include "debug.h"
DEFAULT_DEBUG_CHANNEL
(
rebar
)
DEFAULT_DEBUG_CHANNEL
(
rebar
)
...
@@ -382,7 +382,7 @@ REBAR_ForceResize (HWND hwnd)
...
@@ -382,7 +382,7 @@ REBAR_ForceResize (HWND hwnd)
rc
.
bottom
=
infoPtr
->
calcSize
.
cy
;
rc
.
bottom
=
infoPtr
->
calcSize
.
cy
;
if
(
GetWindowLongA
(
hwnd
,
GWL_STYLE
)
&
WS_BORDER
)
{
if
(
GetWindowLongA
(
hwnd
,
GWL_STYLE
)
&
WS_BORDER
)
{
InflateRect
(
&
rc
,
sysMetrics
[
SM_CXEDGE
],
sysMetrics
[
SM_CYEDGE
]
);
InflateRect
(
&
rc
,
GetSystemMetrics
(
SM_CXEDGE
),
GetSystemMetrics
(
SM_CYEDGE
)
);
}
}
SetWindowPos
(
hwnd
,
0
,
0
,
0
,
SetWindowPos
(
hwnd
,
0
,
0
,
0
,
...
@@ -761,7 +761,8 @@ REBAR_GetBarHeight (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -761,7 +761,8 @@ REBAR_GetBarHeight (HWND hwnd, WPARAM wParam, LPARAM lParam)
nHeight
=
infoPtr
->
calcSize
.
cy
;
nHeight
=
infoPtr
->
calcSize
.
cy
;
if
(
GetWindowLongA
(
hwnd
,
GWL_STYLE
)
&
WS_BORDER
)
if
(
GetWindowLongA
(
hwnd
,
GWL_STYLE
)
&
WS_BORDER
)
nHeight
+=
(
2
*
sysMetrics
[
SM_CYEDGE
]);
nHeight
+=
(
2
*
GetSystemMetrics
(
SM_CYEDGE
));
FIXME
(
rebar
,
"height = %d
\n
"
,
nHeight
);
FIXME
(
rebar
,
"height = %d
\n
"
,
nHeight
);
...
@@ -1669,10 +1670,10 @@ inline static LRESULT
...
@@ -1669,10 +1670,10 @@ inline static LRESULT
REBAR_NCCalcSize
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
REBAR_NCCalcSize
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
if
(
GetWindowLongA
(
hwnd
,
GWL_STYLE
)
&
WS_BORDER
)
{
if
(
GetWindowLongA
(
hwnd
,
GWL_STYLE
)
&
WS_BORDER
)
{
((
LPRECT
)
lParam
)
->
left
+=
sysMetrics
[
SM_CXEDGE
]
;
((
LPRECT
)
lParam
)
->
left
+=
GetSystemMetrics
(
SM_CXEDGE
)
;
((
LPRECT
)
lParam
)
->
top
+=
sysMetrics
[
SM_CYEDGE
]
;
((
LPRECT
)
lParam
)
->
top
+=
GetSystemMetrics
(
SM_CYEDGE
)
;
((
LPRECT
)
lParam
)
->
right
-=
sysMetrics
[
SM_CXEDGE
]
;
((
LPRECT
)
lParam
)
->
right
-=
GetSystemMetrics
(
SM_CXEDGE
)
;
((
LPRECT
)
lParam
)
->
bottom
-=
sysMetrics
[
SM_CYEDGE
]
;
((
LPRECT
)
lParam
)
->
bottom
-=
GetSystemMetrics
(
SM_CYEDGE
)
;
}
}
return
0
;
return
0
;
...
...
dlls/comctl32/toolbar.c
View file @
9f3eb19a
...
@@ -28,8 +28,9 @@
...
@@ -28,8 +28,9 @@
#include <string.h>
#include <string.h>
#include "winbase.h"
#include "winbase.h"
#include "winuser.h"
#include "wingdi.h"
#include "commctrl.h"
#include "commctrl.h"
#include "sysmetrics.h"
#include "cache.h"
#include "cache.h"
#include "comctl32.h"
#include "comctl32.h"
#include "toolbar.h"
#include "toolbar.h"
...
@@ -1186,7 +1187,7 @@ TOOLBAR_AutoSize (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -1186,7 +1187,7 @@ TOOLBAR_AutoSize (HWND hwnd, WPARAM wParam, LPARAM lParam)
uPosFlags
|=
SWP_NOMOVE
;
uPosFlags
|=
SWP_NOMOVE
;
if
(
!
(
dwStyle
&
CCS_NODIVIDER
))
if
(
!
(
dwStyle
&
CCS_NODIVIDER
))
cy
+=
sysMetrics
[
SM_CYEDGE
]
;
cy
+=
GetSystemMetrics
(
SM_CYEDGE
)
;
infoPtr
->
bAutoSize
=
TRUE
;
infoPtr
->
bAutoSize
=
TRUE
;
SetWindowPos
(
hwnd
,
HWND_TOP
,
parent_rect
.
left
,
parent_rect
.
top
,
SetWindowPos
(
hwnd
,
HWND_TOP
,
parent_rect
.
left
,
parent_rect
.
top
,
...
@@ -2756,7 +2757,7 @@ inline static LRESULT
...
@@ -2756,7 +2757,7 @@ inline static LRESULT
TOOLBAR_NCCalcSize
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
TOOLBAR_NCCalcSize
(
HWND
hwnd
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
if
(
!
(
GetWindowLongA
(
hwnd
,
GWL_STYLE
)
&
CCS_NODIVIDER
))
if
(
!
(
GetWindowLongA
(
hwnd
,
GWL_STYLE
)
&
CCS_NODIVIDER
))
((
LPRECT
)
lParam
)
->
top
+=
sysMetrics
[
SM_CYEDGE
]
;
((
LPRECT
)
lParam
)
->
top
+=
GetSystemMetrics
(
SM_CYEDGE
)
;
return
DefWindowProcA
(
hwnd
,
WM_NCCALCSIZE
,
wParam
,
lParam
);
return
DefWindowProcA
(
hwnd
,
WM_NCCALCSIZE
,
wParam
,
lParam
);
}
}
...
@@ -2914,7 +2915,7 @@ TOOLBAR_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
...
@@ -2914,7 +2915,7 @@ TOOLBAR_Size (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
}
if
(
!
(
dwStyle
&
CCS_NODIVIDER
))
if
(
!
(
dwStyle
&
CCS_NODIVIDER
))
cy
+=
sysMetrics
[
SM_CYEDGE
]
;
cy
+=
GetSystemMetrics
(
SM_CYEDGE
)
;
SetWindowPos
(
hwnd
,
0
,
parent_rect
.
left
,
parent_rect
.
top
,
SetWindowPos
(
hwnd
,
0
,
parent_rect
.
left
,
parent_rect
.
top
,
cx
,
cy
,
uPosFlags
|
SWP_NOZORDER
);
cx
,
cy
,
uPosFlags
|
SWP_NOZORDER
);
...
...
dlls/comctl32/updown.c
View file @
9f3eb19a
...
@@ -32,7 +32,8 @@
...
@@ -32,7 +32,8 @@
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include "win.h"
#include "winbase.h"
#include "winuser.h"
#include "commctrl.h"
#include "commctrl.h"
#include "winnls.h"
#include "winnls.h"
#include "updown.h"
#include "updown.h"
...
@@ -372,6 +373,8 @@ static BOOL UPDOWN_SetBuddy (HWND hwnd, HWND hwndBud)
...
@@ -372,6 +373,8 @@ static BOOL UPDOWN_SetBuddy (HWND hwnd, HWND hwndBud)
if
(
!
(
dwStyle
&
(
UDS_ALIGNLEFT
|
UDS_ALIGNRIGHT
)))
if
(
!
(
dwStyle
&
(
UDS_ALIGNLEFT
|
UDS_ALIGNRIGHT
)))
return
TRUE
;
return
TRUE
;
infoPtr
->
Buddy
=
hwndBud
;
/* Get the rect of the buddy relative to its parent */
/* Get the rect of the buddy relative to its parent */
GetWindowRect
(
infoPtr
->
Buddy
,
&
budRect
);
GetWindowRect
(
infoPtr
->
Buddy
,
&
budRect
);
MapWindowPoints
(
HWND_DESKTOP
,
GetParent
(
infoPtr
->
Buddy
),
MapWindowPoints
(
HWND_DESKTOP
,
GetParent
(
infoPtr
->
Buddy
),
...
@@ -684,12 +687,8 @@ LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam,
...
@@ -684,12 +687,8 @@ LRESULT WINAPI UpDownWindowProc(HWND hwnd, UINT message, WPARAM wParam,
break
;
break
;
/*If we released the mouse and our buddy is an edit */
/*If we released the mouse and our buddy is an edit */
/* we must select all text in it. */
/* we must select all text in it. */
{
if
(
!
lstrcmpA
(
infoPtr
->
szBuddyClass
,
"Edit"
))
WND
*
tmpWnd
=
WIN_FindWndPtr
(
infoPtr
->
Buddy
);
if
(
WIDGETS_IsControl
(
tmpWnd
,
BIC32_EDIT
))
SendMessageA
(
infoPtr
->
Buddy
,
EM_SETSEL
,
0
,
MAKELONG
(
0
,
-
1
));
SendMessageA
(
infoPtr
->
Buddy
,
EM_SETSEL
,
0
,
MAKELONG
(
0
,
-
1
));
WIN_ReleaseWndPtr
(
tmpWnd
);
}
break
;
break
;
case
WM_LBUTTONDOWN
:
case
WM_LBUTTONDOWN
:
...
...
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