mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 07:05:42 +00:00
[RAPPS] listview refactor (#2970)
This makes it easier to maintain the listview, and better separates the application list and listview. * [RAPPS] fix memory leak when cleanup. some renaming are also done * [RAPPS] move the code adding apps info inside class CAppsListView * [RAPPS] add table view, create listview and AppInfoDisplay inside it * [RAPPS] rename INSTALLED_INFO as CInstalledApplicationInfo now it corresponds with CAvailableApplicationInfo * [RAPPS] add CInstalledApps * [RAPPS] optimize the speed when refreshing listview * [RAPPS] correctly handle Enum for InstalledApps * [RAPPS] make check all working properly (this also fixes some bugs) the old version has some bugs when check all items after switching tags in tree-view * [RAPPS] add handling for wow64 * [RAPPS] use an inline function to replace INSERT_TEXT macro * [RAPPS] fix the bug that StatusBar won't update when switching tags * [RAPPS] now TableView always reset bIsAscending in SetDisplayMode * [RAPPS] rename TableView to ApplicationView * [RAPPS] now bIsAscending would be reset when switching column in listview
This commit is contained in:
parent
4482d0f455
commit
10c0ff7416
8 changed files with 1147 additions and 653 deletions
|
@ -13,6 +13,9 @@
|
|||
|
||||
static HANDLE hLog = NULL;
|
||||
|
||||
static BOOL bIsSys64ResultCached = FALSE;
|
||||
static BOOL bIsSys64Result = FALSE;
|
||||
|
||||
INT GetWindowWidth(HWND hwnd)
|
||||
{
|
||||
RECT Rect;
|
||||
|
@ -453,3 +456,33 @@ BOOL PathAppendNoDirEscapeW(LPWSTR pszPath, LPCWSTR pszMore)
|
|||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
BOOL IsSystem64Bit()
|
||||
{
|
||||
if (bIsSys64ResultCached)
|
||||
{
|
||||
// just return cached result
|
||||
return bIsSys64Result;
|
||||
}
|
||||
|
||||
SYSTEM_INFO si;
|
||||
typedef void (WINAPI *LPFN_PGNSI)(LPSYSTEM_INFO);
|
||||
LPFN_PGNSI pGetNativeSystemInfo = (LPFN_PGNSI)GetProcAddress(GetModuleHandle(L"kernel32.dll"), "GetNativeSystemInfo");
|
||||
if (pGetNativeSystemInfo)
|
||||
{
|
||||
pGetNativeSystemInfo(&si);
|
||||
if (si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_AMD64 || si.wProcessorArchitecture == PROCESSOR_ARCHITECTURE_IA64)
|
||||
{
|
||||
bIsSys64Result = TRUE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
bIsSys64Result = FALSE;
|
||||
}
|
||||
|
||||
bIsSys64ResultCached = TRUE; // next time calling this function, it will directly return bIsSys64Result
|
||||
return bIsSys64Result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue