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
5aafea48
Commit
5aafea48
authored
Oct 10, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Oct 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Format warning fixes.
parent
2465fcb3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wordpad.c
programs/wordpad/wordpad.c
+3
-3
No files found.
programs/wordpad/wordpad.c
View file @
5aafea48
...
...
@@ -137,7 +137,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
0
,
0
,
1000
,
100
,
hWnd
,
(
HMENU
)
IDC_EDITOR
,
hInstance
,
NULL
);
if
(
!
hEditorWnd
)
{
fprintf
(
stderr
,
"Error code %
l
u
\n
"
,
GetLastError
());
fprintf
(
stderr
,
"Error code %u
\n
"
,
GetLastError
());
return
-
1
;
}
assert
(
hEditorWnd
);
...
...
@@ -189,7 +189,7 @@ static LRESULT OnNotify( HWND hWnd, WPARAM wParam, LPARAM lParam)
SELCHANGE
*
pSC
=
(
SELCHANGE
*
)
lParam
;
char
buf
[
128
];
sprintf
(
buf
,
"selection = %
ld..%l
d, line count=%ld
\n
"
,
sprintf
(
buf
,
"selection = %
d..%
d, line count=%ld
\n
"
,
pSC
->
chrg
.
cpMin
,
pSC
->
chrg
.
cpMax
,
SendMessage
(
hwndEditor
,
EM_GETLINECOUNT
,
0
,
0
));
SetWindowText
(
GetDlgItem
(
hWnd
,
IDC_STATUSBAR
),
buf
);
...
...
@@ -312,7 +312,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
SendMessage
(
hwndEditor
,
EM_EXGETSEL
,
0
,
(
LPARAM
)
&
range
);
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
data
)
*
(
range
.
cpMax
-
range
.
cpMin
+
1
));
SendMessage
(
hwndEditor
,
EM_GETSELTEXT
,
0
,
(
LPARAM
)
data
);
sprintf
(
buf
,
"Start = %
ld, End = %l
d"
,
range
.
cpMin
,
range
.
cpMax
);
sprintf
(
buf
,
"Start = %
d, End = %
d"
,
range
.
cpMin
,
range
.
cpMax
);
MessageBoxA
(
hWnd
,
buf
,
"Editor"
,
MB_OK
);
MessageBoxW
(
hWnd
,
data
,
xszAppTitle
,
MB_OK
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
...
...
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