Commit c8d96b96 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

wordpad: Improve the indentation of bulleted lists.

parent 123b0c69
...@@ -2353,22 +2353,28 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam) ...@@ -2353,22 +2353,28 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
case ID_BULLET: case ID_BULLET:
{ {
PARAFORMAT pf; PARAFORMAT2 pf;
pf.cbSize = sizeof(pf); pf.cbSize = sizeof(pf);
pf.dwMask = PFM_NUMBERING; pf.dwMask = PFM_NUMBERING;
SendMessageW(hwndEditor, EM_GETPARAFORMAT, 0, (LPARAM)&pf); SendMessageW(hwndEditor, EM_GETPARAFORMAT, 0, (LPARAM)&pf);
pf.dwMask |= PFM_OFFSET; pf.dwMask = PFM_NUMBERING | PFM_NUMBERINGSTART | PFM_NUMBERINGTAB | PFM_OFFSET | PFM_OFFSETINDENT;
if(pf.wNumbering == PFN_BULLET) if(pf.wNumbering == PFN_BULLET)
{ {
pf.wNumbering = 0; pf.wNumbering = 0;
pf.wNumberingStart = 0;
pf.wNumberingTab = 0;
pf.dxOffset = 0; pf.dxOffset = 0;
pf.dxStartIndent = -360;
} else } else
{ {
pf.wNumbering = PFN_BULLET; pf.wNumbering = PFN_BULLET;
pf.dxOffset = 720; pf.wNumberingStart = 1;
pf.wNumberingTab = 360;
pf.dxOffset = 360;
pf.dxStartIndent = 360;
} }
SendMessageW(hwndEditor, EM_SETPARAFORMAT, 0, (LPARAM)&pf); SendMessageW(hwndEditor, EM_SETPARAFORMAT, 0, (LPARAM)&pf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment