ReactOS  0.4.12-dev-102-g4b7f1e0
gui.h File Reference
#include <windef.h>
#include <atlstr.h>
Include dependency graph for gui.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

HWND CreateMainWindow ()
 
DWORD_PTR ListViewGetlParam (INT item)
 
INT ListViewAddItem (INT ItemIndex, INT IconIndex, LPWSTR lpName, LPARAM lParam)
 
VOID SetStatusBarText (LPCWSTR szText)
 
VOID NewRichEditText (LPCWSTR szText, DWORD flags)
 
VOID InsertRichEditText (LPCWSTR szText, DWORD flags)
 
VOID SetStatusBarText (const ATL::CStringW &szText)
 
INT ListViewAddItem (INT ItemIndex, INT IconIndex, const ATL::CStringW &Name, LPARAM lParam)
 
VOID NewRichEditText (const ATL::CStringW &szText, DWORD flags)
 
VOID InsertRichEditText (const ATL::CStringW &szText, DWORD flags)
 
CAvailableAppsGetAvailableApps ()
 

Variables

HWND hListView
 
ATL::CStringW szSearchPattern
 

Function Documentation

◆ CreateMainWindow()

HWND CreateMainWindow ( )

Definition at line 1767 of file gui.cpp.

1768 {
1769  g_MainWindow = new CMainWindow();
1770  return g_MainWindow->Create();
1771 }
CMainWindow * g_MainWindow
Definition: gui.cpp:1765
HWND Create()
Definition: gui.cpp:1726

◆ GetAvailableApps()

CAvailableApps* GetAvailableApps ( )

Definition at line 1802 of file gui.cpp.

1803 {
1804  return g_MainWindow->GetAvailableApps();
1805 }
CMainWindow * g_MainWindow
Definition: gui.cpp:1765
CAvailableApps * GetAvailableApps()
Definition: gui.cpp:1758

◆ InsertRichEditText() [1/2]

VOID InsertRichEditText ( LPCWSTR  szText,
DWORD  flags 
)

Definition at line 1797 of file gui.cpp.

Referenced by CAvailableAppView::InsertLanguageInfo_RichEdit(), CAvailableAppView::InsertLoadedTextNewl_RichEdit(), InsertRichEditText(), CAvailableAppView::InsertTextAfterLoaded_RichEdit(), SetWelcomeText(), and ShowInstalledAppInfo().

1798 {
1800 }
CMainWindow * g_MainWindow
Definition: gui.cpp:1765
static const WCHAR szText[]
Definition: dialog.c:139
CRichEdit * GetRichEdit()
Definition: gui.cpp:1753
GLbitfield flags
Definition: glext.h:7161
VOID InsertText(LPCWSTR lpszText, DWORD dwEffects)
Definition: crichedit.h:72

◆ InsertRichEditText() [2/2]

VOID InsertRichEditText ( const ATL::CStringW szText,
DWORD  flags 
)

Definition at line 1823 of file gui.cpp.

1824 {
1825  InsertRichEditText(szText.GetString(), flags);
1826 }
PCXSTR GetString() const
Definition: atlsimpstr.h:361
GLbitfield flags
Definition: glext.h:7161
VOID InsertRichEditText(LPCWSTR szText, DWORD flags)
Definition: gui.cpp:1797

◆ ListViewAddItem() [1/2]

INT ListViewAddItem ( INT  ItemIndex,
INT  IconIndex,
LPWSTR  lpName,
LPARAM  lParam 
)

Definition at line 1787 of file gui.cpp.

Referenced by ListViewAddItem(), CMainWindow::s_EnumAvailableAppProc(), and CMainWindow::s_EnumInstalledAppProc().

1788 {
1789  return g_MainWindow->GetListView()->AddItem(ItemIndex, IconIndex, lpName, lParam);
1790 }
CMainWindow * g_MainWindow
Definition: gui.cpp:1765
_In_ LPCSTR lpName
Definition: winbase.h:2729
static const WCHAR IconIndex[]
Definition: install.c:51
CAppsListView * GetListView()
Definition: gui.cpp:1748
INT AddItem(INT ItemIndex, INT IconIndex, LPWSTR lpText, LPARAM lParam)
Definition: gui.cpp:503
LPARAM lParam
Definition: combotst.c:139

◆ ListViewAddItem() [2/2]

INT ListViewAddItem ( INT  ItemIndex,
INT  IconIndex,
const ATL::CStringW Name,
LPARAM  lParam 
)

Definition at line 1813 of file gui.cpp.

1814 {
1815  return ListViewAddItem(ItemIndex, IconIndex, const_cast<LPWSTR>(Name.GetString()), lParam);
1816 }
INT ListViewAddItem(INT ItemIndex, INT IconIndex, LPWSTR lpName, LPARAM lParam)
Definition: gui.cpp:1787
PCXSTR GetString() const
Definition: atlsimpstr.h:361
static const WCHAR IconIndex[]
Definition: install.c:51
LPARAM lParam
Definition: combotst.c:139

◆ ListViewGetlParam()

DWORD_PTR ListViewGetlParam ( INT  item)

Definition at line 1773 of file gui.cpp.

Referenced by CMainWindow::FreeInstalledAppList(), RemoveAppFromRegistry(), CAvailableAppView::ShowAvailableAppInfo(), and ShowInstalledAppInfo().

1774 {
1775  if (item < 0)
1776  {
1778  }
1780 }
DWORD_PTR GetItemData(int i)
Definition: rosctrls.h:191
int GetSelectionMark()
Definition: rosctrls.h:156
CMainWindow * g_MainWindow
Definition: gui.cpp:1765
static ATOM item
Definition: dde.c:856
CAppsListView * GetListView()
Definition: gui.cpp:1748

◆ NewRichEditText() [1/2]

VOID NewRichEditText ( LPCWSTR  szText,
DWORD  flags 
)

Definition at line 1792 of file gui.cpp.

Referenced by NewRichEditText(), SetWelcomeText(), CAvailableAppView::ShowAvailableAppInfo(), and ShowInstalledAppInfo().

1793 {
1795 }
CMainWindow * g_MainWindow
Definition: gui.cpp:1765
static const WCHAR szText[]
Definition: dialog.c:139
CRichEdit * GetRichEdit()
Definition: gui.cpp:1753
GLbitfield flags
Definition: glext.h:7161
VOID SetText(LPCWSTR lpszText, DWORD dwEffects)
Definition: crichedit.h:84

◆ NewRichEditText() [2/2]

VOID NewRichEditText ( const ATL::CStringW szText,
DWORD  flags 
)

Definition at line 1818 of file gui.cpp.

1819 {
1820  NewRichEditText(szText.GetString(), flags);
1821 }
VOID NewRichEditText(LPCWSTR szText, DWORD flags)
Definition: gui.cpp:1792
PCXSTR GetString() const
Definition: atlsimpstr.h:361
GLbitfield flags
Definition: glext.h:7161

◆ SetStatusBarText() [1/2]

VOID SetStatusBarText ( LPCWSTR  szText)

Definition at line 1782 of file gui.cpp.

Referenced by SetStatusBarText().

1783 {
1785 }
CMainWindow * g_MainWindow
Definition: gui.cpp:1765
CStatusBar * GetStatusBar()
Definition: gui.cpp:1743
static const WCHAR szText[]
Definition: dialog.c:139
VOID SetText(LPCWSTR lpszText)
Definition: rosctrls.h:437

◆ SetStatusBarText() [2/2]

VOID SetStatusBarText ( const ATL::CStringW szText)

Definition at line 1808 of file gui.cpp.

1809 {
1810  SetStatusBarText(szText.GetString());
1811 }
VOID SetStatusBarText(LPCWSTR szText)
Definition: gui.cpp:1782
PCXSTR GetString() const
Definition: atlsimpstr.h:361

Variable Documentation

◆ hListView

◆ szSearchPattern