28#define SEARCH_TIMER_ID 'SR'
29#define TREEVIEW_ICON_SIZE 24
60 szText.LoadStringW(TextIndex);
498 if (
wParam == SPI_SETNONCLIENTMETRICS ||
wParam == SPI_SETICONMETRICS)
631 szBuffer += szBuffer2;
642 while (CurrentListPosition)
682 if (TryRestoreSelection)
726 ATLASSERT(0 &&
"This should be unreachable!");
729 if (TryRestoreSelection)
848 if (TabOrderHwndList.
GetSize() == 0)
856 if ((FocusIndex = TabOrderHwndList.
Find(
GetFocus())) == -1)
862 FocusIndex += direction;
865 FocusIndex %= TabOrderHwndList.
GetSize();
BOOL IsAvailableEnum(INT x)
BOOL IsInstalledEnum(INT x)
@ ENUM_INSTALLED_APPLICATIONS
HICON g_hDefaultPackageIcon
@ AppViewTypeInstalledApps
@ AppViewTypeAvailableApps
#define TREEVIEW_ICON_SIZE
VOID EmulateDialogReposition(HWND hwnd)
INT GetSystemColorDepth()
BOOL SearchPatternMatch(LPCWSTR szHaystack, LPCWSTR szNeedle)
#define IDS_SELECTEDFORINST
#define IDI_SELECTEDFORINST
#define IDS_AVAILABLEFORINST
#define IDS_APPS_SELECT_COUNT
#define ID_ACTIVATE_APPWIZ
#define IDS_NO_SEARCH_RESULTS
#define IDS_APP_REG_REMOVE
SETTINGS_INFO SettingsInfo
POSITION AddTail(INARGTYPE element)
POSITION Find(INARGTYPE element, _In_opt_ POSITION posStartAfter=NULL) const
void RemoveAt(_In_ POSITION pos)
int Find(const T &t) const
bool IsEmpty() const noexcept
PXSTR GetString() noexcept
void __cdecl Format(UINT nFormatID,...)
static LRESULT CALLBACK StartWindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
HWND Create(HWND hWndParent, _U_RECT rect=NULL, LPCTSTR szWindowName=NULL, DWORD dwStyle=0, DWORD dwExStyle=0, _U_MENUorID MenuOrID=0U, LPVOID lpCreateParam=NULL)
BOOL IsWindowVisible() const
BOOL ShowWindow(int nCmdShow)
static DWORD RemoveInstalledAppFromRegistry(const CAppInfo *Info)
size_t GetAvailableCount() const
VOID GetApps(CAtlList< CAppInfo * > &List, AppsCategories Type) const
virtual BOOL UninstallApplication(UninstallCommandFlags Flags)=0
PVOID GetFocusedItemData()
HWND Create(HWND hwndParent)
VOID GetRestoreListSelectionData(RESTORELISTSELECTION &Restore)
VOID RestoreListSelection(const RESTORELISTSELECTION &Restore)
BOOL AddApplication(CAppInfo *InstAppInfo, BOOL InitialCheckState)
BOOL SetDisplayAppType(APPLICATION_VIEW_TYPE AppType)
void SetFocusOnSearchBar()
void SetRedraw(BOOL bRedraw)
VOID AppendTabOrderWindow(int Direction, ATL::CSimpleArray< HWND > &TabOrderList)
VOID SetWatermark(const CStringW &Text)
BOOL RemoveSelectedAppFromRegistry()
AppsCategories SelectedEnumType
HTREEITEM hRootItemInstalled
VOID UpdateStatusBarText()
CSideTreeView * m_TreeView
CUiSplitPanel * m_VSplitter
VOID AddApplicationsToView(CAtlList< CAppInfo * > &List)
BOOL SearchTextChanged(CStringW &SearchText)
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
VOID UpdateApplicationsList(AppsCategories EnumType, BOOL bReload=FALSE, BOOL bCheckAvailable=FALSE)
static ATL::CWndClassInfo & GetWndClassInfo()
void HandleTabOrder(int direction)
BOOL InstallApplication(CAppInfo *Info)
LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CAtlList< CAppInfo * > m_Selected
friend class CApplicationView
VOID InitCategoriesList()
VOID ItemCheckStateChanged(BOOL bChecked, LPVOID CallbackParam)
CUiWindow< CStatusBar > * m_StatusBar
BOOL ProcessWindowMessage(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lParam, LRESULT &theResult, DWORD dwMapId)
BOOL UninstallSelectedApp(BOOL bModify)
BOOL CreateApplicationView()
CApplicationView * m_ApplicationView
HIMAGELIST hImageTreeView
HTREEITEM AddCategory(HTREEITEM hRootItem, UINT TextIndex, UINT IconIndex)
HTREEITEM AddItem(HTREEITEM hParent, CStringW &Text, INT Image, INT SelectedImage, LPARAM lParam)
HIMAGELIST SetImageList()
VOID SetText(LPCWSTR lpszText)
HWND Create(HWND hwndParent, HMENU hMenu)
BOOL Expand(HTREEITEM item, DWORD action)
HWND Create(HWND hwndParent)
BOOL SelectItem(HTREEITEM item, DWORD action=TVGN_CARET)
CUiAlignment m_HorizontalAlignment
CUiAlignment m_VerticalAlignment
CUiCollection & Children()
virtual DWORD_PTR CountSizableChildren()
virtual HDWP OnParentSize(RECT parentRect, HDWP hDwp)
HWND Create(HWND hwndParent)
virtual VOID AppendTabOrderWindow(int Direction, ATL::CSimpleArray< HWND > &TabOrderList)
BOOL WINAPI ImageList_Destroy(HIMAGELIST himl)
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
static const WCHAR IconIndex[]
GLuint GLuint GLsizei count
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
VOID MainWindowLoop(CMainWindow *wnd, INT nShowCmd)
#define TREEVIEW_ICON_SIZE
const TCHAR szWindowClass[]
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define WS_OVERLAPPEDWINDOW
#define ImageList_AddIcon(himl, hicon)
#define TVN_ITEMEXPANDING
BOOL DownloadApplication(CAppInfo *pAppInfo)
VOID CreateSettingsDlg(HWND hwnd)
BOOL DownloadListOfApplications(const CAtlList< CAppInfo * > &AppsList, BOOL bIsModal)
#define WM_NOTIFY_OPERATIONCOMPLETED
BOOL WINAPI ShellAboutW(HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff, HICON hIcon)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFCMRESLIST List
HWND WINAPI GetFocus(void)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI GetMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
#define LR_CREATEDIBSECTION
HANDLE WINAPI LoadImageW(_In_opt_ HINSTANCE hInst, _In_ LPCWSTR name, _In_ UINT type, _In_ int cx, _In_ int cy, _In_ UINT fuLoad)
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
BOOL WINAPI EndDeferWindowPos(_In_ HDWP)
#define WM_SYSCOLORCHANGE
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
struct tagNMHDR * LPNMHDR
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
HACCEL WINAPI LoadAcceleratorsW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
LRESULT WINAPI DispatchMessageW(_In_ const MSG *)
int WINAPI TranslateAcceleratorW(_In_ HWND, _In_ HACCEL, _In_ LPMSG)
#define MAKEINTRESOURCEW(i)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
SHORT WINAPI GetKeyState(_In_ int)
HDWP WINAPI BeginDeferWindowPos(_In_ int)
BOOL WINAPI DestroyIcon(_In_ HICON)