Lines Matching refs:_window

57   HWND _window;

59 CWindow(HWND newWindow = NULL): _window(newWindow){};
62 _window = newWindow;
65 operator HWND() const { return _window; }
66 void Attach(HWND newWindow) { _window = newWindow; }
69 HWND window = _window;
70 _window = NULL;
74 bool Foreground() { return BOOLToBool(::SetForegroundWindow(_window)); }
76 HWND GetParent() const { return ::GetParent(_window); }
77 bool GetWindowRect(LPRECT rect) const { return BOOLToBool(::GetWindowRect(_window,rect)); }
79 bool IsZoomed() const { return BOOLToBool(::IsZoomed(_window)); }
81 bool ClientToScreen(LPPOINT point) const { return BOOLToBool(::ClientToScreen(_window, point)); }
82 bool ScreenToClient(LPPOINT point) const { return BOOLToBool(::ScreenToClient(_window, point)); }
90 _window = ::CreateWindowEx(exStyle, className, windowName,
93 return (_window != NULL);
102 _window = ::CreateWindow(className, windowName,
105 return (_window != NULL);
124 if (_window == NULL)
126 bool result = BOOLToBool(::DestroyWindow(_window));
128 _window = NULL;
131 bool IsWindow() { return BOOLToBool(::IsWindow(_window)); }
133 { return BOOLToBool(::MoveWindow(_window, x, y, width, height, BoolToBOOL(repaint))); }
162 bool GetClientRect(LPRECT rect) { return BOOLToBool(::GetClientRect(_window, rect)); }
163 bool Show(int cmdShow) { return BOOLToBool(::ShowWindow(_window, cmdShow)); }
167 bool SetPlacement(CONST WINDOWPLACEMENT *placement) { return BOOLToBool(::SetWindowPlacement(_window, placement)); }
168 bool GetPlacement(WINDOWPLACEMENT *placement) { return BOOLToBool(::GetWindowPlacement(_window, placement)); }
170 bool Update() { return BOOLToBool(::UpdateWindow(_window)); }
172 { return BOOLToBool(::InvalidateRect(_window, rect, BoolToBOOL(backgroundErase))); }
179 LONG_PTR SetLong(int index, LONG newLongPtr) { return ::SetWindowLong(_window, index, newLongPtr); }
180 LONG_PTR GetLong(int index) const { return ::GetWindowLong(_window, index); }
196 { return ::SetWindowLongPtr(_window, index,
203 { return ::SetWindowLongPtrW(_window, index,
210 LONG_PTR GetLongPtr(int index) const { return ::GetWindowLongPtr(_window, index); }
223 HWND SetFocus() { return ::SetFocus(_window); }
226 { return ::SendMessage(_window, message, wParam, lParam) ;}
229 { return ::SendMessageW(_window, message, wParam, lParam) ;}
233 { return BOOLToBool(::PostMessage(_window, message, wParam, lParam)) ;}
236 { return ::PostMessageW(_window, message, wParam, lParam) ;}
239 bool SetText(LPCTSTR s) { return BOOLToBool(::SetWindowText(_window, s)); }
241 bool SetText(LPCWSTR s) { return MySetWindowText(_window, s); }
245 { return GetWindowTextLength(_window); }
247 { return GetWindowText(_window, string, maxCount); }
252 { return GetWindowTextW(_window, string, maxCount); }
258 { return BOOLToBool(::EnableWindow(_window, BoolToBOOL(enable))); }
261 { return BOOLToBool(::IsWindowEnabled(_window)); }
265 { return ::GetSystemMenu(_window, BoolToBOOL(revert)); }
269 { return ::SetTimer(_window, idEvent, elapse, timerFunc); }
271 {return BOOLToBool(::KillTimer(_window, idEvent)); }