ReactOS  0.4.12-dev-18-gf469aca
ATL::CWindow Class Reference

#include <atlwin.h>

Inheritance diagram for ATL::CWindow:
Collaboration diagram for ATL::CWindow:

Classes

struct  _IDHWNDPAIR
 

Public Member Functions

 CWindow (HWND hWnd=NULL)
 
 operator HWND () const
 
UINT ArrangeIconicWindows ()
 
void Attach (HWND hWndNew)
 
HDC BeginPaint (LPPAINTSTRUCT lpPaint)
 
BOOL BringWindowToTop ()
 
BOOL CenterWindow (HWND hWndCenter=NULL)
 
BOOL ChangeClipboardChain (HWND hWndNewNext)
 
BOOL CheckDlgButton (int nIDButton, UINT nCheck)
 
BOOL CheckRadioButton (int nIDFirstButton, int nIDLastButton, int nIDCheckButton)
 
HWND ChildWindowFromPoint (POINT point) const
 
HWND ChildWindowFromPointEx (POINT point, UINT uFlags) const
 
BOOL ClientToScreen (LPPOINT lpPoint) const
 
BOOL ClientToScreen (LPRECT lpRect) const
 
HWND Create (LPCTSTR lpstrWndClass, HWND hWndParent, _U_RECT rect=NULL, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, _U_MENUorID MenuOrID=0U, LPVOID lpCreateParam=NULL)
 
BOOL CreateCaret (HBITMAP pBitmap)
 
BOOL CreateGrayCaret (int nWidth, int nHeight)
 
BOOL CreateSolidCaret (int nWidth, int nHeight)
 
HDWP DeferWindowPos (HDWP hWinPosInfo, HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT uFlags)
 
BOOL DestroyWindow ()
 
HWND Detach ()
 
int DlgDirList (LPTSTR lpPathSpec, int nIDListBox, int nIDStaticPath, UINT nFileType)
 
int DlgDirListComboBox (LPTSTR lpPathSpec, int nIDComboBox, int nIDStaticPath, UINT nFileType)
 
BOOL DlgDirSelect (LPTSTR lpString, int nCount, int nIDListBox)
 
BOOL DlgDirSelectComboBox (LPTSTR lpString, int nCount, int nIDComboBox)
 
void DragAcceptFiles (BOOL bAccept=TRUE)
 
BOOL DrawMenuBar ()
 
BOOL EnableScrollBar (UINT uSBFlags, UINT uArrowFlags=ESB_ENABLE_BOTH)
 
BOOL EnableWindow (BOOL bEnable=TRUE)
 
void EndPaint (LPPAINTSTRUCT lpPaint)
 
BOOL FlashWindow (BOOL bInvert)
 
BOOL GetClientRect (LPRECT lpRect) const
 
HDC GetDC ()
 
HDC GetDCEx (HRGN hRgnClip, DWORD flags)
 
HWND GetDescendantWindow (int nID) const
 
HRESULT GetDlgControl (int nID, REFIID iid, void **ppCtrl)
 
int GetDlgCtrlID () const
 
HRESULT GetDlgHost (int nID, REFIID iid, void **ppHost)
 
HWND GetDlgItem (int nID)
 
UINT GetDlgItemInt (int nID, BOOL *lpTrans=NULL, BOOL bSigned=TRUE) const
 
UINT GetDlgItemText (int nID, LPTSTR lpStr, int nMaxCount) const
 
BOOL GetDlgItemText (int nID, BSTR &bstrText) const
 
DWORD GetExStyle () const
 
HFONT GetFont () const
 
DWORD GetHotKey () const
 
HICON GetIcon (BOOL bBigIcon=TRUE) const
 
HWND GetLastActivePopup () const
 
HMENU GetMenu () const
 
HWND GetNextDlgGroupItem (HWND hWndCtl, BOOL bPrevious=FALSE) const
 
HWND GetNextDlgTabItem (HWND hWndCtl, BOOL bPrevious=FALSE) const
 
CWindow GetParent () const
 
BOOL GetScrollInfo (int nBar, LPSCROLLINFO lpScrollInfo)
 
BOOL GetScrollPos (int nBar)
 
BOOL GetScrollRange (int nBar, LPINT lpMinPos, LPINT lpMaxPos) const
 
DWORD GetStyle () const
 
HMENU GetSystemMenu (BOOL bRevert)
 
HWND GetTopLevelParent () const
 
HWND GetTopLevelWindow () const
 
HWND GetTopWindow () const
 
BOOL GetUpdateRect (LPRECT lpRect, BOOL bErase=FALSE)
 
int GetUpdateRgn (HRGN hRgn, BOOL bErase=FALSE)
 
HWND GetWindow (UINT nCmd) const
 
DWORD GetWindowContextHelpId () const
 
HDC GetWindowDC ()
 
LONG GetWindowLong (int nIndex) const
 
LONG_PTR GetWindowLongPtr (int nIndex) const
 
BOOL GetWindowPlacement (WINDOWPLACEMENT *lpwndpl) const
 
DWORD GetWindowProcessID ()
 
BOOL GetWindowRect (LPRECT lpRect) const
 
int GetWindowRgn (HRGN hRgn)
 
int GetWindowText (LPTSTR lpszStringBuf, int nMaxCount) const
 
BOOL GetWindowText (BSTR &bstrText)
 
int GetWindowTextLength () const
 
DWORD GetWindowThreadID ()
 
WORD GetWindowWord (int nIndex) const
 
void GotoDlgCtrl (HWND hWndCtrl) const
 
BOOL HideCaret ()
 
BOOL HiliteMenuItem (HMENU hMenu, UINT uHiliteItem, UINT uHilite)
 
BOOL Invalidate (BOOL bErase=TRUE)
 
BOOL InvalidateRect (LPCRECT lpRect, BOOL bErase=TRUE)
 
void InvalidateRgn (HRGN hRgn, BOOL bErase=TRUE)
 
BOOL IsChild (const HWND hWnd) const
 
BOOL IsDialogMessage (LPMSG lpMsg)
 
UINT IsDlgButtonChecked (int nIDButton) const
 
BOOL IsIconic () const
 
BOOL IsParentDialog ()
 
BOOL IsWindow () const
 
BOOL IsWindowEnabled () const
 
BOOL IsWindowVisible () const
 
BOOL IsWindowUnicode ()
 
BOOL IsZoomed () const
 
BOOL KillTimer (UINT_PTR nIDEvent)
 
BOOL LockWindowUpdate (BOOL bLock=TRUE)
 
int MapWindowPoints (HWND hWndTo, LPPOINT lpPoint, UINT nCount) const
 
int MapWindowPoints (HWND hWndTo, LPRECT lpRect) const
 
int MessageBox (LPCTSTR lpszText, LPCTSTR lpszCaption=NULL, UINT nType=MB_OK)
 
BOOL ModifyStyle (DWORD dwRemove, DWORD dwAdd, UINT nFlags=0)
 
BOOL ModifyStyleEx (DWORD dwRemove, DWORD dwAdd, UINT nFlags=0)
 
BOOL MoveWindow (int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE)
 
void NextDlgCtrl () const
 
BOOL OpenClipboard ()
 
BOOL PostMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0)
 
void PrevDlgCtrl () const
 
void Print (HDC hDC, DWORD dwFlags) const
 
void PrintClient (HDC hDC, DWORD dwFlags) const
 
BOOL RedrawWindow (LPCRECT lpRectUpdate=NULL, HRGN hRgnUpdate=NULL, UINT flags=RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE)
 
int ReleaseDC (HDC hDC)
 
BOOL ResizeClient (int nWidth, int nHeight, BOOL bRedraw=FALSE)
 
BOOL ScreenToClient (LPPOINT lpPoint) const
 
BOOL ScrollWindow (int xAmount, int yAmount, LPCRECT lpRect=NULL, LPCRECT lpClipRect=NULL)
 
int ScrollWindowEx (int dx, int dy, LPCRECT lpRectScroll, LPCRECT lpRectClip, HRGN hRgnUpdate, LPRECT lpRectUpdate, UINT flags)
 
LRESULT SendDlgItemMessage (int nID, UINT message, WPARAM wParam=0, LPARAM lParam=0)
 
LRESULT SendMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0)
 
void SendMessageToDescendants (UINT message, WPARAM wParam=0, LPARAM lParam=0, BOOL bDeep=TRUE)
 
BOOL SendNotifyMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0)
 
HWND SetActiveWindow ()
 
HWND SetCapture ()
 
HWND SetClipboardViewer ()
 
int SetDlgCtrlID (int nID)
 
BOOL SetDlgItemInt (int nID, UINT nValue, BOOL bSigned=TRUE)
 
BOOL SetDlgItemText (int nID, LPCTSTR lpszString)
 
HWND SetFocus ()
 
void SetFont (HFONT hFont, BOOL bRedraw=TRUE)
 
int SetHotKey (WORD wVirtualKeyCode, WORD wModifiers)
 
HICON SetIcon (HICON hIcon, BOOL bBigIcon=TRUE)
 
BOOL SetMenu (HMENU hMenu)
 
HWND SetParent (HWND hWndNewParent)
 
void SetRedraw (BOOL bRedraw=TRUE)
 
int SetScrollInfo (int nBar, LPSCROLLINFO lpScrollInfo, BOOL bRedraw=TRUE)
 
int SetScrollPos (int nBar, int nPos, BOOL bRedraw=TRUE)
 
BOOL SetScrollRange (int nBar, int nMinPos, int nMaxPos, BOOL bRedraw=TRUE)
 
UINT_PTR SetTimer (UINT_PTR nIDEvent, UINT nElapse, void(CALLBACK *lpfnTimer)(HWND, UINT, UINT_PTR, DWORD)=NULL)
 
BOOL SetWindowContextHelpId (DWORD dwContextHelpId)
 
LONG SetWindowLong (int nIndex, LONG dwNewLong)
 
LONG_PTR SetWindowLongPtr (int nIndex, LONG_PTR dwNewLong)
 
BOOL SetWindowPlacement (const WINDOWPLACEMENT *lpwndpl)
 
BOOL SetWindowPos (HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags)
 
int SetWindowRgn (HRGN hRgn, BOOL bRedraw=FALSE)
 
BOOL SetWindowText (LPCTSTR lpszString)
 
WORD SetWindowWord (int nIndex, WORD wNewWord)
 
BOOL ShowCaret ()
 
BOOL ShowOwnedPopups (BOOL bShow=TRUE)
 
BOOL ShowScrollBar (UINT nBar, BOOL bShow=TRUE)
 
BOOL ShowWindow (int nCmdShow)
 
BOOL ShowWindowAsync (int nCmdShow)
 
BOOL UpdateWindow ()
 
BOOL ValidateRect (LPCRECT lpRect)
 
BOOL ValidateRgn (HRGN hRgn)
 
BOOL WinHelp (LPCTSTR lpszHelp, UINT nCmd=HELP_CONTEXT, DWORD dwData=0)
 

Static Public Member Functions

static LPCTSTR GetWndClassName ()
 
static LRESULT SendMessage (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 

Public Attributes

HWND m_hWnd
 

Static Public Attributes

static RECT rcDefault
 

Private Types

typedef struct ATL::CWindow::_IDHWNDPAIR IDHWNDPAIR
 
typedef struct ATL::CWindow::_IDHWNDPAIRPIDHWNDPAIR
 

Static Private Member Functions

static BOOL CALLBACK GetDescendantWindowCallback (HWND hWnd, LPARAM lParam)
 
static BOOL CALLBACK SendMessageToDescendantsCallback (HWND hWnd, LPARAM lParam)
 
static BOOL CALLBACK SendMessageToDescendantsCallbackDeep (HWND hWnd, LPARAM lParam)
 

Detailed Description

Definition at line 256 of file atlwin.h.

Member Typedef Documentation

◆ IDHWNDPAIR

◆ PIDHWNDPAIR

Constructor & Destructor Documentation

◆ CWindow()

ATL::CWindow::CWindow ( HWND  hWnd = NULL)
inline

Definition at line 262 of file atlwin.h.

263  {
264  m_hWnd = hWnd;
265  }
HWND hWnd
Definition: settings.c:17
HWND m_hWnd
Definition: atlwin.h:259

Member Function Documentation

◆ ArrangeIconicWindows()

UINT ATL::CWindow::ArrangeIconicWindows ( )
inline

Definition at line 277 of file atlwin.h.

278  {
281  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
UINT WINAPI ArrangeIconicWindows(_In_ HWND)
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ Attach()

void ATL::CWindow::Attach ( HWND  hWndNew)
inline

Definition at line 283 of file atlwin.h.

284  {
285  m_hWnd = hWndNew;
286  }
HWND m_hWnd
Definition: atlwin.h:259

◆ BeginPaint()

HDC ATL::CWindow::BeginPaint ( LPPAINTSTRUCT  lpPaint)
inline

Definition at line 288 of file atlwin.h.

Referenced by CTrayClockWnd::OnPaint().

289  {
291  return ::BeginPaint(m_hWnd, lpPaint);
292  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
HWND m_hWnd
Definition: atlwin.h:259

◆ BringWindowToTop()

BOOL ATL::CWindow::BringWindowToTop ( )
inline

Definition at line 294 of file atlwin.h.

295  {
298  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI BringWindowToTop(_In_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ CenterWindow()

BOOL ATL::CWindow::CenterWindow ( HWND  hWndCenter = NULL)
inline

Definition at line 300 of file atlwin.h.

Referenced by CZipExtract::CConfirmReplace::OnInitDialog(), CZipExtract::CExtractSettingsPage::OnSetActive(), and CZipExtract::CExtractSettingsPage::s_BrowseCallbackProc().

301  {
303  if (hWndCenter == NULL)
304  hWndCenter = ::GetParent(m_hWnd);
305  if (hWndCenter == NULL)
306  return FALSE;
307  RECT wndCenterRect, wndRect;
308  if (!::GetWindowRect(hWndCenter, &wndCenterRect) || !::GetWindowRect(m_hWnd, &wndRect))
309  return FALSE;
310  int wndCenterWidth = wndCenterRect.right - wndCenterRect.left;
311  int wndCenterHeight = wndCenterRect.bottom - wndCenterRect.top;
312  int wndWidth = wndRect.right - wndRect.left;
313  int wndHeight = wndRect.bottom - wndRect.top;
315  wndCenterRect.left + ((wndCenterWidth - wndWidth + 1) >> 1),
316  wndCenterRect.top + ((wndCenterHeight - wndHeight + 1) >> 1),
317  wndWidth, wndHeight, TRUE);
318  }
#define TRUE
Definition: types.h:120
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
LONG top
Definition: windef.h:297
LONG left
Definition: windef.h:296
LONG right
Definition: windef.h:298
BOOL GetWindowRect(LPRECT lpRect) const
Definition: atlwin.h:755
smooth NULL
Definition: ftsmooth.c:416
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)
LONG bottom
Definition: windef.h:299
CWindow GetParent() const
Definition: atlwin.h:645

◆ ChangeClipboardChain()

BOOL ATL::CWindow::ChangeClipboardChain ( HWND  hWndNewNext)
inline

Definition at line 320 of file atlwin.h.

321  {
324  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI ChangeClipboardChain(_In_ HWND, _In_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ CheckDlgButton()

BOOL ATL::CWindow::CheckDlgButton ( int  nIDButton,
UINT  nCheck 
)
inline

Definition at line 326 of file atlwin.h.

Referenced by CTaskBarSettingsPage::OnInitDialog(), CStartMenuSettingsPage::OnInitDialog(), CZipExtract::CCompleteSettingsPage::OnSetActive(), and CTaskBarSettingsPage::UpdateDialog().

327  {
329  return ::CheckDlgButton(m_hWnd, nIDButton, nCheck);
330  }
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ CheckRadioButton()

BOOL ATL::CWindow::CheckRadioButton ( int  nIDFirstButton,
int  nIDLastButton,
int  nIDCheckButton 
)
inline

Definition at line 332 of file atlwin.h.

333  {
335  return ::CheckRadioButton(m_hWnd, nIDFirstButton, nIDLastButton, nIDCheckButton);
336  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI CheckRadioButton(_In_ HWND, _In_ int, _In_ int, _In_ int)

◆ ChildWindowFromPoint()

HWND ATL::CWindow::ChildWindowFromPoint ( POINT  point) const
inline

Definition at line 338 of file atlwin.h.

339  {
342  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
HWND WINAPI ChildWindowFromPoint(_In_ HWND, _In_ POINT)

◆ ChildWindowFromPointEx()

HWND ATL::CWindow::ChildWindowFromPointEx ( POINT  point,
UINT  uFlags 
) const
inline

Definition at line 344 of file atlwin.h.

345  {
348  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
UINT uFlags
Definition: api.c:60
HWND WINAPI ChildWindowFromPointEx(_In_ HWND, _In_ POINT, _In_ UINT)
HWND m_hWnd
Definition: atlwin.h:259

◆ ClientToScreen() [1/2]

BOOL ATL::CWindow::ClientToScreen ( LPPOINT  lpPoint) const
inline

Definition at line 350 of file atlwin.h.

Referenced by CDefView::OnNotify().

351  {
354  }
BOOL WINAPI ClientToScreen(_In_ HWND, _Inout_ LPPOINT)
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ ClientToScreen() [2/2]

BOOL ATL::CWindow::ClientToScreen ( LPRECT  lpRect) const
inline

Definition at line 356 of file atlwin.h.

357  {
358  if (lpRect == NULL)
359  return FALSE;
361  POINT leftTop = {lpRect->left, lpRect->top};
362  POINT rightBottom = {lpRect->right, lpRect->bottom};
363  BOOL success = ::ClientToScreen(m_hWnd, &leftTop) && ::ClientToScreen(m_hWnd, &rightBottom);
364  if (success)
365  {
366  lpRect->left = leftTop.x;
367  lpRect->top = leftTop.y;
368  lpRect->right = rightBottom.x;
369  lpRect->bottom = rightBottom.y;
370  }
371  return success;
372  }
long y
Definition: polytest.cpp:48
long x
Definition: polytest.cpp:48
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
LONG top
Definition: windef.h:297
LONG left
Definition: windef.h:296
LONG right
Definition: windef.h:298
smooth NULL
Definition: ftsmooth.c:416
BOOL ClientToScreen(LPPOINT lpPoint) const
Definition: atlwin.h:350
unsigned int BOOL
Definition: ntddk_ex.h:94
#define success(from, fromstr, to, tostr)
HWND m_hWnd
Definition: atlwin.h:259
LONG bottom
Definition: windef.h:299

◆ Create()

HWND ATL::CWindow::Create ( LPCTSTR  lpstrWndClass,
HWND  hWndParent,
_U_RECT  rect = NULL,
LPCTSTR  szWindowName = NULL,
DWORD  dwStyle = 0,
DWORD  dwExStyle = 0,
_U_MENUorID  MenuOrID = 0U,
LPVOID  lpCreateParam = NULL 
)
inline

Definition at line 374 of file atlwin.h.

Referenced by CTextEditWindow::OnCreate(), CToolBox::OnCreate(), and CToolSettingsWindow::OnCreate().

375  {
376  HWND hWnd;
377  ATLASSERT(m_hWnd == NULL);
378  hWnd = ::CreateWindowEx(dwExStyle,
379  lpstrWndClass,
380  szWindowName,
381  dwStyle,
382  rect.m_lpRect->left,
383  rect.m_lpRect->top,
384  rect.m_lpRect->right - rect.m_lpRect->left,
385  rect.m_lpRect->bottom - rect.m_lpRect->top,
386  hWndParent,
387  MenuOrID.m_hMenu,
389  lpCreateParam);
390  if (hWnd != NULL)
391  m_hWnd = hWnd;
392  return hWnd;
393  }
HINSTANCE GetModuleInstance()
Definition: atlcore.h:198
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
HWND hWnd
Definition: settings.c:17
& rect
Definition: startmenu.cpp:1413
#define CreateWindowEx
Definition: winuser.h:5621
smooth NULL
Definition: ftsmooth.c:416
HWND m_hWnd
Definition: atlwin.h:259
CAtlBaseModule _AtlBaseModule
Definition: atlbase.cpp:26

◆ CreateCaret()

BOOL ATL::CWindow::CreateCaret ( HBITMAP  pBitmap)
inline

Definition at line 395 of file atlwin.h.

396  {
398  return ::CreateCaret(m_hWnd, pBitmap, 0, 0);
399  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI CreateCaret(_In_ HWND, _In_opt_ HBITMAP, _In_ int, _In_ int)
HWND m_hWnd
Definition: atlwin.h:259

◆ CreateGrayCaret()

BOOL ATL::CWindow::CreateGrayCaret ( int  nWidth,
int  nHeight 
)
inline

Definition at line 401 of file atlwin.h.

402  {
404  return ::CreateCaret(m_hWnd, (HBITMAP)1, nWidth, nHeight);
405  }
#define HBITMAP
Definition: msvc.h:28
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI CreateCaret(_In_ HWND, _In_opt_ HBITMAP, _In_ int, _In_ int)
HWND m_hWnd
Definition: atlwin.h:259

◆ CreateSolidCaret()

BOOL ATL::CWindow::CreateSolidCaret ( int  nWidth,
int  nHeight 
)
inline

Definition at line 407 of file atlwin.h.

408  {
410  return ::CreateCaret(m_hWnd, (HBITMAP)0, nWidth, nHeight);
411  }
#define HBITMAP
Definition: msvc.h:28
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI CreateCaret(_In_ HWND, _In_opt_ HBITMAP, _In_ int, _In_ int)
HWND m_hWnd
Definition: atlwin.h:259

◆ DeferWindowPos()

HDWP ATL::CWindow::DeferWindowPos ( HDWP  hWinPosInfo,
HWND  hWndInsertAfter,
int  x,
int  y,
int  cx,
int  cy,
UINT  uFlags 
)
inline

Definition at line 413 of file atlwin.h.

Referenced by CTrayWindow::AlignControls().

414  {
416  return ::DeferWindowPos(hWinPosInfo, m_hWnd, hWndInsertAfter, x, y, cx, cy, uFlags);
417  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
UINT uFlags
Definition: api.c:60
INT INT y
Definition: msvc.h:62
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:570
HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
HWND m_hWnd
Definition: atlwin.h:259
INT x
Definition: msvc.h:62
_Out_opt_ int * cx
Definition: commctrl.h:570

◆ DestroyWindow()

BOOL ATL::CWindow::DestroyWindow ( )
inline

Definition at line 419 of file atlwin.h.

Referenced by CToolsBand::CloseDW(), CToolbarProxy::Destroy(), CDefView::DestroyViewWindow(), CMainWindow::OnClose(), and CShellBrowser::OnDestroy().

420  {
422 
423  if (!::DestroyWindow(m_hWnd))
424  return FALSE;
425 
426  m_hWnd = NULL;
427  return TRUE;
428  }
#define TRUE
Definition: types.h:120
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
smooth NULL
Definition: ftsmooth.c:416
HWND m_hWnd
Definition: atlwin.h:259
BOOL DestroyWindow()
Definition: atlwin.h:419

◆ Detach()

HWND ATL::CWindow::Detach ( )
inline

Definition at line 430 of file atlwin.h.

431  {
432  HWND hWnd = m_hWnd;
433  m_hWnd = NULL;
434  return hWnd;
435  }
HWND hWnd
Definition: settings.c:17
smooth NULL
Definition: ftsmooth.c:416
HWND m_hWnd
Definition: atlwin.h:259

◆ DlgDirList()

int ATL::CWindow::DlgDirList ( LPTSTR  lpPathSpec,
int  nIDListBox,
int  nIDStaticPath,
UINT  nFileType 
)
inline

Definition at line 437 of file atlwin.h.

438  {
440  return ::DlgDirList(m_hWnd, lpPathSpec, nIDListBox, nIDStaticPath, nFileType);
441  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
#define DlgDirList
Definition: winuser.h:5632
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ DlgDirListComboBox()

int ATL::CWindow::DlgDirListComboBox ( LPTSTR  lpPathSpec,
int  nIDComboBox,
int  nIDStaticPath,
UINT  nFileType 
)
inline

Definition at line 443 of file atlwin.h.

444  {
446  return ::DlgDirListComboBox(m_hWnd, lpPathSpec, nIDComboBox, nIDStaticPath, nFileType);
447  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define DlgDirListComboBox
Definition: winuser.h:5633
HWND m_hWnd
Definition: atlwin.h:259

◆ DlgDirSelect()

BOOL ATL::CWindow::DlgDirSelect ( LPTSTR  lpString,
int  nCount,
int  nIDListBox 
)
inline

Definition at line 449 of file atlwin.h.

450  {
452  return ::DlgDirSelectEx(m_hWnd, lpString, nCount, nIDListBox);
453  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define DlgDirSelectEx
Definition: winuser.h:5635
HWND m_hWnd
Definition: atlwin.h:259

◆ DlgDirSelectComboBox()

BOOL ATL::CWindow::DlgDirSelectComboBox ( LPTSTR  lpString,
int  nCount,
int  nIDComboBox 
)
inline

Definition at line 455 of file atlwin.h.

456  {
458  return ::DlgDirSelectComboBoxEx(m_hWnd, lpString, nCount, nIDComboBox);
459  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define DlgDirSelectComboBoxEx
Definition: winuser.h:5634
HWND m_hWnd
Definition: atlwin.h:259

◆ DragAcceptFiles()

void ATL::CWindow::DragAcceptFiles ( BOOL  bAccept = TRUE)
inline

Definition at line 461 of file atlwin.h.

462  {
464 // FIXME following line requires shellapi.h
465 // ::DragAcceptFiles(m_hWnd, bAccept);
466  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ DrawMenuBar()

BOOL ATL::CWindow::DrawMenuBar ( )
inline

Definition at line 468 of file atlwin.h.

469  {
472  }
BOOL WINAPI DrawMenuBar(_In_ HWND)
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ EnableScrollBar()

BOOL ATL::CWindow::EnableScrollBar ( UINT  uSBFlags,
UINT  uArrowFlags = ESB_ENABLE_BOTH 
)
inline

Definition at line 474 of file atlwin.h.

475  {
477  return ::EnableScrollBar(m_hWnd, uSBFlags, uArrowFlags);
478  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI EnableScrollBar(_In_ HWND, _In_ UINT, _In_ UINT)

◆ EnableWindow()

BOOL ATL::CWindow::EnableWindow ( BOOL  bEnable = TRUE)
inline

Definition at line 480 of file atlwin.h.

Referenced by CZipExtract::CExtractSettingsPage::OnSetActive(), CZipExtract::CExtractSettingsPage::OnWizardNext(), CTaskBarSettingsPage::UpdateDialog(), and CStartMenuSettingsPage::UpdateDialog().

481  {
484  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI EnableWindow(_In_ HWND, _In_ BOOL)
_In_ BOOL bEnable
Definition: winddi.h:3426

◆ EndPaint()

void ATL::CWindow::EndPaint ( LPPAINTSTRUCT  lpPaint)
inline

Definition at line 486 of file atlwin.h.

Referenced by CTrayClockWnd::OnPaint().

487  {
489  ::EndPaint(m_hWnd, lpPaint);
490  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
void EndPaint(LPPAINTSTRUCT lpPaint)
Definition: atlwin.h:486
HWND m_hWnd
Definition: atlwin.h:259

◆ FlashWindow()

BOOL ATL::CWindow::FlashWindow ( BOOL  bInvert)
inline

Definition at line 492 of file atlwin.h.

493  {
496  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI FlashWindow(_In_ HWND, _In_ BOOL)
static BOOL bInvert
Definition: win.c:51
HWND m_hWnd
Definition: atlwin.h:259

◆ GetClientRect()

◆ GetDC()

HDC ATL::CWindow::GetDC ( )
inline

Definition at line 504 of file atlwin.h.

Referenced by CImgAreaWindow::drawZoomFrame(), CTrayClockWnd::MeasureLines(), CImgAreaWindow::OnPaint(), and CZipExtract::CCompleteSettingsPage::OnSetActive().

505  {
508  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
HDC WINAPI GetDC(_In_opt_ HWND)
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ GetDCEx()

HDC ATL::CWindow::GetDCEx ( HRGN  hRgnClip,
DWORD  flags 
)
inline

Definition at line 510 of file atlwin.h.

511  {
513  return ::GetDCEx(m_hWnd, hRgnClip, flags);
514  }
HDC WINAPI GetDCEx(_In_opt_ HWND, _In_opt_ HRGN, _In_ DWORD)
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
GLbitfield flags
Definition: glext.h:7161
HWND m_hWnd
Definition: atlwin.h:259

◆ GetDescendantWindow()

HWND ATL::CWindow::GetDescendantWindow ( int  nID) const
inline

Definition at line 534 of file atlwin.h.

535  {
537  IDHWNDPAIR idHWndPair;
538  idHWndPair.nID = nID;
539  idHWndPair.hWnd = NULL;
541  return idHWndPair.hWnd;
542  }
BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM)
struct ATL::CWindow::_IDHWNDPAIR IDHWNDPAIR
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
static BOOL CALLBACK GetDescendantWindowCallback(HWND hWnd, LPARAM lParam)
Definition: atlwin.h:522
LONG_PTR LPARAM
Definition: windef.h:208
smooth NULL
Definition: ftsmooth.c:416
HWND m_hWnd
Definition: atlwin.h:259

◆ GetDescendantWindowCallback()

static BOOL CALLBACK ATL::CWindow::GetDescendantWindowCallback ( HWND  hWnd,
LPARAM  lParam 
)
inlinestaticprivate

Definition at line 522 of file atlwin.h.

523  {
524  if (::GetWindowLong(hWnd, GWL_ID) == ((PIDHWNDPAIR)lParam)->nID)
525  {
526  ((PIDHWNDPAIR)lParam)->hWnd = hWnd;
527  return FALSE;
528  }
530  return (((PIDHWNDPAIR)lParam)->hWnd == NULL);
531  }
BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM)
#define GWL_ID
Definition: winuser.h:853
HWND hWnd
Definition: settings.c:17
struct ATL::CWindow::_IDHWNDPAIR * PIDHWNDPAIR
static BOOL CALLBACK GetDescendantWindowCallback(HWND hWnd, LPARAM lParam)
Definition: atlwin.h:522
smooth NULL
Definition: ftsmooth.c:416
LONG GetWindowLong(int nIndex) const
Definition: atlwin.h:729
LPARAM lParam
Definition: combotst.c:139

◆ GetDlgControl()

HRESULT ATL::CWindow::GetDlgControl ( int  nID,
REFIID  iid,
void **  ppCtrl 
)
inline

Definition at line 544 of file atlwin.h.

545  {
547  return E_FAIL;//FIXME stub
548  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define E_FAIL
Definition: ddrawi.h:102
HWND m_hWnd
Definition: atlwin.h:259

◆ GetDlgCtrlID()

int ATL::CWindow::GetDlgCtrlID ( ) const
inline

Definition at line 550 of file atlwin.h.

551  {
554  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
int WINAPI GetDlgCtrlID(_In_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetDlgHost()

HRESULT ATL::CWindow::GetDlgHost ( int  nID,
REFIID  iid,
void **  ppHost 
)
inline

Definition at line 556 of file atlwin.h.

557  {
559  return E_FAIL;//FIXME stub
560  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define E_FAIL
Definition: ddrawi.h:102
HWND m_hWnd
Definition: atlwin.h:259

◆ GetDlgItem()

HWND ATL::CWindow::GetDlgItem ( int  nID)
inline

◆ GetDlgItemInt()

UINT ATL::CWindow::GetDlgItemInt ( int  nID,
BOOL lpTrans = NULL,
BOOL  bSigned = TRUE 
) const
inline

Definition at line 568 of file atlwin.h.

569  {
571  return ::GetDlgItemInt(m_hWnd, nID, lpTrans, bSigned);
572  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
UINT WINAPI GetDlgItemInt(_In_ HWND, _In_ int, _Out_opt_ PBOOL, _In_ BOOL)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetDlgItemText() [1/2]

UINT ATL::CWindow::GetDlgItemText ( int  nID,
LPTSTR  lpStr,
int  nMaxCount 
) const
inline

Definition at line 574 of file atlwin.h.

Referenced by CZipExtract::CExtractSettingsPage::UpdateDirectory().

575  {
578  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define GetDlgItemText
Definition: winuser.h:5651
HWND m_hWnd
Definition: atlwin.h:259
_In_ int nMaxCount
Definition: winuser.h:4746

◆ GetDlgItemText() [2/2]

BOOL ATL::CWindow::GetDlgItemText ( int  nID,
BSTR bstrText 
) const
inline

Definition at line 591 of file atlwin.h.

592  {
594  return FALSE;//FIXME stub
595  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ GetExStyle()

DWORD ATL::CWindow::GetExStyle ( ) const
inline

Definition at line 597 of file atlwin.h.

598  {
601  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define GWL_EXSTYLE
Definition: winuser.h:845
#define GetWindowLong
Definition: winuser.h:5662
HWND m_hWnd
Definition: atlwin.h:259

◆ GetFont()

HFONT ATL::CWindow::GetFont ( ) const
inline

Definition at line 603 of file atlwin.h.

604  {
606  return (HFONT)::SendMessage(m_hWnd, WM_GETFONT, 0, 0);
607  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define WM_GETFONT
Definition: winuser.h:1633
HWND m_hWnd
Definition: atlwin.h:259
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039

◆ GetHotKey()

DWORD ATL::CWindow::GetHotKey ( ) const
inline

Definition at line 609 of file atlwin.h.

610  {
612  return (DWORD)::SendMessage(m_hWnd, WM_GETHOTKEY, 0, 0);
613  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
#define WM_GETHOTKEY
Definition: winuser.h:1635
BOOL IsWindow() const
Definition: atlwin.h:870
unsigned long DWORD
Definition: ntddk_ex.h:95
HWND m_hWnd
Definition: atlwin.h:259
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039

◆ GetIcon()

HICON ATL::CWindow::GetIcon ( BOOL  bBigIcon = TRUE) const
inline

Definition at line 615 of file atlwin.h.

616  {
618  return (HICON)::SendMessage(m_hWnd, WM_GETICON, (WPARAM)bBigIcon, 0);
619  }
static HICON
Definition: imagelist.c:84
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
UINT_PTR WPARAM
Definition: windef.h:207
HWND m_hWnd
Definition: atlwin.h:259
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039

◆ GetLastActivePopup()

HWND ATL::CWindow::GetLastActivePopup ( ) const
inline

Definition at line 621 of file atlwin.h.

622  {
625  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND WINAPI GetLastActivePopup(_In_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetMenu()

HMENU ATL::CWindow::GetMenu ( ) const
inline

Definition at line 627 of file atlwin.h.

Referenced by CMainWindow::OnInitMenuPopup().

628  {
631  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
HMENU WINAPI GetMenu(_In_ HWND)

◆ GetNextDlgGroupItem()

HWND ATL::CWindow::GetNextDlgGroupItem ( HWND  hWndCtl,
BOOL  bPrevious = FALSE 
) const
inline

Definition at line 633 of file atlwin.h.

634  {
636  return ::GetNextDlgGroupItem(m_hWnd, hWndCtl, bPrevious);
637  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND WINAPI GetNextDlgGroupItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetNextDlgTabItem()

HWND ATL::CWindow::GetNextDlgTabItem ( HWND  hWndCtl,
BOOL  bPrevious = FALSE 
) const
inline

Definition at line 639 of file atlwin.h.

640  {
642  return ::GetNextDlgTabItem(m_hWnd, hWndCtl, bPrevious);
643  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND WINAPI GetNextDlgTabItem(_In_ HWND, _In_opt_ HWND, _In_ BOOL)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetParent()

◆ GetScrollInfo()

BOOL ATL::CWindow::GetScrollInfo ( int  nBar,
LPSCROLLINFO  lpScrollInfo 
)
inline

Definition at line 651 of file atlwin.h.

652  {
654  return ::GetScrollInfo(m_hWnd, nBar, lpScrollInfo);
655  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI GetScrollInfo(_In_ HWND, _In_ int, _Inout_ LPSCROLLINFO)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetScrollPos()

BOOL ATL::CWindow::GetScrollPos ( int  nBar)
inline

Definition at line 657 of file atlwin.h.

658  {
661  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
int WINAPI GetScrollPos(_In_ HWND, _In_ int)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetScrollRange()

BOOL ATL::CWindow::GetScrollRange ( int  nBar,
LPINT  lpMinPos,
LPINT  lpMaxPos 
) const
inline

Definition at line 663 of file atlwin.h.

664  {
666  return ::GetScrollRange(m_hWnd, nBar, lpMinPos, lpMaxPos);
667  }
BOOL WINAPI GetScrollRange(_In_ HWND, _In_ int, _Out_ LPINT, _Out_ LPINT)
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ GetStyle()

DWORD ATL::CWindow::GetStyle ( ) const
inline

Definition at line 669 of file atlwin.h.

670  {
673  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define GetWindowLong
Definition: winuser.h:5662
HWND m_hWnd
Definition: atlwin.h:259
#define GWL_STYLE
Definition: winuser.h:846

◆ GetSystemMenu()

HMENU ATL::CWindow::GetSystemMenu ( BOOL  bRevert)
inline

Definition at line 675 of file atlwin.h.

676  {
678  return ::GetSystemMenu(m_hWnd, bRevert);
679  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HMENU WINAPI GetSystemMenu(_In_ HWND, _In_ BOOL)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetTopLevelParent()

HWND ATL::CWindow::GetTopLevelParent ( ) const
inline

Definition at line 681 of file atlwin.h.

682  {
684  return NULL;//FIXME stub
685  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
smooth NULL
Definition: ftsmooth.c:416
HWND m_hWnd
Definition: atlwin.h:259

◆ GetTopLevelWindow()

HWND ATL::CWindow::GetTopLevelWindow ( ) const
inline

Definition at line 687 of file atlwin.h.

688  {
690  return NULL;//FIXME stub
691  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
smooth NULL
Definition: ftsmooth.c:416
HWND m_hWnd
Definition: atlwin.h:259

◆ GetTopWindow()

HWND ATL::CWindow::GetTopWindow ( ) const
inline

Definition at line 693 of file atlwin.h.

694  {
697  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND WINAPI GetTopWindow(_In_opt_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetUpdateRect()

BOOL ATL::CWindow::GetUpdateRect ( LPRECT  lpRect,
BOOL  bErase = FALSE 
)
inline

Definition at line 699 of file atlwin.h.

700  {
702  return ::GetUpdateRect(m_hWnd, lpRect, bErase);
703  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI GetUpdateRect(_In_ HWND, _Out_opt_ LPRECT, _In_ BOOL)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetUpdateRgn()

int ATL::CWindow::GetUpdateRgn ( HRGN  hRgn,
BOOL  bErase = FALSE 
)
inline

Definition at line 705 of file atlwin.h.

706  {
709  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
static HRGN hRgn
Definition: mapping.c:33
int WINAPI GetUpdateRgn(_In_ HWND, _In_ HRGN, _In_ BOOL)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetWindow()

HWND ATL::CWindow::GetWindow ( UINT  nCmd) const
inline

Definition at line 711 of file atlwin.h.

Referenced by CShellBrowser::GetWindowProc().

712  {
714  return ::GetWindow(m_hWnd, nCmd);
715  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND WINAPI GetWindow(_In_ HWND, _In_ UINT)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetWindowContextHelpId()

DWORD ATL::CWindow::GetWindowContextHelpId ( ) const
inline

Definition at line 717 of file atlwin.h.

718  {
721  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
DWORD WINAPI GetWindowContextHelpId(_In_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetWindowDC()

HDC ATL::CWindow::GetWindowDC ( )
inline

Definition at line 723 of file atlwin.h.

724  {
727  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
HDC WINAPI GetWindowDC(_In_opt_ HWND)

◆ GetWindowLong()

LONG ATL::CWindow::GetWindowLong ( int  nIndex) const
inline

Definition at line 729 of file atlwin.h.

730  {
733  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define GetWindowLong
Definition: winuser.h:5662
HWND m_hWnd
Definition: atlwin.h:259
int nIndex
Definition: msvc.h:77

◆ GetWindowLongPtr()

LONG_PTR ATL::CWindow::GetWindowLongPtr ( int  nIndex) const
inline

Definition at line 735 of file atlwin.h.

Referenced by CToolBox::OnCreate(), and CShellBrowser::WindowProc().

736  {
739  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
int nIndex
Definition: msvc.h:77
#define GetWindowLongPtr
Definition: treelist.c:73

◆ GetWindowPlacement()

BOOL ATL::CWindow::GetWindowPlacement ( WINDOWPLACEMENT lpwndpl) const
inline

Definition at line 741 of file atlwin.h.

Referenced by CMainWindow::OnDestroy().

742  {
745  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI GetWindowPlacement(_In_ HWND, _Inout_ WINDOWPLACEMENT *)
HWND m_hWnd
Definition: atlwin.h:259

◆ GetWindowProcessID()

DWORD ATL::CWindow::GetWindowProcessID ( )
inline

Definition at line 747 of file atlwin.h.

748  {
750  DWORD processID;
751  ::GetWindowThreadProcessId(m_hWnd, &processID);
752  return processID;
753  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
DWORD WINAPI GetWindowThreadProcessId(HWND, PDWORD)
unsigned long DWORD
Definition: ntddk_ex.h:95
HWND m_hWnd
Definition: atlwin.h:259

◆ GetWindowRect()

◆ GetWindowRgn()

int ATL::CWindow::GetWindowRgn ( HRGN  hRgn)
inline

Definition at line 761 of file atlwin.h.

762  {
765  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
static HRGN hRgn
Definition: mapping.c:33
HWND m_hWnd
Definition: atlwin.h:259
int WINAPI GetWindowRgn(_In_ HWND, _In_ HRGN)

◆ GetWindowText() [1/2]

int ATL::CWindow::GetWindowText ( LPTSTR  lpszStringBuf,
int  nMaxCount 
) const
inline

Definition at line 767 of file atlwin.h.

Referenced by CTextEditWindow::OnCommand().

768  {
770  return ::GetWindowText(m_hWnd, lpszStringBuf, nMaxCount);
771  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define GetWindowText
Definition: winuser.h:5664
HWND m_hWnd
Definition: atlwin.h:259
_In_ int nMaxCount
Definition: winuser.h:4746

◆ GetWindowText() [2/2]

BOOL ATL::CWindow::GetWindowText ( BSTR bstrText)
inline

Definition at line 773 of file atlwin.h.

774  {
777  if (!SysReAllocStringLen(&bstrText, NULL, length))
778  return FALSE;
779  ::GetWindowText(m_hWnd, (LPTSTR)&bstrText[2], length);
780  return TRUE;
781  }
#define TRUE
Definition: types.h:120
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
int GetWindowTextLength() const
Definition: atlwin.h:783
BOOL IsWindow() const
Definition: atlwin.h:870
CHAR * LPTSTR
Definition: xmlstorage.h:192
smooth NULL
Definition: ftsmooth.c:416
GLenum GLuint GLenum GLsizei length
Definition: glext.h:5579
int GetWindowText(LPTSTR lpszStringBuf, int nMaxCount) const
Definition: atlwin.h:767
HWND m_hWnd
Definition: atlwin.h:259
int WINAPI SysReAllocStringLen(BSTR *old, const OLECHAR *str, unsigned int len)
Definition: oleaut.c:387

◆ GetWindowTextLength()

int ATL::CWindow::GetWindowTextLength ( ) const
inline

Definition at line 783 of file atlwin.h.

Referenced by CTextEditWindow::OnCommand().

784  {
787  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
#define GetWindowTextLength
Definition: winuser.h:5665

◆ GetWindowThreadID()

DWORD ATL::CWindow::GetWindowThreadID ( )
inline

Definition at line 789 of file atlwin.h.

790  {
793  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
DWORD WINAPI GetWindowThreadProcessId(HWND, PDWORD)
smooth NULL
Definition: ftsmooth.c:416
HWND m_hWnd
Definition: atlwin.h:259

◆ GetWindowWord()

WORD ATL::CWindow::GetWindowWord ( int  nIndex) const
inline

Definition at line 795 of file atlwin.h.

796  {
798  return (WORD)::GetWindowLong(m_hWnd, nIndex);
799  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
unsigned short WORD
Definition: ntddk_ex.h:93
LONG GetWindowLong(int nIndex) const
Definition: atlwin.h:729
HWND m_hWnd
Definition: atlwin.h:259
int nIndex
Definition: msvc.h:77

◆ GetWndClassName()

static LPCTSTR ATL::CWindow::GetWndClassName ( )
inlinestatic

Definition at line 272 of file atlwin.h.

273  {
274  return NULL;
275  }
smooth NULL
Definition: ftsmooth.c:416

◆ GotoDlgCtrl()

void ATL::CWindow::GotoDlgCtrl ( HWND  hWndCtrl) const
inline

Definition at line 801 of file atlwin.h.

802  {
805  }
#define WM_NEXTDLGCTL
Definition: winuser.h:1625
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039

◆ HideCaret()

BOOL ATL::CWindow::HideCaret ( )
inline

Definition at line 807 of file atlwin.h.

808  {
811  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI HideCaret(_In_opt_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ HiliteMenuItem()

BOOL ATL::CWindow::HiliteMenuItem ( HMENU  hMenu,
UINT  uHiliteItem,
UINT  uHilite 
)
inline

Definition at line 813 of file atlwin.h.

814  {
816  return ::HiliteMenuItem(m_hWnd, hMenu, uHiliteItem, uHilite);
817  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI HiliteMenuItem(_In_ HWND, _In_ HMENU, _In_ UINT, _In_ UINT)
HWND m_hWnd
Definition: atlwin.h:259

◆ Invalidate()

BOOL ATL::CWindow::Invalidate ( BOOL  bErase = TRUE)
inline

◆ InvalidateRect()

BOOL ATL::CWindow::InvalidateRect ( LPCRECT  lpRect,
BOOL  bErase = TRUE 
)
inline

Definition at line 825 of file atlwin.h.

Referenced by CSelectionWindow::OnLButtonDown(), CSelectionWindow::OnMouseMove(), CTrayClockWnd::OnSize(), placeSelWin(), CTrayClockWnd::SetFont(), and CTrayClockWnd::UpdateWnd().

826  {
828  return ::InvalidateRect(m_hWnd, lpRect, bErase);
829  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
HWND m_hWnd
Definition: atlwin.h:259

◆ InvalidateRgn()

void ATL::CWindow::InvalidateRgn ( HRGN  hRgn,
BOOL  bErase = TRUE 
)
inline

Definition at line 831 of file atlwin.h.

832  {
834  ::InvalidateRgn(m_hWnd, hRgn, bErase);
835  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
static HRGN hRgn
Definition: mapping.c:33
HWND m_hWnd
Definition: atlwin.h:259
void InvalidateRgn(HRGN hRgn, BOOL bErase=TRUE)
Definition: atlwin.h:831

◆ IsChild()

BOOL ATL::CWindow::IsChild ( const HWND  hWnd) const
inline

Definition at line 837 of file atlwin.h.

838  {
840  return ::IsChild(m_hWnd, hWnd);
841  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI IsChild(_In_ HWND, _In_ HWND)

◆ IsDialogMessage()

BOOL ATL::CWindow::IsDialogMessage ( LPMSG  lpMsg)
inline

Definition at line 843 of file atlwin.h.

844  {
847  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define IsDialogMessage
Definition: winuser.h:5675
HWND m_hWnd
Definition: atlwin.h:259

◆ IsDlgButtonChecked()

UINT ATL::CWindow::IsDlgButtonChecked ( int  nIDButton) const
inline

Definition at line 849 of file atlwin.h.

Referenced by CTaskBarSettingsPage::OnApply(), CZipExtract::CCompleteSettingsPage::OnWizardFinish(), CTaskBarSettingsPage::UpdateDialog(), and CStartMenuSettingsPage::UpdateDialog().

850  {
853  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
HWND m_hWnd
Definition: atlwin.h:259

◆ IsIconic()

BOOL ATL::CWindow::IsIconic ( ) const
inline

Definition at line 855 of file atlwin.h.

856  {
859  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI IsIconic(_In_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ IsParentDialog()

BOOL ATL::CWindow::IsParentDialog ( )
inline

Definition at line 861 of file atlwin.h.

862  {
864  TCHAR pszType[10];
865  if (!RealGetWindowClass(::GetParent(m_hWnd), pszType, sizeof(pszType) / sizeof(pszType[0])))
866  return FALSE;
867  return !_tcscmp(pszType, _T("#32770"));
868  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
int _tcscmp(const _TCHAR *s1, const _TCHAR *s2)
Definition: tcscmp.h:8
BOOL IsWindow() const
Definition: atlwin.h:870
char TCHAR
Definition: xmlstorage.h:189
#define _T(x)
Definition: vfdio.h:22
HWND m_hWnd
Definition: atlwin.h:259
#define RealGetWindowClass
Definition: winuser.h:5701
CWindow GetParent() const
Definition: atlwin.h:645

◆ IsWindow()

BOOL ATL::CWindow::IsWindow ( ) const
inline

Definition at line 870 of file atlwin.h.

Referenced by CToolsBand::CloseDW(), and CToolsBand::SetSite().

871  {
873  }
BOOL WINAPI IsWindow(_In_opt_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ IsWindowEnabled()

BOOL ATL::CWindow::IsWindowEnabled ( ) const
inline

Definition at line 875 of file atlwin.h.

876  {
879  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI IsWindowEnabled(_In_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ IsWindowUnicode()

BOOL ATL::CWindow::IsWindowUnicode ( )
inline

Definition at line 887 of file atlwin.h.

888  {
891  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI IsWindowUnicode(_In_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ IsWindowVisible()

BOOL ATL::CWindow::IsWindowVisible ( ) const
inline

Definition at line 881 of file atlwin.h.

Referenced by CMainWindow::alignChildrenToMainWindow(), CMainWindow::OnCommand(), CMainWindow::OnInitMenuPopup(), CTrayClockWnd::OnNcLButtonDblClick(), and CTrayClockWnd::UpdateWnd().

882  {
885  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI IsWindowVisible(_In_ HWND)

◆ IsZoomed()

BOOL ATL::CWindow::IsZoomed ( ) const
inline

Definition at line 893 of file atlwin.h.

894  {
897  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI IsZoomed(_In_ HWND)

◆ KillTimer()

BOOL ATL::CWindow::KillTimer ( UINT_PTR  nIDEvent)
inline

Definition at line 899 of file atlwin.h.

Referenced by CTrayClockWnd::CalibrateTimer(), CTrayClockWnd::OnDestroy(), and CTrayClockWnd::ResetTime().

900  {
902  return ::KillTimer(m_hWnd, nIDEvent);
903  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
HWND m_hWnd
Definition: atlwin.h:259

◆ LockWindowUpdate()

BOOL ATL::CWindow::LockWindowUpdate ( BOOL  bLock = TRUE)
inline

Definition at line 905 of file atlwin.h.

Referenced by CShellBrowser::BrowseToPath().

906  {
908  if (bLock)
911  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL WINAPI LockWindowUpdate(_In_opt_ HWND)
BOOL IsWindow() const
Definition: atlwin.h:870
smooth NULL
Definition: ftsmooth.c:416
HWND m_hWnd
Definition: atlwin.h:259

◆ MapWindowPoints() [1/2]

int ATL::CWindow::MapWindowPoints ( HWND  hWndTo,
LPPOINT  lpPoint,
UINT  nCount 
) const
inline

Definition at line 913 of file atlwin.h.

Referenced by CShellBrowser::BrowseToPath().

914  {
916  return ::MapWindowPoints(m_hWnd, hWndTo, lpPoint, nCount);
917  }
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ MapWindowPoints() [2/2]

int ATL::CWindow::MapWindowPoints ( HWND  hWndTo,
LPRECT  lpRect 
) const
inline

Definition at line 919 of file atlwin.h.

920  {
922  return ::MapWindowPoints(m_hWnd, hWndTo, (LPPOINT)lpRect, sizeof(RECT) / sizeof(POINT));
923  }
int WINAPI MapWindowPoints(_In_opt_ HWND hWndFrom, _In_opt_ HWND hWndTo, _Inout_updates_(cPoints) LPPOINT lpPoints, _In_ UINT cPoints)
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ MessageBox()

int ATL::CWindow::MessageBox ( LPCTSTR  lpszText,
LPCTSTR  lpszCaption = NULL,
UINT  nType = MB_OK 
)
inline

Definition at line 925 of file atlwin.h.

Referenced by CMainWindow::InsertSelectionFromHBITMAP(), CMainWindow::OnClose(), CMainWindow::OnCommand(), and ShowFileLoadError().

926  {
928  return ::MessageBox(m_hWnd, lpszText, lpszCaption, nType);
929  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
#define MessageBox
Definition: winuser.h:5688

◆ ModifyStyle()

BOOL ATL::CWindow::ModifyStyle ( DWORD  dwRemove,
DWORD  dwAdd,
UINT  nFlags = 0 
)
inline

Definition at line 931 of file atlwin.h.

932  {
934  ::SetWindowLong(m_hWnd, GWL_STYLE, (::GetWindowLong(m_hWnd, GWL_STYLE) & ~dwRemove) | dwAdd);
935  if (nFlags != 0)
937  return TRUE;
938  }
#define TRUE
Definition: types.h:120
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
LONG SetWindowLong(int nIndex, LONG dwNewLong)
Definition: atlwin.h:1193
#define SWP_NOZORDER
Definition: winuser.h:1232
smooth NULL
Definition: ftsmooth.c:416
#define SWP_NOACTIVATE
Definition: winuser.h:1227
LONG GetWindowLong(int nIndex) const
Definition: atlwin.h:729
HWND m_hWnd
Definition: atlwin.h:259
#define SWP_NOSIZE
Definition: winuser.h:1230
#define GWL_STYLE
Definition: winuser.h:846
#define SWP_NOMOVE
Definition: winuser.h:1229
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)

◆ ModifyStyleEx()

BOOL ATL::CWindow::ModifyStyleEx ( DWORD  dwRemove,
DWORD  dwAdd,
UINT  nFlags = 0 
)
inline

Definition at line 940 of file atlwin.h.

941  {
943  ::SetWindowLong(m_hWnd, GWL_EXSTYLE, (::GetWindowLong(m_hWnd, GWL_EXSTYLE) & ~dwRemove) | dwAdd);
944  if (nFlags != 0)
946  return TRUE;
947  }
#define TRUE
Definition: types.h:120
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
LONG SetWindowLong(int nIndex, LONG dwNewLong)
Definition: atlwin.h:1193
#define GWL_EXSTYLE
Definition: winuser.h:845
#define SWP_NOZORDER
Definition: winuser.h:1232
smooth NULL
Definition: ftsmooth.c:416
#define SWP_NOACTIVATE
Definition: winuser.h:1227
LONG GetWindowLong(int nIndex) const
Definition: atlwin.h:729
HWND m_hWnd
Definition: atlwin.h:259
#define SWP_NOSIZE
Definition: winuser.h:1230
#define SWP_NOMOVE
Definition: winuser.h:1229
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)

◆ MoveWindow()

BOOL ATL::CWindow::MoveWindow ( int  x,
int  y,
int  nWidth,
int  nHeight,
BOOL  bRepaint = TRUE 
)
inline

Definition at line 949 of file atlwin.h.

Referenced by CTextEditWindow::OnSize(), CDefView::OnSize(), updateCanvasAndScrollbars(), and zoomTo().

950  {
952  return ::MoveWindow(m_hWnd, x, y, nWidth, nHeight, bRepaint);
953  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
INT INT y
Definition: msvc.h:62
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)
INT x
Definition: msvc.h:62

◆ NextDlgCtrl()

void ATL::CWindow::NextDlgCtrl ( ) const
inline

Definition at line 955 of file atlwin.h.

956  {
959  }
#define WM_NEXTDLGCTL
Definition: winuser.h:1625
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039

◆ OpenClipboard()

BOOL ATL::CWindow::OpenClipboard ( )
inline

Definition at line 961 of file atlwin.h.

Referenced by CMainWindow::OnCommand(), and CMainWindow::OnInitMenuPopup().

962  {
965  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI OpenClipboard(_In_opt_ HWND)

◆ operator HWND()

ATL::CWindow::operator HWND ( ) const
inline

Definition at line 267 of file atlwin.h.

268  {
269  return m_hWnd;
270  }
HWND m_hWnd
Definition: atlwin.h:259

◆ PostMessage()

BOOL ATL::CWindow::PostMessage ( UINT  message,
WPARAM  wParam = 0,
LPARAM  lParam = 0 
)
inline

Definition at line 967 of file atlwin.h.

Referenced by ATL::CPropertyPageImpl< CExtractSettingsPage >::SetWizardButtons().

968  {
971  }
Definition: tftpd.h:59
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
WPARAM wParam
Definition: combotst.c:138
#define PostMessage
Definition: winuser.h:5698
HWND m_hWnd
Definition: atlwin.h:259
LPARAM lParam
Definition: combotst.c:139

◆ PrevDlgCtrl()

void ATL::CWindow::PrevDlgCtrl ( ) const
inline

Definition at line 973 of file atlwin.h.

974  {
977  }
#define WM_NEXTDLGCTL
Definition: winuser.h:1625
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039

◆ Print()

void ATL::CWindow::Print ( HDC  hDC,
DWORD  dwFlags 
) const
inline

Definition at line 979 of file atlwin.h.

980  {
983  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
UINT_PTR WPARAM
Definition: windef.h:207
LONG_PTR LPARAM
Definition: windef.h:208
#define WM_PRINT
Definition: winuser.h:1841
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
HWND m_hWnd
Definition: atlwin.h:259
static HDC hDC
Definition: 3dtext.c:33
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039

◆ PrintClient()

void ATL::CWindow::PrintClient ( HDC  hDC,
DWORD  dwFlags 
) const
inline

Definition at line 985 of file atlwin.h.

986  {
989  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define WM_PRINTCLIENT
Definition: richedit.h:70
UINT_PTR WPARAM
Definition: windef.h:207
LONG_PTR LPARAM
Definition: windef.h:208
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
HWND m_hWnd
Definition: atlwin.h:259
static HDC hDC
Definition: 3dtext.c:33
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039

◆ RedrawWindow()

BOOL ATL::CWindow::RedrawWindow ( LPCRECT  lpRectUpdate = NULL,
HRGN  hRgnUpdate = NULL,
UINT  flags = RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE 
)
inline

Definition at line 991 of file atlwin.h.

992  {
994  return ::RedrawWindow(m_hWnd, lpRectUpdate, hRgnUpdate, flags);
995  }
BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT)
INT INT LPCRECT LPCRECT HRGN hRgnUpdate
Definition: msvc.h:65
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
GLbitfield flags
Definition: glext.h:7161
HWND m_hWnd
Definition: atlwin.h:259

◆ ReleaseDC()

int ATL::CWindow::ReleaseDC ( HDC  hDC)
inline

Definition at line 997 of file atlwin.h.

Referenced by CImgAreaWindow::drawZoomFrame(), CTrayClockWnd::MeasureLines(), CImgAreaWindow::OnPaint(), and CZipExtract::CCompleteSettingsPage::OnSetActive().

998  {
1001  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HWND m_hWnd
Definition: atlwin.h:259
static HDC hDC
Definition: 3dtext.c:33

◆ ResizeClient()

BOOL ATL::CWindow::ResizeClient ( int  nWidth,
int  nHeight,
BOOL  bRedraw = FALSE 
)
inline

Definition at line 1003 of file atlwin.h.

1004  {
1006  RECT clientRect, wndRect;
1007  ::GetClientRect(m_hWnd, &clientRect);
1008  ::GetWindowRect(m_hWnd, &wndRect);
1009  return ::MoveWindow(m_hWnd, wndRect.left, wndRect.top,
1010  nWidth + (wndRect.right - wndRect.left) - (clientRect.right - clientRect.left),
1011  nHeight + (wndRect.bottom - wndRect.top) - (clientRect.bottom - clientRect.top),
1012  bRedraw);
1013  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
LONG top
Definition: windef.h:297
LONG left
Definition: windef.h:296
LONG right
Definition: windef.h:298
BOOL GetClientRect(LPRECT lpRect) const
Definition: atlwin.h:498
BOOL GetWindowRect(LPRECT lpRect) const
Definition: atlwin.h:755
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI MoveWindow(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ BOOL)
LONG bottom
Definition: windef.h:299

◆ ScreenToClient()

BOOL ATL::CWindow::ScreenToClient ( LPPOINT  lpPoint) const
inline

Definition at line 1015 of file atlwin.h.

Referenced by CImgAreaWindow::cancelDrawing(), CDefView::drag_notify_subitem(), CDefView::DragEnter(), and CDefView::DragOver().

1016  {
1018  return ::ScreenToClient(m_hWnd, lpPoint);
1019  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI ScreenToClient(_In_ HWND, _Inout_ LPPOINT)

◆ ScrollWindow()

BOOL ATL::CWindow::ScrollWindow ( int  xAmount,
int  yAmount,
LPCRECT  lpRect = NULL,
LPCRECT  lpClipRect = NULL 
)
inline

Definition at line 1021 of file atlwin.h.

1022  {
1024  return ::ScrollWindow(m_hWnd, xAmount, yAmount, lpRect, lpClipRect);
1025  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI ScrollWindow(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT)
HWND m_hWnd
Definition: atlwin.h:259

◆ ScrollWindowEx()

int ATL::CWindow::ScrollWindowEx ( int  dx,
int  dy,
LPCRECT  lpRectScroll,
LPCRECT  lpRectClip,
HRGN  hRgnUpdate,
LPRECT  lpRectUpdate,
UINT  flags 
)
inline

Definition at line 1027 of file atlwin.h.

1028  {
1030  return ::ScrollWindowEx(m_hWnd, dx, dy, lpRectScroll, lpRectClip, hRgnUpdate, lpRectUpdate, flags);
1031  }
INT INT LPCRECT LPCRECT HRGN hRgnUpdate
Definition: msvc.h:65
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
int WINAPI ScrollWindowEx(_In_ HWND, _In_ int, _In_ int, _In_opt_ LPCRECT, _In_opt_ LPCRECT, _In_opt_ HRGN, _Out_opt_ LPRECT, _In_ UINT)
GLbitfield flags
Definition: glext.h:7161
HWND m_hWnd
Definition: atlwin.h:259
INT INT dy
Definition: msvc.h:65
INT dx
Definition: msvc.h:65

◆ SendDlgItemMessage()

LRESULT ATL::CWindow::SendDlgItemMessage ( int  nID,
UINT  message,
WPARAM  wParam = 0,
LPARAM  lParam = 0 
)
inline

Definition at line 1033 of file atlwin.h.

Referenced by CZipExtract::CConfirmReplace::OnInitDialog().

1034  {
1037  }
Definition: tftpd.h:59
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define SendDlgItemMessage
Definition: winuser.h:5708
WPARAM wParam
Definition: combotst.c:138
HWND m_hWnd
Definition: atlwin.h:259
LPARAM lParam
Definition: combotst.c:139

◆ SendMessage() [1/2]

LRESULT ATL::CWindow::SendMessage ( UINT  message,
WPARAM  wParam = 0,
LPARAM  lParam = 0 
)
inline

Definition at line 1039 of file atlwin.h.

Referenced by _tWinMain(), CMainWindow::alignChildrenToMainWindow(), CShellBrowser::BrowseToPath(), CBaseBarSite::EnumBands(), CZipExtract::Extract(), CBaseBarSite::GetBandObject(), CBaseBarSite::GetInternalBandInfo(), CTrayNotifyWnd::GetMinimumSize(), CBaseBarSite::InsertBar(), CMainWindow::InsertSelectionFromHBITMAP(), ImageModel::NotifyDimensionsChanged(), ImageModel::NotifyImageChanged(), ToolsModel::NotifyToolChanged(), CTaskBarSettingsPage::OnApply(), CShellBrowser::OnClose(), CMainWindow::OnCommand(), CTrayWindow::OnContextMenu(), CToolBox::OnCreate(), CToolSettingsWindow::OnCreate(), CMainWindow::OnCreate(), CBaseBarSite::OnCustomDraw(), CFullscreenWindow::OnGetText(), CMainWindow::OnKeyDown(), CSelectionWindow::OnLButtonDown(), CImgAreaWindow::OnLButtonDown(), CImgAreaWindow::OnLButtonUp(), CImgAreaWindow::OnMouseLeave(), CSelectionWindow::OnMouseMove(), CImgAreaWindow::OnMouseMove(), CImgAreaWindow::OnRButtonDown(), CImgAreaWindow::OnRButtonUp(), CTrayNotifyWnd::OnRealign(), CMainWindow::OnSize(), CToolBox::OnSysColorChange(), CMainWindow::OnSysColorChange(), CTrayClockWnd::OnTaskbarSettingsChanged(), CToolSettingsWindow::OnToolsModelZoomChanged(), CToolSettingsWindow::OnVScroll(), CTrayWindow::ProcessMouseTracking(), CShellBrowser::RelayCommands(), CShellBrowser::RelayMsgToShellView(), CBaseBarSite::RemoveBand(), CZipExtract::CExtractSettingsPage::s_BrowseCallbackProc(), CShellBrowser::SendControlMsg(), CBaseBarSite::SetDeskBarSite(), ATL::CPropertyPageImpl< CExtractSettingsPage >::SetModified(), CToolsBand::SetSite(), CBaseBarSite::ShowBand(), and CTrayClockWnd::UpdateWnd().

1040  {
1043  }
Definition: tftpd.h:59
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
WPARAM wParam
Definition: combotst.c:138
HWND m_hWnd
Definition: atlwin.h:259
#define SendMessage
Definition: winuser.h:5709
LPARAM lParam
Definition: combotst.c:139

◆ SendMessage() [2/2]

static LRESULT ATL::CWindow::SendMessage ( HWND  hWnd,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)
inlinestatic

Definition at line 1045 of file atlwin.h.

1046  {
1047  ATLASSERT(::IsWindow(hWnd));
1049  }
Definition: tftpd.h:59
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
WPARAM wParam
Definition: combotst.c:138
#define SendMessage
Definition: winuser.h:5709
LPARAM lParam
Definition: combotst.c:139

◆ SendMessageToDescendants()

void ATL::CWindow::SendMessageToDescendants ( UINT  message,
WPARAM  wParam = 0,
LPARAM  lParam = 0,
BOOL  bDeep = TRUE 
)
inline

Definition at line 1066 of file atlwin.h.

1067  {
1069  MSG msg;
1070  msg.message = message;
1071  msg.wParam = wParam;
1072  msg.lParam = lParam;
1073  if (bDeep)
1075  else
1077  }
BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM)
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
GLenum GLuint GLenum GLsizei const GLchar * message
Definition: glext.h:5579
BOOL IsWindow() const
Definition: atlwin.h:870
WPARAM wParam
Definition: combotst.c:138
LONG_PTR LPARAM
Definition: windef.h:208
HWND m_hWnd
Definition: atlwin.h:259
static BOOL CALLBACK SendMessageToDescendantsCallback(HWND hWnd, LPARAM lParam)
Definition: atlwin.h:1052
#define msg(x)
Definition: auth_time.c:54
static BOOL CALLBACK SendMessageToDescendantsCallbackDeep(HWND hWnd, LPARAM lParam)
Definition: atlwin.h:1058
LPARAM lParam
Definition: combotst.c:139

◆ SendMessageToDescendantsCallback()

static BOOL CALLBACK ATL::CWindow::SendMessageToDescendantsCallback ( HWND  hWnd,
LPARAM  lParam 
)
inlinestaticprivate

Definition at line 1052 of file atlwin.h.

1053  {
1054  ::SendMessage(hWnd, ((LPMSG)lParam)->message, ((LPMSG)lParam)->wParam, ((LPMSG)lParam)->lParam);
1055  return TRUE;
1056  }
Definition: tftpd.h:59
#define TRUE
Definition: types.h:120
WPARAM wParam
Definition: combotst.c:138
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039
LPARAM lParam
Definition: combotst.c:139

◆ SendMessageToDescendantsCallbackDeep()

static BOOL CALLBACK ATL::CWindow::SendMessageToDescendantsCallbackDeep ( HWND  hWnd,
LPARAM  lParam 
)
inlinestaticprivate

Definition at line 1058 of file atlwin.h.

1059  {
1060  ::SendMessage(hWnd, ((LPMSG)lParam)->message, ((LPMSG)lParam)->wParam, ((LPMSG)lParam)->lParam);
1062  return TRUE;
1063  }
BOOL WINAPI EnumChildWindows(_In_opt_ HWND, _In_ WNDENUMPROC, _In_ LPARAM)
Definition: tftpd.h:59
#define TRUE
Definition: types.h:120
WPARAM wParam
Definition: combotst.c:138
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039
static BOOL CALLBACK SendMessageToDescendantsCallbackDeep(HWND hWnd, LPARAM lParam)
Definition: atlwin.h:1058
LPARAM lParam
Definition: combotst.c:139

◆ SendNotifyMessage()

BOOL ATL::CWindow::SendNotifyMessage ( UINT  message,
WPARAM  wParam = 0,
LPARAM  lParam = 0 
)
inline

Definition at line 1079 of file atlwin.h.

1080  {
1083  }
Definition: tftpd.h:59
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
WPARAM wParam
Definition: combotst.c:138
HWND m_hWnd
Definition: atlwin.h:259
LPARAM lParam
Definition: combotst.c:139
#define SendNotifyMessage
Definition: winuser.h:5712

◆ SetActiveWindow()

HWND ATL::CWindow::SetActiveWindow ( )
inline

Definition at line 1085 of file atlwin.h.

1086  {
1089  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND WINAPI SetActiveWindow(_In_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ SetCapture()

HWND ATL::CWindow::SetCapture ( )
inline

Definition at line 1091 of file atlwin.h.

Referenced by CImgAreaWindow::OnLButtonDown(), and CImgAreaWindow::OnRButtonDown().

1092  {
1095  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
HWND WINAPI SetCapture(_In_ HWND hWnd)

◆ SetClipboardViewer()

HWND ATL::CWindow::SetClipboardViewer ( )
inline

Definition at line 1097 of file atlwin.h.

1098  {
1101  }
HWND WINAPI SetClipboardViewer(_In_ HWND)
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ SetDlgCtrlID()

int ATL::CWindow::SetDlgCtrlID ( int  nID)
inline

Definition at line 1103 of file atlwin.h.

1104  {
1107  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
#define GWL_ID
Definition: winuser.h:853
BOOL IsWindow() const
Definition: atlwin.h:870
#define SetWindowLong
Definition: winuser.h:5719
HWND m_hWnd
Definition: atlwin.h:259

◆ SetDlgItemInt()

BOOL ATL::CWindow::SetDlgItemInt ( int  nID,
UINT  nValue,
BOOL  bSigned = TRUE 
)
inline

Definition at line 1109 of file atlwin.h.

1110  {
1112  return ::SetDlgItemInt(m_hWnd, nID, nValue, bSigned);
1113  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI SetDlgItemInt(_In_ HWND, _In_ int, _In_ UINT, _In_ BOOL)
HWND m_hWnd
Definition: atlwin.h:259

◆ SetDlgItemText()

BOOL ATL::CWindow::SetDlgItemText ( int  nID,
LPCTSTR  lpszString 
)
inline

Definition at line 1115 of file atlwin.h.

1116  {
1118  return ::SetDlgItemText(m_hWnd, nID, lpszString);
1119  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define SetDlgItemText
Definition: winuser.h:5715
HWND m_hWnd
Definition: atlwin.h:259

◆ SetFocus()

HWND ATL::CWindow::SetFocus ( )
inline

Definition at line 1121 of file atlwin.h.

Referenced by CShellBrowser::OnSetFocus().

1122  {
1125  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND WINAPI SetFocus(_In_opt_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ SetFont()

void ATL::CWindow::SetFont ( HFONT  hFont,
BOOL  bRedraw = TRUE 
)
inline

Definition at line 1127 of file atlwin.h.

1128  {
1131  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HFONT hFont
Definition: main.c:53
UINT_PTR WPARAM
Definition: windef.h:207
LONG_PTR LPARAM
Definition: windef.h:208
HWND m_hWnd
Definition: atlwin.h:259
#define WM_SETFONT
Definition: winuser.h:1632
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039

◆ SetHotKey()

int ATL::CWindow::SetHotKey ( WORD  wVirtualKeyCode,
WORD  wModifiers 
)
inline

Definition at line 1133 of file atlwin.h.

1134  {
1136  return ::SendMessage(m_hWnd, WM_SETHOTKEY, MAKEWPARAM(wVirtualKeyCode, wModifiers), 0);
1137  }
#define WM_SETHOTKEY
Definition: winuser.h:1634
#define MAKEWPARAM(l, h)
Definition: winuser.h:3916
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
#define SendMessage
Definition: winuser.h:5709

◆ SetIcon()

HICON ATL::CWindow::SetIcon ( HICON  hIcon,
BOOL  bBigIcon = TRUE 
)
inline

Definition at line 1139 of file atlwin.h.

1140  {
1142  return (HICON)::SendMessage(m_hWnd, WM_SETICON, (WPARAM)bBigIcon, (LPARAM)hIcon);
1143  }
static HICON
Definition: imagelist.c:84
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
UINT_PTR WPARAM
Definition: windef.h:207
LONG_PTR LPARAM
Definition: windef.h:208
HWND m_hWnd
Definition: atlwin.h:259
HICON hIcon
Definition: msconfig.c:44
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039

◆ SetMenu()

BOOL ATL::CWindow::SetMenu ( HMENU  hMenu)
inline

Definition at line 1145 of file atlwin.h.

1146  {
1148  return ::SetMenu(m_hWnd, hMenu);
1149  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI SetMenu(_In_ HWND, _In_opt_ HMENU)
HWND m_hWnd
Definition: atlwin.h:259

◆ SetParent()

HWND ATL::CWindow::SetParent ( HWND  hWndNewParent)
inline

Definition at line 1151 of file atlwin.h.

1152  {
1154  return ::SetParent(m_hWnd, hWndNewParent);
1155  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
HWND WINAPI SetParent(_In_ HWND, _In_opt_ HWND)
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259

◆ SetRedraw()

void ATL::CWindow::SetRedraw ( BOOL  bRedraw = TRUE)
inline

Definition at line 1157 of file atlwin.h.

1158  {
1160  ::SendMessage(m_hWnd, WM_SETREDRAW, (WPARAM)bRedraw, 0);
1161  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
#define WM_SETREDRAW
Definition: winuser.h:1598
BOOL IsWindow() const
Definition: atlwin.h:870
UINT_PTR WPARAM
Definition: windef.h:207
HWND m_hWnd
Definition: atlwin.h:259
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
Definition: atlwin.h:1039

◆ SetScrollInfo()

int ATL::CWindow::SetScrollInfo ( int  nBar,
LPSCROLLINFO  lpScrollInfo,
BOOL  bRedraw = TRUE 
)
inline

Definition at line 1163 of file atlwin.h.

1164  {
1166  return ::SetScrollInfo(m_hWnd, nBar, lpScrollInfo, bRedraw);
1167  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
int WINAPI SetScrollInfo(_In_ HWND, _In_ int, _In_ LPCSCROLLINFO, _In_ BOOL)

◆ SetScrollPos()

int ATL::CWindow::SetScrollPos ( int  nBar,
int  nPos,
BOOL  bRedraw = TRUE 
)
inline

Definition at line 1169 of file atlwin.h.

1170  {
1172  return ::SetScrollPos(m_hWnd, nBar, nPos, bRedraw);
1173  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
INT INT nPos
Definition: msvc.h:57
HWND m_hWnd
Definition: atlwin.h:259
int WINAPI SetScrollPos(_In_ HWND, _In_ int, _In_ int, _In_ BOOL)

◆ SetScrollRange()

BOOL ATL::CWindow::SetScrollRange ( int  nBar,
int  nMinPos,
int  nMaxPos,
BOOL  bRedraw = TRUE 
)
inline

Definition at line 1175 of file atlwin.h.

1176  {
1178  return ::SetScrollRange(m_hWnd, nBar, nMinPos, nMaxPos, bRedraw);
1179  }
INT LONG nMinPos
Definition: msvc.h:56
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI SetScrollRange(_In_ HWND, _In_ int, _In_ int, _In_ int, _In_ BOOL)
INT LONG INT nMaxPos
Definition: msvc.h:56

◆ SetTimer()

UINT_PTR ATL::CWindow::SetTimer ( UINT_PTR  nIDEvent,
UINT  nElapse,
void(CALLBACK *lpfnTimer)(HWND, UINT, UINT_PTR, DWORD = NULL 
)
inline

Definition at line 1181 of file atlwin.h.

Referenced by CTrayClockWnd::CalibrateTimer(), and CTrayClockWnd::ResetTime().

1182  {
1184  return ::SetTimer(m_hWnd, nIDEvent, nElapse, reinterpret_cast<TIMERPROC>(lpfnTimer));
1185  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
HWND m_hWnd
Definition: atlwin.h:259

◆ SetWindowContextHelpId()

BOOL ATL::CWindow::SetWindowContextHelpId ( DWORD  dwContextHelpId)
inline

Definition at line 1187 of file atlwin.h.

1188  {
1190  return ::SetWindowContextHelpId(m_hWnd, dwContextHelpId);
1191  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI SetWindowContextHelpId(_In_ HWND, _In_ DWORD)
HWND m_hWnd
Definition: atlwin.h:259

◆ SetWindowLong()

LONG ATL::CWindow::SetWindowLong ( int  nIndex,
LONG  dwNewLong 
)
inline

Definition at line 1193 of file atlwin.h.

1194  {
1196  return ::SetWindowLong(m_hWnd, nIndex, dwNewLong);
1197  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define SetWindowLong
Definition: winuser.h:5719
HWND m_hWnd
Definition: atlwin.h:259
int nIndex
Definition: msvc.h:77

◆ SetWindowLongPtr()

LONG_PTR ATL::CWindow::SetWindowLongPtr ( int  nIndex,
LONG_PTR  dwNewLong 
)
inline

Definition at line 1199 of file atlwin.h.

Referenced by CZipExtract::CExtractSettingsPage::OnWizardNext(), and CShellBrowser::WindowProc().

1200  {
1203  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define SetWindowLongPtr
Definition: treelist.c:70
HWND m_hWnd
Definition: atlwin.h:259
int nIndex
Definition: msvc.h:77

◆ SetWindowPlacement()

BOOL ATL::CWindow::SetWindowPlacement ( const WINDOWPLACEMENT lpwndpl)
inline

Definition at line 1205 of file atlwin.h.

Referenced by _tWinMain().

1206  {
1209  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI SetWindowPlacement(_In_ HWND hWnd, _In_ const WINDOWPLACEMENT *)
HWND m_hWnd
Definition: atlwin.h:259

◆ SetWindowPos()

BOOL ATL::CWindow::SetWindowPos ( HWND  hWndInsertAfter,
int  x,
int  y,
int  cx,
int  cy,
UINT  nFlags 
)
inline

Definition at line 1211 of file atlwin.h.

Referenced by CDefView::CreateViewWindow3(), CToolbarProxy::Initialize(), CBaseBarSite::OnCustomDraw(), CShellBrowser::RepositionBars(), and CTrayNotifyWnd::Size().

1212  {
1214  return ::SetWindowPos(m_hWnd, hWndInsertAfter, x, y, cx, cy, nFlags);
1215  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
INT INT y
Definition: msvc.h:62
_Out_opt_ int _Out_opt_ int * cy
Definition: commctrl.h:570
HWND m_hWnd
Definition: atlwin.h:259
INT x
Definition: msvc.h:62
_Out_opt_ int * cx
Definition: commctrl.h:570
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)

◆ SetWindowRgn()

int ATL::CWindow::SetWindowRgn ( HRGN  hRgn,
BOOL  bRedraw = FALSE 
)
inline

Definition at line 1217 of file atlwin.h.

1218  {
1220  return ::SetWindowRgn(m_hWnd, hRgn, bRedraw);
1221  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
static HRGN hRgn
Definition: mapping.c:33
int WINAPI SetWindowRgn(_In_ HWND, _In_opt_ HRGN, _In_ BOOL)
HWND m_hWnd
Definition: atlwin.h:259

◆ SetWindowText()

BOOL ATL::CWindow::SetWindowText ( LPCTSTR  lpszString)
inline

Definition at line 1223 of file atlwin.h.

Referenced by _tWinMain(), CShellBrowser::BrowseToPath(), CMainWindow::saveImage(), CShellBrowser::SetStatusTextSB(), CMainWindow::UpdateApplicationProperties(), and CTrayClockWnd::UpdateWnd().

1224  {
1226  return ::SetWindowText(m_hWnd, lpszString);
1227  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
#define SetWindowText
Definition: winuser.h:5723

◆ SetWindowWord()

WORD ATL::CWindow::SetWindowWord ( int  nIndex,
WORD  wNewWord 
)
inline

Definition at line 1229 of file atlwin.h.

1230  {
1232  if (nIndex >= -4)
1234  else
1236  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
#define SetWindowLong
Definition: winuser.h:5719
#define MAKELONG(a, b)
Definition: typedefs.h:248
LONG GetWindowLong(int nIndex) const
Definition: atlwin.h:729
HWND m_hWnd
Definition: atlwin.h:259
int nIndex
Definition: msvc.h:77
#define HIWORD(l)
Definition: typedefs.h:246
#define LOWORD(l)
Definition: pedump.c:82

◆ ShowCaret()

BOOL ATL::CWindow::ShowCaret ( )
inline

Definition at line 1238 of file atlwin.h.

1239  {
1242  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI ShowCaret(_In_opt_ HWND)

◆ ShowOwnedPopups()

BOOL ATL::CWindow::ShowOwnedPopups ( BOOL  bShow = TRUE)
inline

Definition at line 1244 of file atlwin.h.

1245  {
1248  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
HWND m_hWnd
Definition: atlwin.h:259
BOOL WINAPI ShowOwnedPopups(_In_ HWND, _In_ BOOL)

◆ ShowScrollBar()

BOOL ATL::CWindow::ShowScrollBar ( UINT  nBar,
BOOL  bShow = TRUE 
)
inline

Definition at line 1250 of file atlwin.h.

1251  {
1253  return ::ShowScrollBar(m_hWnd, nBar, bShow);
1254  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI ShowScrollBar(_In_ HWND, _In_ int, _In_ BOOL)
HWND m_hWnd
Definition: atlwin.h:259

◆ ShowWindow()

BOOL ATL::CWindow::ShowWindow ( int  nCmdShow)
inline

◆ ShowWindowAsync()

BOOL ATL::CWindow::ShowWindowAsync ( int  nCmdShow)
inline

Definition at line 1262 of file atlwin.h.

1263  {
1265  return ::ShowWindowAsync(m_hWnd, nCmdShow);
1266  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI ShowWindowAsync(_In_ HWND, _In_ int)
HWND m_hWnd
Definition: atlwin.h:259

◆ UpdateWindow()

BOOL ATL::CWindow::UpdateWindow ( )
inline

Definition at line 1268 of file atlwin.h.

Referenced by CDefView::CreateViewWindow3(), CShellBrowser::Initialize(), and CImgAreaWindow::OnMouseMove().

1269  {
1272  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI UpdateWindow(_In_ HWND)
HWND m_hWnd
Definition: atlwin.h:259

◆ ValidateRect()

BOOL ATL::CWindow::ValidateRect ( LPCRECT  lpRect)
inline

Definition at line 1274 of file atlwin.h.

1275  {
1277  return ::ValidateRect(m_hWnd, lpRect);
1278  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
BOOL WINAPI ValidateRect(_In_opt_ HWND, _In_opt_ LPCRECT)
HWND m_hWnd
Definition: atlwin.h:259

◆ ValidateRgn()

BOOL ATL::CWindow::ValidateRgn ( HRGN  hRgn)
inline

Definition at line 1280 of file atlwin.h.

1281  {
1284  }
BOOL WINAPI ValidateRgn(_In_ HWND, _In_opt_ HRGN)
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
static HRGN hRgn
Definition: mapping.c:33
HWND m_hWnd
Definition: atlwin.h:259

◆ WinHelp()

BOOL ATL::CWindow::WinHelp ( LPCTSTR  lpszHelp,
UINT  nCmd = HELP_CONTEXT,
DWORD  dwData = 0 
)
inline

Definition at line 1286 of file atlwin.h.

1287  {
1289  return ::WinHelp(m_hWnd, lpszHelp, nCmd, dwData);
1290  }
#define ATLASSERT(x)
Definition: CComVariant.cpp:9
BOOL IsWindow() const
Definition: atlwin.h:870
static HANDLE ULONG_PTR dwData
Definition: file.c:35
HWND m_hWnd
Definition: atlwin.h:259
#define WinHelp
Definition: winuser.h:5730

Member Data Documentation

◆ m_hWnd

HWND ATL::CWindow::m_hWnd

Definition at line 259 of file atlwin.h.

Referenced by _tWinMain(), CTrayWindow::AlignControls(), CShellBrowser::BrowseToPath(), CToolsBand::CloseDW(), CDefView::CreateList(), CDefView::CreateViewWindow3(), CDefView::DestroyViewWindow(), CDefView::DoActivate(), CShellBrowser::DoFolderOptions(), CDefView::DragEnter(), CDefView::DragLeave(), CTrayClockWnd::DrawBackground(), CDefView::Drop(), CDefView::FillList(), CToolsBand::GetBandInfo(), CShellBrowser::GetBorderDW(), CDefView::GetItemObject(), CToolsBand::GetWindow(), CBaseBarSite::GetWindow(), CTrayClockWnd::GetWindow(), CDefView::GetWindow(), CTrayNotifyWnd::GetWindow(), CShellBrowser::GetWindow(), CTrayClockWnd::Initialize(), CShellBrowser::Initialize(), CMainWindow::InsertSelectionFromHBITMAP(), CDefView::InvokeContextMenuCommand(), CTrayNotifyWnd::MESSAGE_HANDLER(), CShellBrowser::OnAboutReactOS(), CZipExtract::CExtractSettingsPage::OnBrowse(), CMainWindow::OnCommand(), CTrayWindow::OnCommand(), CDefView::OnContextMenu(), CTrayWindow::OnContextMenu(), CToolBox::OnCreate(), CTrayNotifyWnd::OnCreate(), CDefView::OnCreate(), CTrayWindow::OnCreate(), CTaskBarSettingsPage::OnCustomizeTrayIcons(), CDefView::OnDestroy(), CShellBrowser::OnDisconnectNetworkDrive(), CTrayNotifyWnd::OnEraseBackground(), CTrayNotifyWnd::OnGetMinimumSize(), CZipExtract::CConfirmReplace::OnInitDialog(), CMainWindow::OnKeyDown(), CImgAreaWindow::OnKeyDown(), CShellBrowser::OnMapNetworkDrive(), CImgAreaWindow::OnMouseMove(), CTrayClockWnd::OnNcLButtonDblClick(), CBaseBarSite::OnNotify(), ATL::CPropertyPageImpl< CExtractSettingsPage >::OnNotify(), CDefView::OnNotify(), CShellBrowser::OnOrganizeFavorites(), CTrayNotifyWnd::OnRealign(), CShellBrowser::OnSearch(), CShellBrowser::OnSettingChange(), CShellBrowser::OnSize(), CStartMenuSettingsPage::OnStartMenuCustomize(), CTrayWindow::OnSysChar(), CMainWindow::OnSysColorChange(), CTrayNotifyWnd::OnThemeChanged(), CTrayClockWnd::OnThemeChanged(), CBaseBarSite::OnWinEvent(), CZipExtract::CExtractSettingsPage::OnWizardNext(), CBaseBarSite::SetDeskBarSite(), CShellBrowser::SetMenuSB(), ATL::CPropertyPageImpl< CExtractSettingsPage >::SetModified(), CToolsBand::ShowDW(), CDefView::TranslateAccelerator(), CShellBrowser::TranslateAcceleratorSB(), CShellBrowser::WindowProc(), and CDefView::~CDefView().

◆ rcDefault

RECT ATL::CWindow::rcDefault
static

Definition at line 260 of file atlwin.h.

Referenced by WinHelp().


The documentation for this class was generated from the following file: