Commit b42fcee0 authored by Alexander Nicolaysen Sørnes's avatar Alexander Nicolaysen Sørnes Committed by Alexandre Julliard

wordpad: Small cosmetic fixes.

- Clear title bar when creating new document. - Remove newline from statusbar. - Add horizontal line to toolbar.
parent ade9fd64
...@@ -290,7 +290,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam) ...@@ -290,7 +290,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
if(!SendMessage(hReBarWnd, RB_SETBARINFO, 0, (LPARAM)&rbi)) if(!SendMessage(hReBarWnd, RB_SETBARINFO, 0, (LPARAM)&rbi))
return -1; return -1;
hToolBarWnd = CreateToolbarEx(hReBarWnd, CCS_NOPARENTALIGN|CCS_NODIVIDER|CCS_NOMOVEY|WS_VISIBLE|WS_CHILD|TBSTYLE_TOOLTIPS|TBSTYLE_BUTTON, hToolBarWnd = CreateToolbarEx(hReBarWnd, CCS_NOPARENTALIGN|CCS_NOMOVEY|WS_VISIBLE|WS_CHILD|TBSTYLE_TOOLTIPS|TBSTYLE_BUTTON,
IDC_TOOLBAR, IDC_TOOLBAR,
3, hInstance, IDB_TOOLBAR, 3, hInstance, IDB_TOOLBAR,
NULL, 0, NULL, 0,
...@@ -396,7 +396,7 @@ static LRESULT OnNotify( HWND hWnd, WPARAM wParam, LPARAM lParam) ...@@ -396,7 +396,7 @@ static LRESULT OnNotify( HWND hWnd, WPARAM wParam, LPARAM lParam)
SELCHANGE *pSC = (SELCHANGE *)lParam; SELCHANGE *pSC = (SELCHANGE *)lParam;
char buf[128]; char buf[128];
sprintf( buf,"selection = %d..%d, line count=%ld\n", sprintf( buf,"selection = %d..%d, line count=%ld",
pSC->chrg.cpMin, pSC->chrg.cpMax, pSC->chrg.cpMin, pSC->chrg.cpMax,
SendMessage(hwndEditor, EM_GETLINECOUNT, 0, 0)); SendMessage(hwndEditor, EM_GETLINECOUNT, 0, 0));
SetWindowText(GetDlgItem(hWnd, IDC_STATUSBAR), buf); SetWindowText(GetDlgItem(hWnd, IDC_STATUSBAR), buf);
...@@ -421,6 +421,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam) ...@@ -421,6 +421,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
case ID_FILE_NEW: case ID_FILE_NEW:
SetWindowTextA(hwndEditor, ""); SetWindowTextA(hwndEditor, "");
SetWindowTextW(hMainWnd, wszAppTitle);
/* FIXME: set default format too */ /* FIXME: set default format too */
break; break;
......
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