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
b2e7e5c3
Commit
b2e7e5c3
authored
Apr 19, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Set the window small icon, and get rid of old icons.
parent
07638618
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
7 additions
and
25 deletions
+7
-25
rsrc.rc
programs/wordpad/rsrc.rc
+0
-9
rtf.ico
programs/wordpad/rtf.ico
+0
-0
txt.ico
programs/wordpad/txt.ico
+0
-0
wordpad.c
programs/wordpad/wordpad.c
+6
-12
wordpad.h
programs/wordpad/wordpad.h
+1
-4
wri.ico
programs/wordpad/wri.ico
+0
-0
No files found.
programs/wordpad/rsrc.rc
View file @
b2e7e5c3
...
...
@@ -52,14 +52,5 @@ IDB_FORMATBAR BITMAP "formatbar.bmp"
/* @makedep: wordpad.ico */
IDI_WORDPAD ICON "wordpad.ico"
/* @makedep: rtf.ico */
IDI_RTF ICON "rtf.ico"
/* @makedep: wri.ico */
IDI_WRI ICON "wri.ico"
/* @makedep: txt.ico */
IDI_TXT ICON "txt.ico"
/* @makedep: zoom.cur */
IDC_ZOOM CURSOR "zoom.cur"
programs/wordpad/rtf.ico
deleted
100644 → 0
View file @
07638618
2.19 KB
programs/wordpad/txt.ico
deleted
100644 → 0
View file @
07638618
2.19 KB
programs/wordpad/wordpad.c
View file @
b2e7e5c3
...
...
@@ -703,17 +703,8 @@ static void preview_exit(HWND hMainWnd)
static
void
set_fileformat
(
WPARAM
format
)
{
HICON
hIcon
;
HINSTANCE
hInstance
=
GetModuleHandleW
(
0
);
fileFormat
=
format
;
if
(
format
&
SF_TEXT
)
hIcon
=
LoadIconW
(
hInstance
,
MAKEINTRESOURCEW
(
IDI_TXT
));
else
hIcon
=
LoadIconW
(
hInstance
,
MAKEINTRESOURCEW
(
IDI_RTF
));
SendMessageW
(
hMainWnd
,
WM_SETICON
,
ICON_BIG
,
(
LPARAM
)
hIcon
);
set_bar_states
();
set_default_font
();
target_device
(
hMainWnd
,
wordWrap
[
reg_formatindex
(
fileFormat
)]);
...
...
@@ -2618,7 +2609,7 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
{
INITCOMMONCONTROLSEX
classes
=
{
8
,
ICC_BAR_CLASSES
|
ICC_COOL_CLASSES
|
ICC_USEREX_CLASSES
};
HACCEL
hAccel
;
WNDCLASSW
wc
;
WNDCLASS
EX
W
wc
;
MSG
msg
;
RECT
rc
;
UINT_PTR
hPrevRulerProc
;
...
...
@@ -2638,11 +2629,13 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
wc
.
cbWndExtra
=
4
;
wc
.
hInstance
=
hInstance
;
wc
.
hIcon
=
LoadIconW
(
hInstance
,
MAKEINTRESOURCEW
(
IDI_WORDPAD
));
wc
.
hIconSm
=
LoadImageW
(
hInstance
,
MAKEINTRESOURCEW
(
IDI_WORDPAD
),
IMAGE_ICON
,
GetSystemMetrics
(
SM_CXSMICON
),
GetSystemMetrics
(
SM_CYSMICON
),
LR_SHARED
);
wc
.
hCursor
=
LoadCursor
(
NULL
,
IDC_IBEAM
);
wc
.
hbrBackground
=
GetSysColorBrush
(
COLOR_WINDOW
);
wc
.
lpszMenuName
=
MAKEINTRESOURCEW
(
IDM_MAINMENU
);
wc
.
lpszClassName
=
wszMainWndClass
;
RegisterClassW
(
&
wc
);
RegisterClass
Ex
W
(
&
wc
);
wc
.
style
=
CS_HREDRAW
|
CS_VREDRAW
;
wc
.
lpfnWndProc
=
preview_proc
;
...
...
@@ -2650,11 +2643,12 @@ int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hOldInstance, LPSTR szCmdPar
wc
.
cbWndExtra
=
0
;
wc
.
hInstance
=
hInstance
;
wc
.
hIcon
=
NULL
;
wc
.
hIconSm
=
NULL
;
wc
.
hCursor
=
LoadCursor
(
NULL
,
IDC_IBEAM
);
wc
.
hbrBackground
=
GetSysColorBrush
(
COLOR_WINDOW
);
wc
.
lpszMenuName
=
NULL
;
wc
.
lpszClassName
=
wszPreviewWndClass
;
RegisterClassW
(
&
wc
);
RegisterClass
Ex
W
(
&
wc
);
registry_read_winrect
(
&
rc
);
hMainWnd
=
CreateWindowExW
(
0
,
wszMainWndClass
,
wszAppTitle
,
WS_CLIPCHILDREN
|
WS_OVERLAPPEDWINDOW
,
...
...
programs/wordpad/wordpad.h
View file @
b2e7e5c3
...
...
@@ -185,11 +185,8 @@
#define IDB_FORMATBAR 101
#define IDI_WORDPAD 102
#define IDI_RTF 103
#define IDI_WRI 104
#define IDI_TXT 105
#define IDC_ZOOM 10
6
#define IDC_ZOOM 10
3
#define STRING_ALL_FILES 1400
#define STRING_TEXT_FILES_TXT 1401
...
...
programs/wordpad/wri.ico
deleted
100644 → 0
View file @
07638618
2.19 KB
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