MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / EnumWndProc2

Function EnumWndProc2

src/Notepad2.c:5859–5880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5857 return ( bContinue );
5858}
5859BOOL CALLBACK EnumWndProc2 ( HWND hwnd, LPARAM lParam )
5860{
5861 BOOL bContinue = TRUE;
5862 WCHAR szClassName[64];
5863 if ( GetClassName ( hwnd, szClassName, COUNTOF ( szClassName ) ) )
5864 if ( lstrcmpi ( szClassName, wchWndClass ) == 0 ) {
5865 DWORD dwReuseLock = GetDlgItemInt ( hwnd, IDC_REUSELOCK, NULL, FALSE );
5866 if ( GetTickCount() - dwReuseLock >= REUSEWINDOWLOCKTIMEOUT ) {
5867 WCHAR tchFileName[MAX_PATH] = L"";
5868 if ( IsWindowEnabled ( hwnd ) ) {
5869 bContinue = FALSE;
5870 }
5871 GetDlgItemText ( hwnd, IDC_FILENAME, tchFileName, COUNTOF ( tchFileName ) );
5872 if ( lstrcmpi ( tchFileName, lpFileArg ) == 0 ) {
5873 * ( HWND * ) lParam = hwnd;
5874 } else {
5875 bContinue = TRUE;
5876 }
5877 }
5878 }
5879 return ( bContinue );
5880}
5881BOOL ActivatePrevInst()
5882{
5883 HWND hwnd = NULL;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected