Alexander Nicolaysen Sørnes : wordpad: Small cosmetic fixes.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 27 06:46:01 CST 2007
Module: wine
Branch: master
Commit: b42fcee0b1c316b46350b03e1841065526c4d8ae
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b42fcee0b1c316b46350b03e1841065526c4d8ae
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Tue Feb 27 03:10:36 2007 +0100
wordpad: Small cosmetic fixes.
- Clear title bar when creating new document.
- Remove newline from statusbar.
- Add horizontal line to toolbar.
---
programs/wordpad/wordpad.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index dccbfef..2c650e0 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -290,7 +290,7 @@ static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
if(!SendMessage(hReBarWnd, RB_SETBARINFO, 0, (LPARAM)&rbi))
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,
3, hInstance, IDB_TOOLBAR,
NULL, 0,
@@ -396,7 +396,7 @@ static LRESULT OnNotify( HWND hWnd, WPARAM wParam, LPARAM lParam)
SELCHANGE *pSC = (SELCHANGE *)lParam;
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,
SendMessage(hwndEditor, EM_GETLINECOUNT, 0, 0));
SetWindowText(GetDlgItem(hWnd, IDC_STATUSBAR), buf);
@@ -421,6 +421,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
case ID_FILE_NEW:
SetWindowTextA(hwndEditor, "");
+ SetWindowTextW(hMainWnd, wszAppTitle);
/* FIXME: set default format too */
break;
More information about the wine-cvs
mailing list