diff options
| author | George Hazan <ghazan@miranda.im> | 2021-05-15 23:01:52 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2021-05-15 23:01:52 +0300 |
| commit | 615afbd839b22a7a170c477481ef67e5603b9709 (patch) | |
| tree | 60e94f6264420b630edf11b424cea2e8beb9370d /include | |
| parent | d58ff2a433bb441aef9c8f87de14cf27594baaf9 (diff) | |
SetDraw(bool bEnable) - a wrapper for WM_SETREDRAW command
Diffstat (limited to 'include')
| -rw-r--r-- | include/m_gui.h | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/include/m_gui.h b/include/m_gui.h index 7cf7db58d9..85fba587a4 100644 --- a/include/m_gui.h +++ b/include/m_gui.h @@ -339,6 +339,7 @@ public: CCtrlBase* FindControl(HWND hwnd);
void SetCaption(const wchar_t *ptszCaption);
+ void SetDraw(bool bEnable);
void NotifyChange(void); // sends a notification to a parent window
__forceinline HINSTANCE GetInst() const { return m_pPlugin.getInst(); }
@@ -491,12 +492,13 @@ public: bool Enabled(void) const;
void NotifyChange();
+ void SetDraw(bool bEnable);
- LRESULT SendMsg(UINT Msg, WPARAM wParam, LPARAM lParam) const;
+ LRESULT SendMsg(UINT Msg, WPARAM wParam, LPARAM lParam) const;
- void SetText(const wchar_t *text);
- void SetTextA(const char *text);
- void SetInt(int value);
+ void SetText(const wchar_t *text);
+ void SetTextA(const char *text);
+ void SetInt(int value);
wchar_t* GetText() const;
char* GetTextA() const;
@@ -508,18 +510,18 @@ public: int GetInt() const;
- virtual BOOL OnCommand(HWND /*hwndCtrl*/, WORD /*idCtrl*/, WORD /*idCode*/) { return FALSE; }
- virtual BOOL OnNotify(int /*idCtrl*/, NMHDR* /*pnmh*/) { return FALSE; }
-
- virtual BOOL OnMeasureItem(MEASUREITEMSTRUCT*) { return FALSE; }
- virtual BOOL OnDrawItem(DRAWITEMSTRUCT*) { return FALSE; }
- virtual BOOL OnDeleteItem(DELETEITEMSTRUCT*) { return FALSE; }
-
- virtual void OnInit();
- virtual void OnDestroy();
-
- virtual bool OnApply();
- virtual void OnReset();
+ virtual BOOL OnCommand(HWND /*hwndCtrl*/, WORD /*idCtrl*/, WORD /*idCode*/) { return FALSE; }
+ virtual BOOL OnNotify(int /*idCtrl*/, NMHDR* /*pnmh*/) { return FALSE; }
+
+ virtual BOOL OnMeasureItem(MEASUREITEMSTRUCT*) { return FALSE; }
+ virtual BOOL OnDrawItem(DRAWITEMSTRUCT*) { return FALSE; }
+ virtual BOOL OnDeleteItem(DELETEITEMSTRUCT*) { return FALSE; }
+
+ virtual void OnInit();
+ virtual void OnDestroy();
+
+ virtual bool OnApply();
+ virtual void OnReset();
protected:
HWND m_hwnd = nullptr; // must be the first data item
|
