ReactOS  0.4.15-dev-1150-g593bcce
CEditCompatModes Class Reference
Inheritance diagram for CEditCompatModes:
Collaboration diagram for CEditCompatModes:

Public Types

enum  { IDD = IDD_EDITCOMPATIBILITYMODES }
 
- Public Types inherited from ATL::CWindowImplRoot< CWindow >
enum  
 

Public Member Functions

 CEditCompatModes (CLayerUIPropPage *page)
 
 ~CEditCompatModes ()
 
LRESULT OnInitDialog (UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT OnButton (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnAdd (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnRemove (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnRemoveAll (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
LRESULT OnListboxUpdated (WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
 
- Public Member Functions inherited from ATL::CDialogImpl< CEditCompatModes >
HWND Create (HWND hWndParent, LPARAM dwInitParam=NULL)
 
INT_PTR DoModal (HWND hWndParent=::GetActiveWindow(), LPARAM dwInitParam=NULL)
 
BOOL EndDialog (_In_ int nRetCode)
 
BOOL DestroyWindow ()
 
- Public Member Functions inherited from ATL::CDialogImplBaseT< CWindow >
virtual ~CDialogImplBaseT ()
 
virtual DLGPROC GetDialogProc ()
 
virtual void OnFinalMessage (HWND)
 
- Public Member Functions inherited from ATL::CWindowImplRoot< CWindow >
 CWindowImplRoot ()
 
virtual ~CWindowImplRoot ()
 
- Public Member Functions inherited from ATL::CWindow
 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)
 
- Public Member Functions inherited from ATL::CMessageMap
virtual BOOL ProcessWindowMessage (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult, DWORD dwMsgMapID)=0
 

Private Member Functions

CStringW GetListText (HWND ListBox, int Cur)
 

Private Attributes

CLayerUIPropPagem_pPage
 
HWND m_hListAdd
 
HWND m_hListActive
 

Additional Inherited Members

- Static Public Member Functions inherited from ATL::CDialogImplBaseT< CWindow >
static INT_PTR CALLBACK StartDialogProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static INT_PTR CALLBACK DialogProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
- Static Public Member Functions inherited from ATL::CWindow
static LPCTSTR GetWndClassName ()
 
static LRESULT SendMessage (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 
- Public Attributes inherited from ATL::CWindowImplRoot< CWindow >
CWndProcThunk m_thunk
 
const _ATL_MSGm_pCurrentMsg
 
DWORD m_dwState
 
- Public Attributes inherited from ATL::CWindow
HWND m_hWnd
 
- Static Public Attributes inherited from ATL::CWindow
static RECT rcDefault
 

Detailed Description

Definition at line 12 of file CEditCompatModes.cpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IDD 

Definition at line 135 of file CEditCompatModes.cpp.

Constructor & Destructor Documentation

◆ CEditCompatModes()

CEditCompatModes::CEditCompatModes ( CLayerUIPropPage page)
inline

Definition at line 30 of file CEditCompatModes.cpp.

31  : m_pPage(page)
32  {
33  m_pPage->AddRef();
34  }
Definition: module.h:566
ULONG AddRef()
CLayerUIPropPage * m_pPage

◆ ~CEditCompatModes()

CEditCompatModes::~CEditCompatModes ( )
inline

Definition at line 36 of file CEditCompatModes.cpp.

37  {
38  m_pPage->Release();
39  }
ULONG Release()
CLayerUIPropPage * m_pPage

Member Function Documentation

◆ GetListText()

CStringW CEditCompatModes::GetListText ( HWND  ListBox,
int  Cur 
)
inlineprivate

Definition at line 19 of file CEditCompatModes.cpp.

20  {
21  CStringW Str;
22  int Length = ListBox_GetTextLen(ListBox, Cur);
23  LPWSTR Buffer = Str.GetBuffer(Length + 1);
24  ListBox_GetText(ListBox, Cur, Buffer);
25  Str.ReleaseBuffer(Length);
26  return Str;
27  }
void ReleaseBuffer(_In_ int nNewLength=-1)
Definition: atlsimpstr.h:372
Definition: bufpool.h:45
#define ListBox_GetText(hwndCtl, index, lpszBuffer)
Definition: windowsx.h:464
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
#define ListBox_GetTextLen(hwndCtl, index)
Definition: windowsx.h:465
WCHAR * LPWSTR
Definition: xmlstorage.h:184

Referenced by OnAdd(), OnButton(), and OnRemove().

◆ OnAdd()

LRESULT CEditCompatModes::OnAdd ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)
inline

Definition at line 87 of file CEditCompatModes.cpp.

88  {
89  int Sel = ListBox_GetCurSel(m_hListAdd);
90  CStringW Str = GetListText(m_hListAdd, Sel);
91 
93  if (Index == LB_ERR)
95 
97  return 0;
98  }
HWND SetFocus()
Definition: atlwin.h:1130
#define ListBox_GetCurSel(hwndCtl)
Definition: windowsx.h:456
#define ListBox_FindStringExact(hwndCtl, indexStart, lpszFind)
Definition: windowsx.h:453
#define ListBox_AddString(hwndCtl, lpsz)
Definition: windowsx.h:447
#define LB_ERR
Definition: winuser.h:2407
static const UCHAR Index[8]
Definition: usbohci.c:18
CStringW GetListText(HWND ListBox, int Cur)

◆ OnButton()

LRESULT CEditCompatModes::OnButton ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)
inline

Definition at line 71 of file CEditCompatModes.cpp.

72  {
73  if (wID == IDOK)
74  {
76  m_pPage->m_CustomLayers.RemoveAll();
77  for (int Cur = 0; Cur < Count; ++Cur)
78  {
79  CString Str = GetListText(m_hListActive, Cur);
80  m_pPage->m_CustomLayers.Add(Str);
81  }
82  }
83  EndDialog(wID);
84  return 0;
85  }
#define IDOK
Definition: winuser.h:824
BOOL EndDialog(_In_ int nRetCode)
Definition: atlwin.h:1450
CSimpleArray< CString > m_CustomLayers
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1223
CLayerUIPropPage * m_pPage
#define ListBox_GetCount(hwndCtl)
Definition: windowsx.h:455
CStringW GetListText(HWND ListBox, int Cur)

◆ OnInitDialog()

LRESULT CEditCompatModes::OnInitDialog ( UINT  nMsg,
WPARAM  wParam,
LPARAM  lParam,
BOOL bHandled 
)
inline

Definition at line 41 of file CEditCompatModes.cpp.

42  {
44 
47 
49 
50  while (TRUE)
51  {
53  HRESULT hr = pList.Next(1, &str, NULL);
54  if (hr != S_OK)
55  break;
57  }
58 
59  for (int n = 0; n < m_pPage->m_CustomLayers.GetSize(); ++n)
60  {
61  const WCHAR* Str = m_pPage->m_CustomLayers[n].GetString();
63  if (Index == LB_ERR)
65  }
66 
67  OnListboxUpdated(0, 0, 0, bHandled);
68  return 0;
69  }
HRESULT hr
Definition: shlfolder.c:183
#define TRUE
Definition: types.h:120
CSimpleArray< CString > m_CustomLayers
#define ListBox_FindStringExact(hwndCtl, indexStart, lpszFind)
Definition: windowsx.h:453
#define IDC_NEWCOMPATIBILITYMODE
Definition: resource.h:15
GLdouble n
Definition: glext.h:7729
#define ListBox_AddString(hwndCtl, lpsz)
Definition: windowsx.h:447
LRESULT OnListboxUpdated(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
#define LB_ERR
Definition: winuser.h:2407
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
HWND GetDlgItem(int nID)
Definition: atlwin.h:571
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:79
static const UCHAR Index[8]
Definition: usbohci.c:18
BOOL CenterWindow(HWND hWndCenter=NULL)
Definition: atlwin.h:309
#define IDC_COMPATIBILITYMODE
Definition: resource.h:8
CLayerUIPropPage * m_pPage
#define S_OK
Definition: intsafe.h:51
CWindow GetParent() const
Definition: atlwin.h:654

◆ OnListboxUpdated()

LRESULT CEditCompatModes::OnListboxUpdated ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)
inline

Definition at line 120 of file CEditCompatModes.cpp.

121  {
122  if (m_hListAdd == hWndCtl)
124  else if (m_hListActive == hWndCtl)
126 
130  bHandled = TRUE;
131  return 0;
132  }
#define ListBox_GetCurSel(hwndCtl)
Definition: windowsx.h:456
#define IDC_REMOVEALL
Definition: resource.h:17
#define TRUE
Definition: types.h:120
#define IDC_REMOVE
Definition: resource.h:18
BOOL EnableWindow(BOOL bEnable=TRUE)
Definition: atlwin.h:489
#define ListBox_SetCurSel(hwndCtl, index)
Definition: windowsx.h:475
#define IDC_ADD
Definition: resource.h:16
HWND GetDlgItem(int nID)
Definition: atlwin.h:571
#define ListBox_GetCount(hwndCtl)
Definition: windowsx.h:455

Referenced by OnInitDialog(), OnRemove(), and OnRemoveAll().

◆ OnRemove()

LRESULT CEditCompatModes::OnRemove ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)
inline

Definition at line 100 of file CEditCompatModes.cpp.

101  {
102  int Sel = ListBox_GetCurSel(m_hListActive);
103  CStringW Str = GetListText(m_hListActive, Sel);
104 
106  int Index = ListBox_FindStringExact(m_hListAdd, -1, Str);
107  if (Index != LB_ERR)
109  OnListboxUpdated(wNotifyCode, wID, hWndCtl, bHandled);
110  return 0;
111  }
#define ListBox_GetCurSel(hwndCtl)
Definition: windowsx.h:456
#define ListBox_DeleteString(hwndCtl, index)
Definition: windowsx.h:448
#define ListBox_FindStringExact(hwndCtl, indexStart, lpszFind)
Definition: windowsx.h:453
#define ListBox_SetCurSel(hwndCtl, index)
Definition: windowsx.h:475
LRESULT OnListboxUpdated(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
#define LB_ERR
Definition: winuser.h:2407
static const UCHAR Index[8]
Definition: usbohci.c:18
CStringW GetListText(HWND ListBox, int Cur)

◆ OnRemoveAll()

LRESULT CEditCompatModes::OnRemoveAll ( WORD  wNotifyCode,
WORD  wID,
HWND  hWndCtl,
BOOL bHandled 
)
inline

Definition at line 113 of file CEditCompatModes.cpp.

114  {
116  OnListboxUpdated(wNotifyCode, wID, hWndCtl, bHandled);
117  return 0;
118  }
#define ListBox_ResetContent(hwndCtl)
Definition: windowsx.h:469
LRESULT OnListboxUpdated(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)

Member Data Documentation

◆ m_hListActive

HWND CEditCompatModes::m_hListActive
private

◆ m_hListAdd

HWND CEditCompatModes::m_hListAdd
private

Definition at line 16 of file CEditCompatModes.cpp.

Referenced by OnAdd(), OnInitDialog(), OnListboxUpdated(), and OnRemove().

◆ m_pPage

CLayerUIPropPage* CEditCompatModes::m_pPage
private

Definition at line 15 of file CEditCompatModes.cpp.

Referenced by CEditCompatModes(), OnButton(), OnInitDialog(), and ~CEditCompatModes().


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