From 82f1d860690dc0a2d0210db12344f7ea5e88b6a4 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 28 Mar 2005 01:42:58 +0000 Subject: Added ComboBox. Also improved callback filtering and made controls auto register themselves. --- src/window.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/window.cpp') diff --git a/src/window.cpp b/src/window.cpp index c34c5ca..492ecfd 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -49,11 +49,20 @@ 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(text)); + SendMsg(WM_SETTEXT,0,reinterpret_cast(text)); } @@ -66,7 +75,7 @@ std::string Window::GetText(int maxlen) buff[0]=0; - ::SendMessage(m_wnd,WM_GETTEXT,maxlen,reinterpret_cast(buff)); + SendMsg(WM_GETTEXT,maxlen,reinterpret_cast(buff)); res=buff; delete[] buff; -- cgit v1.2.3