diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-18 17:38:38 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-18 17:38:38 +1100 |
commit | bac6aef730e569c6b4bcda7026bf1c1db3e827b6 (patch) | |
tree | 898ef25cd1964752c397cb752866b9527c1f9c30 /win32/PlatWin.cxx | |
parent | 30e8720a235014e96125f9142e5c0a7e628526ce (diff) | |
download | scintilla-mirror-bac6aef730e569c6b4bcda7026bf1c1db3e827b6.tar.gz |
ListBox options API. ListOptions is currently empty but may contain list item
colours in the future.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r-- | win32/PlatWin.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 7b5ece752..f94bf058c 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -2512,6 +2512,7 @@ class ListBoxX : public ListBox { Point dragOffset; Point location; // Caret location at which the list is opened int wheelDelta; // mouse wheel residue + ListOptions options; HWND GetHWND() const noexcept; void AppendListItem(const char *text, const char *numword); @@ -2568,6 +2569,7 @@ public: void ClearRegisteredImages() override; void SetDelegate(IListBoxDelegate *lbDelegate) override; void SetList(const char *list, char separator, char typesep) override; + void SetOptions(ListOptions options_) override; void Draw(DRAWITEMSTRUCT *pDrawItem); LRESULT WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); static LRESULT PASCAL StaticWndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); @@ -2874,6 +2876,10 @@ void ListBoxX::SetList(const char *list, char separator, char typesep) { SetRedraw(true); } +void ListBoxX::SetOptions(ListOptions options_) { + options = options_; +} + void ListBoxX::AdjustWindowRect(PRectangle *rc, UINT dpi) noexcept { RECT rcw = RectFromPRectangle(*rc); if (fnAdjustWindowRectExForDpi) { |