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
0397146d
Commit
0397146d
authored
Sep 08, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Sep 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Resize rebar control on window resize.
parent
b3162df5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
resource.h
programs/wordpad/resource.h
+1
-0
wordpad.c
programs/wordpad/wordpad.c
+15
-1
No files found.
programs/wordpad/resource.h
View file @
0397146d
...
...
@@ -90,6 +90,7 @@
#define BANDID_PREVIEW_BTN2 7
#define BANDID_PREVIEW_BTN3 8
#define BANDID_PREVIEW_BTN4 9
#define BANDID_PREVIEW_BUFFER 10
#define ID_WORDWRAP_NONE 0
#define ID_WORDWRAP_WINDOW 1
...
...
programs/wordpad/wordpad.c
View file @
0397146d
...
...
@@ -1483,13 +1483,25 @@ static void preview_bar_show(BOOL show)
if
(
show
)
{
REBARBANDINFOW
rb
;
AddTextButton
(
hReBar
,
STRING_PREVIEW_PRINT
,
ID_PRINT
,
BANDID_PREVIEW_BTN1
);
AddTextButton
(
hReBar
,
STRING_PREVIEW_NEXTPAGE
,
ID_PREVIEW_NEXTPAGE
,
BANDID_PREVIEW_BTN2
);
AddTextButton
(
hReBar
,
STRING_PREVIEW_PREVPAGE
,
ID_PREVIEW_PREVPAGE
,
BANDID_PREVIEW_BTN3
);
AddTextButton
(
hReBar
,
STRING_PREVIEW_CLOSE
,
ID_FILE_EXIT
,
BANDID_PREVIEW_BTN4
);
rb
.
cbSize
=
sizeof
(
rb
);
rb
.
fMask
=
RBBIM_SIZE
|
RBBIM_CHILDSIZE
|
RBBIM_STYLE
|
RBBIM_CHILD
|
RBBIM_IDEALSIZE
|
RBBIM_ID
;
rb
.
fStyle
=
RBBS_NOGRIPPER
|
RBBS_VARIABLEHEIGHT
;
rb
.
cyChild
=
rb
.
cyMinChild
=
22
;
rb
.
cx
=
rb
.
cxMinChild
=
90
;
rb
.
cxIdeal
=
100
;
rb
.
wID
=
BANDID_PREVIEW_BUFFER
;
SendMessageW
(
hReBar
,
RB_INSERTBAND
,
-
1
,
(
LPARAM
)
&
rb
);
}
else
{
for
(
i
=
0
;
i
<
PREVIEW_BUTTONS
;
i
++
)
for
(
i
=
0
;
i
<
=
PREVIEW_BUTTONS
;
i
++
)
SendMessageW
(
hReBar
,
RB_DELETEBAND
,
SendMessageW
(
hReBar
,
RB_IDTOINDEX
,
BANDID_PREVIEW_BTN1
+
i
,
0
),
0
);
}
}
...
...
@@ -3110,6 +3122,8 @@ static LRESULT OnSize( HWND hWnd, WPARAM wParam, LPARAM lParam )
rebarRows
--
;
rebarHeight
=
rebarRows
?
SendMessageW
(
hwndReBar
,
RB_GETBARHEIGHT
,
0
,
0
)
:
0
;
MoveWindow
(
hwndReBar
,
0
,
0
,
LOWORD
(
lParam
),
rebarHeight
,
TRUE
);
}
if
(
hwndEditor
)
{
...
...
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