diff options
Diffstat (limited to 'plugingui/nativewindow_win32.cc')
-rw-r--r-- | plugingui/nativewindow_win32.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugingui/nativewindow_win32.cc b/plugingui/nativewindow_win32.cc index a98ef4c..b1e22c5 100644 --- a/plugingui/nativewindow_win32.cc +++ b/plugingui/nativewindow_win32.cc @@ -52,7 +52,7 @@ GUI::NativeWindowWin32::NativeWindowWin32(GlobalContext *gctx, // object - we need this in the wndproc handler. wcex.cbSize = sizeof(WNDCLASSEX); - wcex.style = 0;//class_style; + wcex.style = CS_DBLCLKS;//class_style; wcex.lpfnWndProc = (WNDPROC)dialogProc; wcex.hCursor = LoadCursor(NULL, IDC_ARROW); // Set data: @@ -131,4 +131,10 @@ void GUI::NativeWindowWin32::setCaption(const std::string &caption) { } +void GUI::NativeWindowWin32::grabMouse(bool grab) +{ + if(grab) SetCapture(gctx->m_hwnd); + else ReleaseCapture(); +} + #endif/*WIN32*/ |