Lines Matching defs:_window

136   HWND _window;

138 CWindow(HWND newWindow = NULL): _window(newWindow) {}
141 _window = newWindow;
144 operator HWND() const { return _window; }
145 void Attach(HWND newWindow) { _window = newWindow; }
148 HWND window = _window;
149 _window = NULL;
153 bool Foreground() { return BOOLToBool(::SetForegroundWindow(_window)); }
155 HWND GetParent() const { return ::GetParent(_window); }
156 bool GetWindowRect(LPRECT rect) const { return BOOLToBool(::GetWindowRect(_window,rect)); }
158 bool IsZoomed() const { return BOOLToBool(::IsZoomed(_window)); }
160 bool ClientToScreen(LPPOINT point) const { return BOOLToBool(::ClientToScreen(_window, point)); }
161 bool ScreenToClient(LPPOINT point) const { return BOOLToBool(::ScreenToClient(_window, point)); }
169 _window = ::CreateWindowEx(exStyle, className, windowName,
172 return (_window != NULL);
181 _window = ::CreateWindow(className, windowName,
184 return (_window != NULL);
203 if (_window == NULL)
205 bool result = BOOLToBool(::DestroyWindow(_window));
207 _window = NULL;
210 bool IsWindow() { return BOOLToBool(::IsWindow(_window)); }
212 { return BOOLToBool(::MoveWindow(_window, x, y, width, height, BoolToBOOL(repaint))); }
241 bool GetClientRect(LPRECT rect) { return BOOLToBool(::GetClientRect(_window, rect)); }
242 bool Show(int cmdShow) { return BOOLToBool(::ShowWindow(_window, cmdShow)); }
246 bool SetPlacement(CONST WINDOWPLACEMENT *placement) { return BOOLToBool(::SetWindowPlacement(_window, placement)); }
247 bool GetPlacement(WINDOWPLACEMENT *placement) { return BOOLToBool(::GetWindowPlacement(_window, placement)); }
249 bool Update() { return BOOLToBool(::UpdateWindow(_window)); }
251 { return BOOLToBool(::InvalidateRect(_window, rect, BoolToBOOL(backgroundErase))); }
259 LONG_PTR SetLong(int index, LONG newLongPtr) { return ::SetWindowLong(_window, index, newLongPtr); }
260 LONG_PTR GetLong(int index) const { return ::GetWindowLong(_window, index); }
276 { return ::SetWindowLongPtr(_window, index,
283 { return ::SetWindowLongPtrW(_window, index,
290 LONG_PTR GetLongPtr(int index) const { return ::GetWindowLongPtr(_window, index); }
303 HWND SetFocus() { return ::SetFocus(_window); }
306 { return ::SendMessage(_window, message, wParam, lParam); }
309 { return ::SendMessageW(_window, message, wParam, lParam); }
313 { return BOOLToBool(::PostMessage(_window, message, wParam, lParam)); }
316 { return BOOLToBool(::PostMessageW(_window, message, wParam, lParam)); }
319 bool SetText(LPCTSTR s) { return BOOLToBool(::SetWindowText(_window, s)); }
321 bool SetText(LPCWSTR s) { return MySetWindowText(_window, s); }
325 { return GetWindowTextLength(_window); }
327 { return GetWindowText(_window, string, maxCount); }
332 { return GetWindowTextW(_window, string, maxCount); }
338 { return BOOLToBool(::EnableWindow(_window, BoolToBOOL(enable))); }
341 { return BOOLToBool(::IsWindowEnabled(_window)); }
345 { return ::GetSystemMenu(_window, BoolToBOOL(revert)); }
349 { return ::SetTimer(_window, idEvent, elapse, timerFunc); }
351 {return BOOLToBool(::KillTimer(_window, idEvent)); }