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
5ae5da91
Commit
5ae5da91
authored
Jul 18, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Jul 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Add date/time toolbar button.
parent
4c6c9e59
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
3 deletions
+29
-3
.gitignore
.gitignore
+1
-0
Makefile.in
programs/wordpad/Makefile.in
+1
-0
resource.h
programs/wordpad/resource.h
+3
-2
rsrc.rc
programs/wordpad/rsrc.rc
+21
-0
wordpad.c
programs/wordpad/wordpad.c
+3
-1
No files found.
.gitignore
View file @
5ae5da91
...
...
@@ -927,6 +927,7 @@ programs/winhelp/winhelp
programs/winver/winver
programs/wordpad/formatbar.bmp
programs/wordpad/rsrc.res
programs/wordpad/toolbar.bmp
programs/wordpad/wordpad
programs/wordpad/wordpad.ico
programs/xcopy/rsrc.res
...
...
programs/wordpad/Makefile.in
View file @
5ae5da91
...
...
@@ -16,6 +16,7 @@ RC_SRCS = rsrc.rc
RC_BINSRC
=
rsrc.rc
RC_BINARIES
=
\
formatbar.bmp
\
toolbar.bmp
\
wordpad.ico
@MAKE_PROG_RULES@
...
...
programs/wordpad/resource.h
View file @
5ae5da91
...
...
@@ -72,9 +72,10 @@
#define IDD_DATETIME 2100
#define IDB_FORMATBAR 100
#define IDB_TOOLBAR 100
#define IDB_FORMATBAR 101
#define IDI_WORDPAD 10
1
#define IDI_WORDPAD 10
2
#define STRING_ALL_FILES 1400
#define STRING_TEXT_FILES_TXT 1401
...
...
programs/wordpad/rsrc.rc
View file @
5ae5da91
...
...
@@ -39,6 +39,27 @@ BEGIN
"S", ID_FILE_SAVE, VIRTKEY, CONTROL
END
/* BINRES toolbar.bmp */
IDB_TOOLBAR BITMAP "toolbar.bmp"
/* {
'42 4d f6 00 00 00 00 00 00 00 76 00 00 00 28 00'
'00 00 10 00 00 00 10 00 00 00 01 00 04 00 00 00'
'00 00 80 00 00 00 12 0b 00 00 12 0b 00 00 00 00'
'00 00 00 00 00 00 00 00 00 00 00 00 80 00 00 80'
'00 00 00 80 80 00 80 00 00 00 80 00 80 00 80 80'
'00 00 80 80 80 00 c0 c0 c0 00 00 00 ff 00 00 ff'
'00 00 00 ff ff 00 ff 00 00 00 ff 00 ff 00 ff ff'
'00 00 ff ff ff 00 88 88 88 88 88 33 33 88 88 88'
'88 88 83 33 33 38 88 88 88 88 33 33 33 33 88 88'
'88 88 33 30 00 03 8f ff ff ff 33 30 33 33 8f 0f'
'f0 0f 33 30 33 33 8f 0f 0f f0 f3 30 33 38 8f 0f'
'ff f0 f8 33 33 88 8f 0f f0 0f f8 88 88 88 8f 0f'
'ff f0 f8 88 88 88 8f 0f 0f f0 f8 88 88 88 8f 0f'
'f0 0f f8 88 88 88 8f ff ff ff f8 88 88 88 84 44'
'44 44 48 88 88 88 84 44 44 44 48 88 88 88 88 88'
'88 88 88 88 88 88'
} */
/* BINRES formatbar.bmp */
IDB_FORMATBAR BITMAP "formatbar.bmp"
/* {
...
...
programs/wordpad/wordpad.c
View file @
5ae5da91
...
...
@@ -511,7 +511,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
hToolBarWnd
=
CreateToolbarEx
(
hReBarWnd
,
CCS_NOPARENTALIGN
|
CCS_NOMOVEY
|
WS_VISIBLE
|
WS_CHILD
|
TBSTYLE_TOOLTIPS
|
TBSTYLE_BUTTON
,
IDC_TOOLBAR
,
0
,
hInstance
,
0
,
1
,
hInstance
,
IDB_TOOLBAR
,
NULL
,
0
,
24
,
24
,
16
,
16
,
sizeof
(
TBBUTTON
));
...
...
@@ -533,6 +533,8 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_PASTE
,
ID_EDIT_PASTE
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_UNDO
,
ID_EDIT_UNDO
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_REDOW
,
ID_EDIT_REDO
);
AddSeparator
(
hToolBarWnd
);
AddButton
(
hToolBarWnd
,
0
,
ID_DATETIME
);
SendMessageW
(
hToolBarWnd
,
TB_AUTOSIZE
,
0
,
0
);
...
...
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