summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
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;