summaryrefslogtreecommitdiff
path: root/src/w32dlib/control.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-03-24 02:09:13 +0000
committerIan C <ianc@noddybox.co.uk>2005-03-24 02:09:13 +0000
commit2d704117349864405f1c749b40bdd9d6f819ca03 (patch)
treef3b6c215db178fd94bd977ffd7c7961a243e6ee4 /src/w32dlib/control.h
parent5a11b5f4b59c46e919989a0fdd05d81ba5ac9347 (diff)
Code updates (first working version)
Diffstat (limited to 'src/w32dlib/control.h')
-rw-r--r--src/w32dlib/control.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/w32dlib/control.h b/src/w32dlib/control.h
index 7aef528..85106a9 100644
--- a/src/w32dlib/control.h
+++ b/src/w32dlib/control.h
@@ -63,6 +63,22 @@ namespace W32DLib
///
std::string GetText(int maxlen);
+ /// \brief Enables or disables the control.
+ ///
+ /// Calling this when the dialog is not on display is undefined.
+ ///
+ /// \param enable Set true to enable, false to disable.
+ ///
+ void Enable(bool enable);
+
+ /// \brief Gets the control's window handle
+ ///
+ /// Calling this when the dialog is not on display is undefined.
+ ///
+ /// \return The window handle
+ ///
+ HWND GetHWND();
+
/// \brief Processes a windows event.
///
/// \param msg The Windows event parameters
@@ -94,6 +110,10 @@ namespace W32DLib
///
int m_resid;
+ /// \brief Filled in when the WM_INITDIALOG message is recieved.
+ ///
+ HWND m_wnd;
+
private:
struct CallbackDetails