summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-04-13 14:44:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-04-13 14:44:28 +0300
commit9f61e31b9ccdfe93b693998cab1baa331f87cd97 (patch)
treee48c97d10a90ef4a544bd84ccb5fd6cae6603e4a /include
parentb217f24e496c98b4f7af416ca61e67571fb6b2bf (diff)
two new functions: CDlgBase::Resize & Hide
Diffstat (limited to 'include')
-rw-r--r--include/m_gui.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/m_gui.h b/include/m_gui.h
index 36e3e0289f..7a48523938 100644
--- a/include/m_gui.h
+++ b/include/m_gui.h
@@ -382,6 +382,8 @@ public:
virtual ~CDlgBase();
// general utilities
+ void Close();
+ void Resize();
void Create();
void Show(int nCmdShow = SW_SHOW);
int DoModal();
@@ -390,13 +392,13 @@ public:
void SetCaption(const wchar_t *ptszCaption);
void NotifyChange(void); // sends a notification to a parent window
+ __forceinline void Fail() { m_lresult = false; }
__forceinline HINSTANCE GetInst() const { return m_hInst; }
__forceinline HWND GetHwnd() const { return m_hwnd; }
+ __forceinline void Hide() { Show(SW_HIDE); }
__forceinline bool IsInitialized() const { return m_initialized; }
__forceinline void SetParent(HWND hwnd) { m_hwndParent = hwnd; }
- __forceinline void Close() { SendMessage(m_hwnd, WM_CLOSE, 0, 0); }
- __forceinline void Fail() { m_lresult = false; }
-
+
__forceinline CCtrlBase* operator[](int iControlId) { return FindControl(iControlId); }
static CDlgBase* Find(HWND hwnd);