summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-03-28 01:42:58 +0000
committerIan C <ianc@noddybox.co.uk>2005-03-28 01:42:58 +0000
commit82f1d860690dc0a2d0210db12344f7ea5e88b6a4 (patch)
tree517481a81e64cc70b5187ce6eeb20d8fa326fa54 /src/window.cpp
parent4f54380eb1f7574bf9cc147cb8870508da09e10c (diff)
Added ComboBox. Also improved callback filtering and made controls auto register themselves.
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index c34c5ca..492ecfd 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -51,9 +51,18 @@ HWND Window::GetHWND()
// ------------------------------------------------------------
//
+LRESULT Window::SendMsg(UINT msg, WPARAM wp, LPARAM lp)
+
+{
+ return SendMessage(m_wnd,msg,wp,lp);
+}
+
+
+// ------------------------------------------------------------
+//
void Window::SetText(const char *text)
{
- ::SendMessage(m_wnd,WM_SETTEXT,0,reinterpret_cast<LPARAM>(text));
+ SendMsg(WM_SETTEXT,0,reinterpret_cast<LPARAM>(text));
}
@@ -66,7 +75,7 @@ std::string Window::GetText(int maxlen)
buff[0]=0;
- ::SendMessage(m_wnd,WM_GETTEXT,maxlen,reinterpret_cast<LPARAM>(buff));
+ SendMsg(WM_GETTEXT,maxlen,reinterpret_cast<LPARAM>(buff));
res=buff;
delete[] buff;