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
b42fcee0
Commit
b42fcee0
authored
Feb 27, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Feb 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Small cosmetic fixes.
- Clear title bar when creating new document. - Remove newline from statusbar. - Add horizontal line to toolbar.
parent
ade9fd64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
wordpad.c
programs/wordpad/wordpad.c
+3
-2
No files found.
programs/wordpad/wordpad.c
View file @
b42fcee0
...
...
@@ -290,7 +290,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
if
(
!
SendMessage
(
hReBarWnd
,
RB_SETBARINFO
,
0
,
(
LPARAM
)
&
rbi
))
return
-
1
;
hToolBarWnd
=
CreateToolbarEx
(
hReBarWnd
,
CCS_NOPARENTALIGN
|
CCS_NO
DIVIDER
|
CCS_NO
MOVEY
|
WS_VISIBLE
|
WS_CHILD
|
TBSTYLE_TOOLTIPS
|
TBSTYLE_BUTTON
,
hToolBarWnd
=
CreateToolbarEx
(
hReBarWnd
,
CCS_NOPARENTALIGN
|
CCS_NOMOVEY
|
WS_VISIBLE
|
WS_CHILD
|
TBSTYLE_TOOLTIPS
|
TBSTYLE_BUTTON
,
IDC_TOOLBAR
,
3
,
hInstance
,
IDB_TOOLBAR
,
NULL
,
0
,
...
...
@@ -396,7 +396,7 @@ static LRESULT OnNotify( HWND hWnd, WPARAM wParam, LPARAM lParam)
SELCHANGE
*
pSC
=
(
SELCHANGE
*
)
lParam
;
char
buf
[
128
];
sprintf
(
buf
,
"selection = %d..%d, line count=%ld
\n
"
,
sprintf
(
buf
,
"selection = %d..%d, line count=%ld"
,
pSC
->
chrg
.
cpMin
,
pSC
->
chrg
.
cpMax
,
SendMessage
(
hwndEditor
,
EM_GETLINECOUNT
,
0
,
0
));
SetWindowText
(
GetDlgItem
(
hWnd
,
IDC_STATUSBAR
),
buf
);
...
...
@@ -421,6 +421,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
case
ID_FILE_NEW
:
SetWindowTextA
(
hwndEditor
,
""
);
SetWindowTextW
(
hMainWnd
,
wszAppTitle
);
/* FIXME: set default format too */
break
;
...
...
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