From 8fba261fb6584169c5788326dd49e91bc9babda5 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 26 Oct 2018 21:27:41 +0000 Subject: Remove pParentWnd field entirely from CreateParams. Put it into CPWL_Wnd directly, and set/clear it when a child is added/removed from a parent. Change-Id: I7a8cd0cf22dbd6173e64bec5d844df56ad373722 Reviewed-on: https://pdfium-review.googlesource.com/c/44692 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- fpdfsdk/pwl/cpwl_combo_box.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'fpdfsdk/pwl/cpwl_combo_box.cpp') diff --git a/fpdfsdk/pwl/cpwl_combo_box.cpp b/fpdfsdk/pwl/cpwl_combo_box.cpp index db1def0758..70893ca437 100644 --- a/fpdfsdk/pwl/cpwl_combo_box.cpp +++ b/fpdfsdk/pwl/cpwl_combo_box.cpp @@ -277,7 +277,6 @@ void CPWL_ComboBox::CreateEdit(const CreateParams& cp) { AddChild(m_pEdit.Get()); CreateParams ecp = cp; - ecp.pParentWnd = this; ecp.dwFlags = PWS_VISIBLE | PWS_CHILD | PWS_BORDER | PES_CENTER | PES_AUTOSCROLL | PES_UNDO; @@ -301,7 +300,6 @@ void CPWL_ComboBox::CreateButton(const CreateParams& cp) { AddChild(m_pButton.Get()); CreateParams bcp = cp; - bcp.pParentWnd = this; bcp.dwFlags = PWS_VISIBLE | PWS_CHILD | PWS_BORDER | PWS_BACKGROUND; bcp.sBackgroundColor = CFX_Color(CFX_Color::kRGB, 220.0f / 255.0f, 220.0f / 255.0f, 220.0f / 255.0f); @@ -321,7 +319,6 @@ void CPWL_ComboBox::CreateListBox(const CreateParams& cp) { AddChild(m_pList.Get()); CreateParams lcp = cp; - lcp.pParentWnd = this; lcp.dwFlags = PWS_CHILD | PWS_BORDER | PWS_BACKGROUND | PLBS_HOVERSEL | PWS_VSCROLL; lcp.nBorderStyle = BorderStyle::SOLID; -- cgit v1.2.3