Aric Stewart : comctl32: Implement LVM_SETUNICODEFORMAT.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Feb 22 05:56:38 CST 2007


Module: wine
Branch: master
Commit: aecbb11e405f17de26bc5ab841168a27e48fdd89
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=aecbb11e405f17de26bc5ab841168a27e48fdd89

Author: Aric Stewart <aric at codeweavers.com>
Date:   Thu Feb 22 13:54:28 2007 +0900

comctl32: Implement LVM_SETUNICODEFORMAT.

---

 dlls/comctl32/listview.c |   21 +++++++++++++++++++--
 1 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index b14537a..aca548f 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: */
 




More information about the wine-cvs mailing list