Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
557d69d1
Commit
557d69d1
authored
Feb 24, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Feb 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Make toolbar more like native.
parent
31142324
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
resource.h
programs/wordpad/resource.h
+5
-0
wordpad.c
programs/wordpad/wordpad.c
+10
-3
No files found.
programs/wordpad/resource.h
View file @
557d69d1
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
#define ID_FILE_SAVE 1002
#define ID_FILE_SAVE 1002
#define ID_FILE_NEW 1003
#define ID_FILE_NEW 1003
#define ID_PRINT 1004
#define ID_PREVIEW 1005
#define ID_FIND 1006
#define ID_ALIGN_LEFT 1100
#define ID_ALIGN_LEFT 1100
#define ID_ALIGN_CENTER 1101
#define ID_ALIGN_CENTER 1101
#define ID_ALIGN_RIGHT 1102
#define ID_ALIGN_RIGHT 1102
...
...
programs/wordpad/wordpad.c
View file @
557d69d1
...
@@ -207,7 +207,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
...
@@ -207,7 +207,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
if
(
!
SendMessage
(
hReBarWnd
,
RB_SETBARINFO
,
0
,
(
LPARAM
)
&
rbi
))
if
(
!
SendMessage
(
hReBarWnd
,
RB_SETBARINFO
,
0
,
(
LPARAM
)
&
rbi
))
return
-
1
;
return
-
1
;
hToolBarWnd
=
CreateToolbarEx
(
hReBarWnd
,
CCS_NOPARENTALIGN
|
CCS_NODIVIDER
|
CCS_NOMOVEY
|
WS_VISIBLE
|
WS_CHILD
|
TBSTYLE_TOOLTIPS
|
TBSTYLE_
FLAT
,
hToolBarWnd
=
CreateToolbarEx
(
hReBarWnd
,
CCS_NOPARENTALIGN
|
CCS_NODIVIDER
|
CCS_NOMOVEY
|
WS_VISIBLE
|
WS_CHILD
|
TBSTYLE_TOOLTIPS
|
TBSTYLE_
BUTTON
,
IDC_TOOLBAR
,
IDC_TOOLBAR
,
3
,
hInstance
,
IDB_TOOLBAR
,
3
,
hInstance
,
IDB_TOOLBAR
,
NULL
,
0
,
NULL
,
0
,
...
@@ -220,9 +220,13 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
...
@@ -220,9 +220,13 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_FILEOPEN
,
ID_FILE_OPEN
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_FILEOPEN
,
ID_FILE_OPEN
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_FILESAVE
,
ID_FILE_SAVE
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_FILESAVE
,
ID_FILE_SAVE
);
AddSeparator
(
hToolBarWnd
);
AddSeparator
(
hToolBarWnd
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_PRINT
,
ID_PRINT
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_PRINTPRE
,
ID_PREVIEW
);
AddSeparator
(
hToolBarWnd
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_FIND
,
ID_FIND
);
AddSeparator
(
hToolBarWnd
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_CUT
,
ID_EDIT_CUT
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_CUT
,
ID_EDIT_CUT
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_COPY
,
ID_EDIT_COPY
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_COPY
,
ID_EDIT_COPY
);
AddSeparator
(
hToolBarWnd
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_UNDO
,
ID_EDIT_UNDO
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_UNDO
,
ID_EDIT_UNDO
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_REDOW
,
ID_EDIT_REDO
);
AddButton
(
hToolBarWnd
,
nStdBitmaps
+
STD_REDOW
,
ID_EDIT_REDO
);
AddSeparator
(
hToolBarWnd
);
AddSeparator
(
hToolBarWnd
);
...
@@ -333,7 +337,10 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
...
@@ -333,7 +337,10 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
case
ID_FILE_OPEN
:
case
ID_FILE_OPEN
:
case
ID_FILE_SAVE
:
case
ID_FILE_SAVE
:
MessageBox
(
hWnd
,
"Open/Save not implemented"
,
"WordPad"
,
MB_OK
);
case
ID_PRINT
:
case
ID_PREVIEW
:
case
ID_FIND
:
MessageBox
(
hWnd
,
"Not implemented"
,
"WordPad"
,
MB_OK
);
break
;
break
;
case
ID_FORMAT_BOLD
:
case
ID_FORMAT_BOLD
:
...
...
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