ReactOS 0.4.15-dev-7998-gdb93cb1
CUTBLangBarDlg Class Referenceabstract
Inheritance diagram for CUTBLangBarDlg:

Public Member Functions

 CUTBLangBarDlg ()
 
virtual ~CUTBLangBarDlg ()
 
BOOL StartThread ()
 
LONG _Release ()
 
 STDMETHOD_ (BOOL, DoModal)(HWND hDlg)=0
 
 STDMETHOD_ (BOOL, OnCommand)(HWND hDlg
 
 STDMETHOD_ (BOOL, IsDlgShown)()=0
 
 STDMETHOD_ (void, SetDlgShown)(BOOL bShown)=0
 
 STDMETHOD_ (BOOL, ThreadProc)()
 

Static Public Member Functions

static CUTBLangBarDlgGetThis (HWND hDlg)
 
static void SetThis (HWND hDlg, CUTBLangBarDlg *pThis)
 
static DWORD WINAPI s_ThreadProc (LPVOID pParam)
 
static INT_PTR CALLBACK DlgProc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 

Public Attributes

WPARAM wParam
 
WPARAM LPARAM lParam = 0
 

Protected Attributes

LPTSTR m_pszDialogName
 
LONG m_cRefs
 

Detailed Description

Definition at line 652 of file msutb.cpp.

Constructor & Destructor Documentation

◆ CUTBLangBarDlg()

CUTBLangBarDlg::CUTBLangBarDlg ( )
inline

Definition at line 659 of file msutb.cpp.

659{ }

◆ ~CUTBLangBarDlg()

virtual CUTBLangBarDlg::~CUTBLangBarDlg ( )
inlinevirtual

Definition at line 660 of file msutb.cpp.

660{ }

Member Function Documentation

◆ _Release()

LONG CUTBLangBarDlg::_Release ( )

Definition at line 1694 of file msutb.cpp.

1695{
1696 if (--m_cRefs == 0)
1697 {
1698 delete this;
1699 return 0;
1700 }
1701 return m_cRefs;
1702}
LONG m_cRefs
Definition: msutb.cpp:656

Referenced by CUTBContextMenu::SelectMenuItem(), and STDMETHODIMP_().

◆ DlgProc()

INT_PTR CALLBACK CUTBLangBarDlg::DlgProc ( HWND  hDlg,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 1714 of file msutb.cpp.

1715{
1716 if (uMsg == WM_INITDIALOG)
1717 {
1718 SetThis(hDlg, (CUTBLangBarDlg *)lParam);
1719 ::ShowWindow(hDlg, SW_RESTORE);
1720 ::UpdateWindow(hDlg);
1721 return TRUE;
1722 }
1723
1724 if (uMsg == WM_COMMAND)
1725 {
1727 pThis->OnCommand(hDlg, wParam, lParam);
1728 return TRUE;
1729 }
1730
1731 return FALSE;
1732}
WPARAM wParam
Definition: msutb.cpp:671
static void SetThis(HWND hDlg, CUTBLangBarDlg *pThis)
Definition: msutb.cpp:1664
WPARAM LPARAM lParam
Definition: msutb.cpp:671
static CUTBLangBarDlg * GetThis(HWND hDlg)
Definition: msutb.cpp:1659
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
#define WM_COMMAND
Definition: winuser.h:1740
#define WM_INITDIALOG
Definition: winuser.h:1739
BOOL WINAPI UpdateWindow(_In_ HWND)
#define SW_RESTORE
Definition: winuser.h:779

◆ GetThis()

CUTBLangBarDlg * CUTBLangBarDlg::GetThis ( HWND  hDlg)
static

Definition at line 1659 of file msutb.cpp.

1660{
1662}
#define GetWindowLongPtr
Definition: treelist.c:73
#define DWLP_USER
Definition: winuser.h:872

Referenced by DlgProc().

◆ s_ThreadProc()

DWORD WINAPI CUTBLangBarDlg::s_ThreadProc ( LPVOID  pParam)
static

Definition at line 1669 of file msutb.cpp.

1670{
1671 return ((CUTBLangBarDlg *)pParam)->ThreadProc();
1672}

Referenced by StartThread().

◆ SetThis()

void CUTBLangBarDlg::SetThis ( HWND  hDlg,
CUTBLangBarDlg pThis 
)
static

Definition at line 1664 of file msutb.cpp.

1665{
1666 ::SetWindowLongPtr(hDlg, DWLP_USER, (LONG_PTR)pThis);
1667}
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
#define SetWindowLongPtr
Definition: treelist.c:70

Referenced by DlgProc().

◆ StartThread()

BOOL CUTBLangBarDlg::StartThread ( )

Definition at line 1674 of file msutb.cpp.

1675{
1676 if (IsDlgShown())
1677 return FALSE;
1678
1679 SetDlgShown(TRUE);
1680
1683 if (!hThread)
1684 {
1685 SetDlgShown(FALSE);
1686 return TRUE;
1687 }
1688
1689 ++m_cRefs;
1691 return TRUE;
1692}
static DWORD WINAPI s_ThreadProc(LPVOID pParam)
Definition: msutb.cpp:1669
#define NULL
Definition: types.h:112
#define CloseHandle
Definition: compat.h:739
HANDLE WINAPI DECLSPEC_HOTPATCH CreateThread(IN LPSECURITY_ATTRIBUTES lpThreadAttributes, IN DWORD dwStackSize, IN LPTHREAD_START_ROUTINE lpStartAddress, IN LPVOID lpParameter, IN DWORD dwCreationFlags, OUT LPDWORD lpThreadId)
Definition: thread.c:137
DWORD dwThreadId
Definition: fdebug.c:31
unsigned long DWORD
Definition: ntddk_ex.h:95
HANDLE hThread
Definition: wizard.c:28

◆ STDMETHOD_() [1/5]

CUTBLangBarDlg::STDMETHOD_ ( BOOL  ,
DoModal   
)
pure virtual

◆ STDMETHOD_() [2/5]

CUTBLangBarDlg::STDMETHOD_ ( BOOL  ,
IsDlgShown   
)
pure virtual

◆ STDMETHOD_() [3/5]

CUTBLangBarDlg::STDMETHOD_ ( BOOL  ,
OnCommand   
)

◆ STDMETHOD_() [4/5]

CUTBLangBarDlg::STDMETHOD_ ( BOOL  ,
ThreadProc   
)

◆ STDMETHOD_() [5/5]

CUTBLangBarDlg::STDMETHOD_ ( void  ,
SetDlgShown   
)
pure virtual

Member Data Documentation

◆ lParam

WPARAM LPARAM CUTBLangBarDlg::lParam = 0

Definition at line 671 of file msutb.cpp.

Referenced by DlgProc().

◆ m_cRefs

LONG CUTBLangBarDlg::m_cRefs
protected

◆ m_pszDialogName

LPTSTR CUTBLangBarDlg::m_pszDialogName
protected

◆ wParam

WPARAM CUTBLangBarDlg::wParam

Definition at line 671 of file msutb.cpp.

Referenced by DlgProc().


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