wordpad: Add bullet points button.
This commit is contained in:
parent
d4ddb7f3be
commit
063a6777c2
|
@ -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 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 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 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'
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue