From aecbb11e405f17de26bc5ab841168a27e48fdd89 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Thu, 22 Feb 2007 13:54:28 +0900 Subject: [PATCH] comctl32: Implement LVM_SETUNICODEFORMAT. --- dlls/comctl32/listview.c | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index b14537a2826..aca548f22c7 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -7458,7 +7458,23 @@ static HWND LISTVIEW_SetToolTips( LISTVIEW_INFO *infoPtr, HWND hwndNewToolTip) return hwndOldToolTip; } -/* LISTVIEW_SetUnicodeFormat */ +/* + * DESCRIPTION: + * sets the Unicode character format flag for the control + * PARAMETER(S): + * [I] infoPtr :valid pointer to the listview structure + * [I] fUnicode :true to switch to UNICODE false to switch to ANSI + * + * RETURN: + * Old Unicode Format + */ +static BOOL LISTVIEW_SetUnicodeFormat( LISTVIEW_INFO *infoPtr, BOOL fUnicode) +{ + BOOL rc = infoPtr->notifyFormat; + infoPtr->notifyFormat = (fUnicode)?NFR_UNICODE:NFR_ANSI; + return rc; +} + /* LISTVIEW_SetWorkAreas */ /*** @@ -9604,7 +9620,8 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case LVM_SETTOOLTIPS: return (LRESULT)LISTVIEW_SetToolTips(infoPtr, (HWND)lParam); - /* case LVM_SETUNICODEFORMAT: */ + case LVM_SETUNICODEFORMAT: + return LISTVIEW_SetUnicodeFormat(infoPtr, wParam); /* case LVM_SETVIEW: */ -- 2.11.4.GIT