Alexander Nicolaysen Sørnes : wordpad: Add bullet points button.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Aug 20 07:42:43 CDT 2007
Module: wine
Branch: master
Commit: 063a6777c2f2364692b4db1345fac8613fed2d21
URL: http://source.winehq.org/git/wine.git/?a=commit;h=063a6777c2f2364692b4db1345fac8613fed2d21
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Fri Jul 20 21:18:02 2007 +0200
wordpad: Add bullet points button.
---
programs/wordpad/rsrc.rc | 50 +++++++++++++++++++++++++------------------
programs/wordpad/wordpad.c | 5 +++-
2 files changed, 33 insertions(+), 22 deletions(-)
diff --git a/programs/wordpad/rsrc.rc b/programs/wordpad/rsrc.rc
index 89f1485..d53e6f4 100644
--- a/programs/wordpad/rsrc.rc
+++ b/programs/wordpad/rsrc.rc
@@ -67,9 +67,9 @@ IDB_TOOLBAR BITMAP "toolbar.bmp"
/* BINRES formatbar.bmp */
IDB_FORMATBAR BITMAP "formatbar.bmp"
/* {
- '42 4d 76 03 00 00 00 00 00 00 76 00 00 00 28 00'
- '00 00 60 00 00 00 10 00 00 00 01 00 04 00 00 00'
- '00 00 00 03 00 00 12 0b 00 00 12 0b 00 00 00 00'
+ '42 4d f6 03 00 00 00 00 00 00 76 00 00 00 28 00'
+ '00 00 70 00 00 00 10 00 00 00 01 00 04 00 00 00'
+ '00 00 80 03 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'
@@ -78,48 +78,56 @@ IDB_FORMATBAR BITMAP "formatbar.bmp"
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
- '88 88 88 88 88 88 88 88 00 00 00 00 88 88 88 88'
+ '88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
+ '00 00 00 00 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 00'
'00 00 00 00 08 88 88 00 00 00 00 00 00 88 88 88'
- '80 00 00 00 00 88 88 80 00 00 00 88 88 88 88 88'
- '00 00 08 88 88 88 88 88 80 00 00 08 88 88 88 88'
- '88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
- '88 88 88 88 88 88 88 80 08 88 80 08 88 88 88 88'
+ '80 00 00 00 00 88 84 44 88 88 88 88 88 88 88 80'
+ '00 00 00 88 88 88 88 88 00 00 08 88 88 88 88 88'
+ '80 00 00 08 88 88 88 88 88 88 88 88 88 88 88 88'
+ '88 88 88 88 88 88 88 88 88 88 88 88 88 88 84 44'
+ '88 00 00 00 00 88 88 80 08 88 80 08 88 88 88 88'
'88 08 88 88 88 88 88 88 08 88 88 80 88 88 88 00'
'00 00 08 88 88 88 88 88 80 00 00 08 88 88 88 00'
- '00 00 00 00 00 88 88 80 08 88 80 08 88 88 88 88'
- '88 08 88 88 88 88 88 88 08 88 88 80 88 88 88 88'
+ '00 00 00 00 00 88 84 44 88 88 88 88 88 88 88 80'
+ '08 88 80 08 88 88 88 88 88 08 88 88 88 88 88 88'
+ '08 88 88 80 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 80 08 88 80 08 88 88 88 88'
'88 08 88 88 88 88 88 88 08 88 88 80 88 88 88 00'
'00 00 00 00 00 88 88 88 00 00 00 00 88 88 88 88'
- '88 00 00 00 00 88 88 80 08 88 80 08 88 88 88 88'
- '88 80 88 88 88 88 88 88 08 88 88 80 88 88 88 88'
- '88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
+ '88 00 00 00 00 88 88 88 88 88 88 88 88 88 88 80'
+ '08 88 80 08 88 88 88 88 88 80 88 88 88 88 88 88'
+ '08 88 88 80 88 88 88 88 88 88 88 88 88 88 88 88'
+ '88 88 88 88 88 88 88 88 88 88 88 88 88 88 84 44'
'88 88 88 88 88 88 88 80 00 00 00 88 88 88 88 88'
'88 80 88 88 88 88 88 88 08 88 88 80 88 88 88 00'
'00 00 00 08 88 88 88 00 00 00 00 00 00 88 88 88'
- '88 88 80 00 00 88 88 80 08 88 80 08 88 88 88 88'
- '88 80 88 88 88 88 88 88 08 88 88 80 88 88 88 88'
- '88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
+ '88 88 80 00 00 88 84 44 88 00 00 00 00 88 88 80'
+ '08 88 80 08 88 88 88 88 88 80 88 88 88 88 88 88'
+ '08 88 88 80 88 88 88 88 88 88 88 88 88 88 88 88'
+ '88 88 88 88 88 88 88 88 88 88 88 88 88 88 84 44'
'88 88 88 88 88 88 88 80 08 88 80 08 88 88 88 88'
'88 88 08 88 88 88 88 88 08 88 88 80 88 88 88 00'
'00 00 00 00 00 88 88 88 00 00 00 00 88 88 88 80'
- '00 00 00 00 00 88 88 80 08 88 80 08 88 88 88 88'
- '88 88 08 88 88 88 88 88 08 88 88 80 88 88 88 88'
+ '00 00 00 00 00 88 88 88 88 88 88 88 88 88 88 80'
+ '08 88 80 08 88 88 88 88 88 88 08 88 88 88 88 88'
+ '08 88 88 80 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 80 00 00 00 88 88 88 88 88'
'88 00 00 08 88 88 88 88 08 88 88 80 88 88 88 00'
'00 00 00 88 88 88 88 88 80 00 00 08 88 88 88 88'
- '88 00 00 00 00 88 88 88 88 88 88 88 88 88 88 88'
- '88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
+ '88 00 00 00 00 88 84 44 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
+ '88 88 88 88 88 88 88 88 88 88 88 88 88 88 84 44'
+ '88 00 00 00 00 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 00'
'00 00 00 00 00 88 88 00 00 00 00 00 00 88 88 00'
- '00 00 00 00 00 88 88 88 88 88 88 88 88 88 88 88'
+ '00 00 00 00 00 88 84 44 88 88 88 88 88 88 88 88'
+ '88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88 88 88 88 88 88 88 88 88 88 88'
'88 88 88 88 88 88'
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index d458e0c..34070ed 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -663,7 +663,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
hFormatBarWnd = CreateToolbarEx(hReBarWnd,
CCS_NOPARENTALIGN | CCS_NOMOVEY | WS_VISIBLE | TBSTYLE_TOOLTIPS | TBSTYLE_BUTTON,
- IDC_FORMATBAR, 6, hInstance, IDB_FORMATBAR, NULL, 0, 16, 16, 16, 16, sizeof(TBBUTTON));
+ IDC_FORMATBAR, 7, hInstance, IDB_FORMATBAR, NULL, 0, 16, 16, 16, 16, sizeof(TBBUTTON));
AddButton(hFormatBarWnd, 0, ID_FORMAT_BOLD);
AddButton(hFormatBarWnd, 1, ID_FORMAT_ITALIC);
@@ -672,6 +672,8 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
AddButton(hFormatBarWnd, 3, ID_ALIGN_LEFT);
AddButton(hFormatBarWnd, 4, ID_ALIGN_CENTER);
AddButton(hFormatBarWnd, 5, ID_ALIGN_RIGHT);
+ AddSeparator(hFormatBarWnd);
+ AddButton(hFormatBarWnd, 6, ID_BULLET);
SendMessageW(hFormatBarWnd, TB_AUTOSIZE, 0, 0);
@@ -759,6 +761,7 @@ static LRESULT OnUser( HWND hWnd, WPARAM wParam, LPARAM lParam)
SendMessageW(hwndFormatBar, TB_CHECKBUTTON, ID_ALIGN_CENTER, (pf.wAlignment == PFA_CENTER));
SendMessageW(hwndFormatBar, TB_CHECKBUTTON, ID_ALIGN_RIGHT, (pf.wAlignment == PFA_RIGHT));
+ SendMessageW(hwndFormatBar, TB_CHECKBUTTON, ID_BULLET, (pf.wNumbering & PFN_BULLET));
return 0;
}
More information about the wine-cvs
mailing list