From 3516256c28c29d13e9092e7bb3ea3b417d3bb6df Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 9 Jun 2017 01:04:52 -0700 Subject: Implement CPWL_ComboBox::OnDestroy() to manage unowned pointers. CPWL_ComboBox's unowned pointers to other CPWL_Wnds need to be released at the right time. Also release the unowned pointer for CPWL_Wnd's vertical scroll bar at the right time. BUG=729041 Change-Id: I06a1da35fcb18dae8faf9cd4fbc0b75d38f115b0 Reviewed-on: https://pdfium-review.googlesource.com/6418 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fpdfsdk/pdfwindow/cpwl_wnd.h | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'fpdfsdk/pdfwindow/cpwl_wnd.h') diff --git a/fpdfsdk/pdfwindow/cpwl_wnd.h b/fpdfsdk/pdfwindow/cpwl_wnd.h index 86b0c66272..e7a4e23c38 100644 --- a/fpdfsdk/pdfwindow/cpwl_wnd.h +++ b/fpdfsdk/pdfwindow/cpwl_wnd.h @@ -73,18 +73,15 @@ class IPWL_Provider; #define PRES_TEXTOVERFLOW 0x0400L // notification messages -#define PNM_ADDCHILD 0x00000000L -#define PNM_REMOVECHILD 0x00000001L -#define PNM_SETSCROLLINFO 0x00000002L -#define PNM_SETSCROLLPOS 0x00000003L -#define PNM_SCROLLWINDOW 0x00000004L -#define PNM_LBUTTONDOWN 0x00000005L -#define PNM_LBUTTONUP 0x00000006L -#define PNM_MOUSEMOVE 0x00000007L -#define PNM_NOTERESET 0x00000008L -#define PNM_SETCARETINFO 0x00000009L -#define PNM_SELCHANGED 0x0000000AL -#define PNM_NOTEEDITCHANGED 0x0000000BL +#define PNM_ADDCHILD 0 +#define PNM_REMOVECHILD 1 +#define PNM_SETSCROLLINFO 2 +#define PNM_SETSCROLLPOS 3 +#define PNM_SCROLLWINDOW 4 +#define PNM_LBUTTONDOWN 5 +#define PNM_LBUTTONUP 6 +#define PNM_MOUSEMOVE 7 +#define PNM_SETCARETINFO 8 #define PWL_CLASSNAME_EDIT "CPWL_Edit" -- cgit v1.2.3