[resend 1/2] comctl32: Preserve title when creating ListView window.

Vadim Druzhin cdslow at mail.ru
Wed Oct 11 02:10:37 CDT 2017


Fix for NTPWEdit (http://cdslow.org.ru/en/ntpwedit/index.html).

Signed-off-by: Vadim Druzhin <cdslow at mail.ru>
---
 dlls/comctl32/listview.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 73eceff..8114222 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -9532,6 +9532,10 @@ static LRESULT LISTVIEW_NCCreate(HWND hwnd, const CREATESTRUCTW *lpcs)
   if (!(infoPtr->hdpaPosX  = DPA_Create(10))) goto fail;
   if (!(infoPtr->hdpaPosY  = DPA_Create(10))) goto fail;
   if (!(infoPtr->hdpaColumns = DPA_Create(10))) goto fail;
+
+  /* Preserve window title */
+  DefWindowProcW(hwnd, WM_SETTEXT, 0, (LPARAM)(lpcs->lpszName));
+
   return TRUE;

 fail:
--
2.5.5


More information about the wine-patches mailing list