mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Optimierung der Applikationsfenster-Anzeige
svn path=/trunk/; revision=5611
This commit is contained in:
parent
85f2a50511
commit
f8e97c4994
2 changed files with 12 additions and 10 deletions
|
@ -276,6 +276,16 @@ BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam)
|
||||||
|
|
||||||
GetWindowText(hWnd, szText, 260); // Get the window text
|
GetWindowText(hWnd, szText, 260); // Get the window text
|
||||||
|
|
||||||
|
// Check and see if this is a top-level app window
|
||||||
|
if ((_tcslen(szText) <= 0) ||
|
||||||
|
!IsWindowVisible(hWnd) ||
|
||||||
|
(GetParent(hWnd) != NULL) ||
|
||||||
|
(GetWindow(hWnd, GW_OWNER) != NULL) ||
|
||||||
|
(GetWindowLong(hWnd, GWL_EXSTYLE) & WS_EX_TOOLWINDOW))
|
||||||
|
{
|
||||||
|
return TRUE; // Skip this window
|
||||||
|
}
|
||||||
|
|
||||||
// Get the icon for this window
|
// Get the icon for this window
|
||||||
hIcon = NULL;
|
hIcon = NULL;
|
||||||
SendMessageTimeout(hWnd, WM_GETICON, bLargeIcon ? ICON_BIG /*1*/ : ICON_SMALL /*0*/, 0, 0, 1000, (unsigned long*)&hIcon);
|
SendMessageTimeout(hWnd, WM_GETICON, bLargeIcon ? ICON_BIG /*1*/ : ICON_SMALL /*0*/, 0, 0, 1000, (unsigned long*)&hIcon);
|
||||||
|
@ -291,16 +301,6 @@ BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam)
|
||||||
if (!hIcon)
|
if (!hIcon)
|
||||||
hIcon = LoadIcon(hInst, bLargeIcon ? MAKEINTRESOURCE(IDI_WINDOW) : MAKEINTRESOURCE(IDI_WINDOWSM));
|
hIcon = LoadIcon(hInst, bLargeIcon ? MAKEINTRESOURCE(IDI_WINDOW) : MAKEINTRESOURCE(IDI_WINDOWSM));
|
||||||
|
|
||||||
// Check and see if this is a top-level app window
|
|
||||||
if ((_tcslen(szText) <= 0) ||
|
|
||||||
!IsWindowVisible(hWnd) ||
|
|
||||||
(GetParent(hWnd) != NULL) ||
|
|
||||||
(GetWindow(hWnd, GW_OWNER) != NULL) ||
|
|
||||||
(GetWindowLong(hWnd, GWL_EXSTYLE) & WS_EX_TOOLWINDOW))
|
|
||||||
{
|
|
||||||
return TRUE; // Skip this window
|
|
||||||
}
|
|
||||||
|
|
||||||
bHung = FALSE;
|
bHung = FALSE;
|
||||||
|
|
||||||
//IsHungAppWindow = (IsHungAppWindowProc)(FARPROC)GetProcAddress(GetModuleHandle(_T("USER32.DLL")), _T("IsHungAppWindow"));
|
//IsHungAppWindow = (IsHungAppWindowProc)(FARPROC)GetProcAddress(GetModuleHandle(_T("USER32.DLL")), _T("IsHungAppWindow"));
|
||||||
|
|
|
@ -30,6 +30,7 @@ extern "C" {
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
|
||||||
|
/*MF
|
||||||
typedef struct _IO_COUNTERS {
|
typedef struct _IO_COUNTERS {
|
||||||
ULONGLONG ReadOperationCount;
|
ULONGLONG ReadOperationCount;
|
||||||
ULONGLONG WriteOperationCount;
|
ULONGLONG WriteOperationCount;
|
||||||
|
@ -38,6 +39,7 @@ typedef struct _IO_COUNTERS {
|
||||||
ULONGLONG WriteTransferCount;
|
ULONGLONG WriteTransferCount;
|
||||||
ULONGLONG OtherTransferCount;
|
ULONGLONG OtherTransferCount;
|
||||||
} IO_COUNTERS, *PIO_COUNTERS;
|
} IO_COUNTERS, *PIO_COUNTERS;
|
||||||
|
*/
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue