Implement LVM_SETUNICODEFORMAT
Aric Stewart
aric at codeweavers.com
Wed Feb 21 22:54:28 CST 2007
Implement LVM_SETUNICODEFORMAT
---
dlls/comctl32/listview.c | 20 ++++++++++++++++++--
1 files changed, 18 insertions(+), 2 deletions(-)
-------------- next part --------------
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index b14537a..1bc3c84 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -7457,8 +7457,23 @@ static HWND LISTVIEW_SetToolTips( LISTVI
infoPtr->hwndToolTip = hwndNewToolTip;
return hwndOldToolTip;
}
+/*
+ * 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_SetUnicodeFormat */
/* LISTVIEW_SetWorkAreas */
/***
@@ -9604,7 +9619,8 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg
case LVM_SETTOOLTIPS:
return (LRESULT)LISTVIEW_SetToolTips(infoPtr, (HWND)lParam);
- /* case LVM_SETUNICODEFORMAT: */
+ case LVM_SETUNICODEFORMAT:
+ return (LRESULT)LISTVIEW_SetUnicodeFormat(infoPtr,(BOOL)wParam);
/* case LVM_SETVIEW: */
More information about the wine-patches
mailing list