[Project64] Randomize nag window timer
This commit is contained in:
parent
081d6c7853
commit
7d4ba9b278
|
@ -1,5 +1,6 @@
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
#include "SupportEnterCode.h"
|
#include "SupportEnterCode.h"
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
HWND CSupportWindow::m_hParent = NULL;
|
HWND CSupportWindow::m_hParent = NULL;
|
||||||
CSupportWindow * CSupportWindow::m_this = NULL;
|
CSupportWindow * CSupportWindow::m_this = NULL;
|
||||||
|
@ -89,7 +90,8 @@ LRESULT CSupportWindow::OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*
|
||||||
SetWindowLong(GWL_STYLE, dwStyle);
|
SetWindowLong(GWL_STYLE, dwStyle);
|
||||||
|
|
||||||
::EnableWindow(GetDlgItem(IDCANCEL), false);
|
::EnableWindow(GetDlgItem(IDCANCEL), false);
|
||||||
SetTimer(0, 30000, NULL);
|
srand (time(NULL));
|
||||||
|
SetTimer(0, ((rand() % 35) + 5) * 1000, NULL);
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue