Bit of fun. Add a built-in coded message for the first time the screensaver is run.

If removed, it will not reappear.

svn path=/trunk/; revision=21635
This commit is contained in:
Ged Murphy 2006-04-17 13:35:40 +00:00
parent dbcd6ec20e
commit e2ba765506
2 changed files with 6 additions and 1 deletions

View file

@ -68,7 +68,7 @@ BOOL CALLBACK ConfigDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
prevheight = GetSystemMetrics(SM_CYSCREEN) / GLYPH_HEIGHT + 1;
//Add any saved messages to the combo box
for(index = 0; index < g_nNumMessages; index++)
for(index = 0; index <= g_nNumMessages; index++)
{
if(lstrlen(g_szMessages[index]) > 0)
SendDlgItemMessage(hwnd, IDC_COMBO1, CB_ADDSTRING, 0, (LPARAM)g_szMessages[index]);

View file

@ -93,6 +93,11 @@ void LoadSettings()
}
}
}
else
{
/* built-in coded message for first run */
lstrcpyn(g_szMessages[0], "ReactOS", MAXMSG_LENGTH);
}
RegCloseKey(hkey);
free(hugechar);