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
402fcbc8
Commit
402fcbc8
authored
Jan 24, 1999
by
Eric Kohl
Committed by
Alexandre Julliard
Jan 24, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added some messages to the rebar control.
parent
b02f65d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
16 deletions
+70
-16
rebar.c
dlls/comctl32/rebar.c
+70
-16
No files found.
dlls/comctl32/rebar.c
View file @
402fcbc8
...
@@ -528,7 +528,7 @@ REBAR_DeleteBand (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
...
@@ -528,7 +528,7 @@ REBAR_DeleteBand (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
if
(
uBand
>=
infoPtr
->
uNumBands
)
if
(
uBand
>=
infoPtr
->
uNumBands
)
return
FALSE
;
return
FALSE
;
FIXM
E
(
rebar
,
"deleting band %u!
\n
"
,
uBand
);
TRAC
E
(
rebar
,
"deleting band %u!
\n
"
,
uBand
);
if
(
infoPtr
->
uNumBands
==
1
)
{
if
(
infoPtr
->
uNumBands
==
1
)
{
TRACE
(
rebar
,
" simple delete!
\n
"
);
TRACE
(
rebar
,
" simple delete!
\n
"
);
...
@@ -571,6 +571,21 @@ static LRESULT
...
@@ -571,6 +571,21 @@ static LRESULT
REBAR_GetBandBorders
(
WND
*
wndPtr
,
WPARAM32
wParam
,
LPARAM
lParam
)
REBAR_GetBandBorders
(
WND
*
wndPtr
,
WPARAM32
wParam
,
LPARAM
lParam
)
{
{
REBAR_INFO
*
infoPtr
=
REBAR_GetInfoPtr
(
wndPtr
);
REBAR_INFO
*
infoPtr
=
REBAR_GetInfoPtr
(
wndPtr
);
LPRECT32
lpRect
=
(
LPRECT32
)
lParam
;
REBAR_BAND
*
lpBand
;
if
(
!
lParam
)
return
0
;
if
((
UINT32
)
wParam
>=
infoPtr
->
uNumBands
)
return
0
;
lpBand
=
&
infoPtr
->
bands
[(
UINT32
)
wParam
];
if
(
wndPtr
->
dwStyle
&
RBS_BANDBORDERS
)
{
}
else
{
}
return
0
;
return
0
;
}
}
...
@@ -1171,9 +1186,42 @@ REBAR_InsertBand32W (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
...
@@ -1171,9 +1186,42 @@ REBAR_InsertBand32W (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
}
}
/* << REBAR_MaximizeBand >> */
static
LRESULT
/* << REBAR_MinimizeBand >> */
REBAR_MaximizeBand
(
WND
*
wndPtr
,
WPARAM32
wParam
,
LPARAM
lParam
)
/* << REBAR_MoveBand >> */
{
/* REBAR_INFO *infoPtr = REBAR_GetInfoPtr (wndPtr); */
FIXME
(
rebar
,
"(uBand = %u fIdeal = %s)
\n
"
,
(
UINT32
)
wParam
,
lParam
?
"TRUE"
:
"FALSE"
);
return
0
;
}
static
LRESULT
REBAR_MinimizeBand
(
WND
*
wndPtr
,
WPARAM32
wParam
,
LPARAM
lParam
)
{
/* REBAR_INFO *infoPtr = REBAR_GetInfoPtr (wndPtr); */
FIXME
(
rebar
,
"(uBand = %u)
\n
"
,
(
UINT32
)
wParam
);
return
0
;
}
static
LRESULT
REBAR_MoveBand
(
WND
*
wndPtr
,
WPARAM32
wParam
,
LPARAM
lParam
)
{
/* REBAR_INFO *infoPtr = REBAR_GetInfoPtr (wndPtr); */
FIXME
(
rebar
,
"(iFrom = %u iTof = %u)
\n
"
,
(
UINT32
)
wParam
,
(
UINT32
)
lParam
);
return
FALSE
;
}
static
LRESULT
static
LRESULT
...
@@ -1225,9 +1273,8 @@ REBAR_SetBandInfo32A (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
...
@@ -1225,9 +1273,8 @@ REBAR_SetBandInfo32A (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
SetParent32
(
lpBand
->
hwndChild
,
wndPtr
->
hwndSelf
);
SetParent32
(
lpBand
->
hwndChild
,
wndPtr
->
hwndSelf
);
}
}
else
{
else
{
FIXM
E
(
rebar
,
"child: 0x%x prev parent: 0x%x
\n
"
,
TRAC
E
(
rebar
,
"child: 0x%x prev parent: 0x%x
\n
"
,
lpBand
->
hwndChild
,
lpBand
->
hwndPrevParent
);
lpBand
->
hwndChild
,
lpBand
->
hwndPrevParent
);
/* SetParent32 (lpBand->hwndChild, lpBand->hwndPrevParent); */
lpBand
->
hwndChild
=
0
;
lpBand
->
hwndChild
=
0
;
lpBand
->
hwndPrevParent
=
0
;
lpBand
->
hwndPrevParent
=
0
;
}
}
...
@@ -1262,7 +1309,6 @@ REBAR_SetBandInfo32A (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
...
@@ -1262,7 +1309,6 @@ REBAR_SetBandInfo32A (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
lpBand
->
cxHeader
=
lprbbi
->
cxHeader
;
lpBand
->
cxHeader
=
lprbbi
->
cxHeader
;
}
}
REBAR_Layout
(
wndPtr
,
NULL
);
REBAR_Layout
(
wndPtr
,
NULL
);
REBAR_ForceResize
(
wndPtr
);
REBAR_ForceResize
(
wndPtr
);
REBAR_MoveChildWindows
(
wndPtr
);
REBAR_MoveChildWindows
(
wndPtr
);
...
@@ -1320,9 +1366,8 @@ REBAR_SetBandInfo32W (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
...
@@ -1320,9 +1366,8 @@ REBAR_SetBandInfo32W (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
SetParent32
(
lpBand
->
hwndChild
,
wndPtr
->
hwndSelf
);
SetParent32
(
lpBand
->
hwndChild
,
wndPtr
->
hwndSelf
);
}
}
else
{
else
{
FIXM
E
(
rebar
,
"child: 0x%x prev parent: 0x%x
\n
"
,
TRAC
E
(
rebar
,
"child: 0x%x prev parent: 0x%x
\n
"
,
lpBand
->
hwndChild
,
lpBand
->
hwndPrevParent
);
lpBand
->
hwndChild
,
lpBand
->
hwndPrevParent
);
/* SetParent32 (lpBand->hwndChild, lpBand->hwndPrevParent); */
lpBand
->
hwndChild
=
0
;
lpBand
->
hwndChild
=
0
;
lpBand
->
hwndPrevParent
=
0
;
lpBand
->
hwndPrevParent
=
0
;
}
}
...
@@ -1357,7 +1402,6 @@ REBAR_SetBandInfo32W (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
...
@@ -1357,7 +1402,6 @@ REBAR_SetBandInfo32W (WND *wndPtr, WPARAM32 wParam, LPARAM lParam)
lpBand
->
cxHeader
=
lprbbi
->
cxHeader
;
lpBand
->
cxHeader
=
lprbbi
->
cxHeader
;
}
}
REBAR_Layout
(
wndPtr
,
NULL
);
REBAR_Layout
(
wndPtr
,
NULL
);
REBAR_ForceResize
(
wndPtr
);
REBAR_ForceResize
(
wndPtr
);
REBAR_MoveChildWindows
(
wndPtr
);
REBAR_MoveChildWindows
(
wndPtr
);
...
@@ -1818,7 +1862,9 @@ REBAR_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
...
@@ -1818,7 +1862,9 @@ REBAR_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
/* case RB_DRAGMOVE: */
/* case RB_DRAGMOVE: */
/* case RB_ENDDRAG: */
/* case RB_ENDDRAG: */
/* case RB_GETBANDBORDERS: */
case
RB_GETBANDBORDERS
:
return
REBAR_GetBandBorders
(
wndPtr
,
wParam
,
lParam
);
case
RB_GETBANDCOUNT
:
case
RB_GETBANDCOUNT
:
return
REBAR_GetBandCount
(
wndPtr
);
return
REBAR_GetBandCount
(
wndPtr
);
...
@@ -1876,9 +1922,14 @@ REBAR_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
...
@@ -1876,9 +1922,14 @@ REBAR_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
case
RB_INSERTBAND32W
:
case
RB_INSERTBAND32W
:
return
REBAR_InsertBand32W
(
wndPtr
,
wParam
,
lParam
);
return
REBAR_InsertBand32W
(
wndPtr
,
wParam
,
lParam
);
/* case RB_MAXIMIZEBAND: */
case
RB_MAXIMIZEBAND
:
/* case RB_MINIMIZEBAND: */
return
REBAR_MaximizeBand
(
wndPtr
,
wParam
,
lParam
);
/* case RB_MOVEBAND: */
case
RB_MINIMIZEBAND
:
return
REBAR_MinimizeBand
(
wndPtr
,
wParam
,
lParam
);
case
RB_MOVEBAND
:
return
REBAR_MoveBand
(
wndPtr
,
wParam
,
lParam
);
case
RB_SETBANDINFO32A
:
case
RB_SETBANDINFO32A
:
return
REBAR_SetBandInfo32A
(
wndPtr
,
wParam
,
lParam
);
return
REBAR_SetBandInfo32A
(
wndPtr
,
wParam
,
lParam
);
...
@@ -1894,6 +1945,7 @@ REBAR_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
...
@@ -1894,6 +1945,7 @@ REBAR_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
/* case RB_SETCOLORSCHEME: */
/* case RB_SETCOLORSCHEME: */
/* case RB_SETPALETTE: */
/* case RB_SETPALETTE: */
/* return REBAR_GetPalette (wndPtr, wParam, lParam); */
case
RB_SETPARENT
:
case
RB_SETPARENT
:
return
REBAR_SetParent
(
wndPtr
,
wParam
,
lParam
);
return
REBAR_SetParent
(
wndPtr
,
wParam
,
lParam
);
...
@@ -1913,6 +1965,9 @@ REBAR_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
...
@@ -1913,6 +1965,9 @@ REBAR_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
return
REBAR_SizeToRect
(
wndPtr
,
wParam
,
lParam
);
return
REBAR_SizeToRect
(
wndPtr
,
wParam
,
lParam
);
case
WM_COMMAND
:
return
SendMessage32A
(
wndPtr
->
parent
->
hwndSelf
,
uMsg
,
wParam
,
lParam
);
case
WM_CREATE
:
case
WM_CREATE
:
return
REBAR_Create
(
wndPtr
,
wParam
,
lParam
);
return
REBAR_Create
(
wndPtr
,
wParam
,
lParam
);
...
@@ -1932,8 +1987,7 @@ REBAR_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
...
@@ -1932,8 +1987,7 @@ REBAR_WindowProc (HWND32 hwnd, UINT32 uMsg, WPARAM32 wParam, LPARAM lParam)
return
REBAR_NCPaint
(
wndPtr
,
wParam
,
lParam
);
return
REBAR_NCPaint
(
wndPtr
,
wParam
,
lParam
);
case
WM_NOTIFY
:
case
WM_NOTIFY
:
return
SendMessage32A
(
wndPtr
->
parent
->
hwndSelf
,
WM_NOTIFY
,
return
SendMessage32A
(
wndPtr
->
parent
->
hwndSelf
,
uMsg
,
wParam
,
lParam
);
wParam
,
lParam
);
case
WM_PAINT
:
case
WM_PAINT
:
return
REBAR_Paint
(
wndPtr
,
wParam
);
return
REBAR_Paint
(
wndPtr
,
wParam
);
...
...
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