mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:25:48 +00:00
-splitted resource file into en.rc and msgina.rc
-prettyfied msgina a bit -fixed line endings svn path=/trunk/; revision=23430
This commit is contained in:
parent
a0f6dcc406
commit
26dbfdec15
7 changed files with 86 additions and 49 deletions
50
reactos/dll/win32/msgina/en.rc
Normal file
50
reactos/dll/win32/msgina/en.rc
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||||
|
|
||||||
|
IDD_STATUSWINDOW_DLG DIALOGEX 0,0,274,26
|
||||||
|
STYLE NOT WS_VISIBLE | DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP
|
||||||
|
CAPTION "Please wait..."
|
||||||
|
FONT 8,"MS Shell Dlg 2",400,0,1
|
||||||
|
BEGIN
|
||||||
|
LTEXT "",IDC_STATUSLABEL,7,8,234,12,SS_WORDELLIPSIS
|
||||||
|
END
|
||||||
|
|
||||||
|
IDD_NOTICE_DLG DIALOGEX 0,0,186,59
|
||||||
|
STYLE NOT WS_VISIBLE | DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP
|
||||||
|
CAPTION "Welcome to ReactOS"
|
||||||
|
FONT 8,"MS Shell Dlg 2",400,0,1
|
||||||
|
BEGIN
|
||||||
|
LTEXT "Press Control-Alt-Delete key combination",IDC_STATIC,16,18,144,14
|
||||||
|
END
|
||||||
|
|
||||||
|
IDD_LOGGEDOUT_DLG DIALOGEX 0,0,275,147
|
||||||
|
STYLE NOT WS_VISIBLE | DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP
|
||||||
|
CAPTION "Logon"
|
||||||
|
FONT 8,"MS Shell Dlg 2",400,0,1
|
||||||
|
BEGIN
|
||||||
|
PUSHBUTTON "OK",IDOK,51,122,50,14,BS_DEFPUSHBUTTON
|
||||||
|
PUSHBUTTON "Cancel",IDCANCEL,115,122,50,14
|
||||||
|
PUSHBUTTON "Shutdown",IDC_SHUTDOWN,179,122,50,14
|
||||||
|
LTEXT "Username:",IDC_STATIC,36,75,40,8
|
||||||
|
LTEXT "Password:",IDC_STATIC,36,93,42,8
|
||||||
|
EDITTEXT IDC_USERNAME,84,72,119,14,ES_AUTOHSCROLL
|
||||||
|
EDITTEXT IDC_PASSWORD,84,91,119,14,ES_AUTOHSCROLL | ES_PASSWORD
|
||||||
|
END
|
||||||
|
|
||||||
|
IDD_LOGGEDON_DLG DIALOGEX 0,0,186,52
|
||||||
|
STYLE NOT WS_VISIBLE | DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU
|
||||||
|
CAPTION "Security"
|
||||||
|
FONT 8,"MS Shell Dlg 2",400,0,1
|
||||||
|
BEGIN
|
||||||
|
PUSHBUTTON "Cancel",IDCANCEL,125,31,50,14
|
||||||
|
PUSHBUTTON "Log off",IDC_LOGOFF,11,31,50,14
|
||||||
|
PUSHBUTTON "Shutdown",IDC_SHUTDOWN,69,31,50,14
|
||||||
|
LTEXT "What do you want to do?",IDC_STATIC,50,18,87,8
|
||||||
|
END
|
||||||
|
|
||||||
|
STRINGTABLE
|
||||||
|
BEGIN
|
||||||
|
IDS_PRESSCTRLALTDELETE "Press CONTROL+ALT+DELETE key combination\n"
|
||||||
|
IDS_ASKFORUSER "User name: "
|
||||||
|
IDS_ASKFORPASSWORD "Password: "
|
||||||
|
END
|
||||||
|
|
|
@ -14,6 +14,9 @@
|
||||||
#undef DPRINT
|
#undef DPRINT
|
||||||
#undef DPRINT1
|
#undef DPRINT1
|
||||||
|
|
||||||
|
static HBITMAP hBitmap = NULL;
|
||||||
|
static int cxSource, cySource;
|
||||||
|
|
||||||
typedef struct _DISPLAYSTATUSMSG
|
typedef struct _DISPLAYSTATUSMSG
|
||||||
{
|
{
|
||||||
PGINA_CONTEXT Context;
|
PGINA_CONTEXT Context;
|
||||||
|
@ -46,7 +49,7 @@ StatusMessageWindowProc(
|
||||||
PDISPLAYSTATUSMSG msg = (PDISPLAYSTATUSMSG)lParam;
|
PDISPLAYSTATUSMSG msg = (PDISPLAYSTATUSMSG)lParam;
|
||||||
if (!msg)
|
if (!msg)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
msg->Context->hStatusWindow = hwndDlg;
|
msg->Context->hStatusWindow = hwndDlg;
|
||||||
|
|
||||||
if (msg->pTitle)
|
if (msg->pTitle)
|
||||||
|
@ -207,6 +210,8 @@ LoggedOutWindowProc(
|
||||||
IN WPARAM wParam,
|
IN WPARAM wParam,
|
||||||
IN LPARAM lParam)
|
IN LPARAM lParam)
|
||||||
{
|
{
|
||||||
|
BITMAP bitmap;
|
||||||
|
|
||||||
switch (uMsg)
|
switch (uMsg)
|
||||||
{
|
{
|
||||||
case WM_INITDIALOG:
|
case WM_INITDIALOG:
|
||||||
|
@ -214,6 +219,31 @@ LoggedOutWindowProc(
|
||||||
/* FIXME: take care of DontDisplayLastUserName, NoDomainUI, ShutdownWithoutLogon */
|
/* FIXME: take care of DontDisplayLastUserName, NoDomainUI, ShutdownWithoutLogon */
|
||||||
SetWindowLongPtr(hwndDlg, GWL_USERDATA, (DWORD_PTR)lParam);
|
SetWindowLongPtr(hwndDlg, GWL_USERDATA, (DWORD_PTR)lParam);
|
||||||
SetFocus(GetDlgItem(hwndDlg, IDC_USERNAME));
|
SetFocus(GetDlgItem(hwndDlg, IDC_USERNAME));
|
||||||
|
|
||||||
|
hBitmap = LoadImage(hDllInstance, MAKEINTRESOURCE(IDC_ROSLOGO), IMAGE_BITMAP, 0, 0, LR_DEFAULTCOLOR);
|
||||||
|
if (hBitmap != NULL)
|
||||||
|
{
|
||||||
|
GetObject(hBitmap, sizeof(BITMAP), &bitmap);
|
||||||
|
cxSource = bitmap.bmWidth;
|
||||||
|
cySource = bitmap.bmHeight;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case WM_PAINT:
|
||||||
|
{
|
||||||
|
PAINTSTRUCT ps;
|
||||||
|
HDC hdc, hdcMem;
|
||||||
|
hdc = BeginPaint(hwndDlg, &ps);
|
||||||
|
hdcMem = CreateCompatibleDC(hdc);
|
||||||
|
SelectObject(hdcMem, hBitmap);
|
||||||
|
BitBlt(hdc, 0, 0, cxSource, cySource, hdcMem, 0, 0, SRCCOPY);
|
||||||
|
DeleteDC(hdcMem);
|
||||||
|
EndPaint(hwndDlg, &ps);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case WM_DESTROY:
|
||||||
|
{
|
||||||
|
DeleteObject(hBitmap);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WM_COMMAND:
|
case WM_COMMAND:
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
<library>kernel32</library>
|
<library>kernel32</library>
|
||||||
<library>advapi32</library>
|
<library>advapi32</library>
|
||||||
<library>user32</library>
|
<library>user32</library>
|
||||||
|
<library>gdi32</library>
|
||||||
<file>gui.c</file>
|
<file>gui.c</file>
|
||||||
<file>msgina.c</file>
|
<file>msgina.c</file>
|
||||||
<file>stubs.c</file>
|
<file>stubs.c</file>
|
||||||
|
|
|
@ -7,53 +7,8 @@
|
||||||
#define REACTOS_STR_ORIGINAL_FILENAME "msgina.dll\0"
|
#define REACTOS_STR_ORIGINAL_FILENAME "msgina.dll\0"
|
||||||
#include <reactos/version.rc>
|
#include <reactos/version.rc>
|
||||||
|
|
||||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
|
||||||
|
|
||||||
IDD_STATUSWINDOW_DLG DIALOGEX 0,0,274,26
|
IDC_ROSLOGO BITMAP "resources/reactos.bmp"
|
||||||
STYLE NOT WS_VISIBLE | DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP
|
|
||||||
CAPTION "Please wait..."
|
|
||||||
FONT 8,"MS Shell Dlg 2",400,0,1
|
|
||||||
BEGIN
|
|
||||||
LTEXT "",IDC_STATUSLABEL,7,8,234,12,SS_WORDELLIPSIS
|
|
||||||
END
|
|
||||||
|
|
||||||
IDD_NOTICE_DLG DIALOGEX 0,0,186,59
|
#include "En.rc"
|
||||||
STYLE NOT WS_VISIBLE | DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP
|
|
||||||
CAPTION "Welcome to ReactOS"
|
|
||||||
FONT 8,"MS Shell Dlg 2",400,0,1
|
|
||||||
BEGIN
|
|
||||||
LTEXT "Press Control-Alt-Delete key combination",IDC_STATIC,16,18,144,14
|
|
||||||
END
|
|
||||||
|
|
||||||
IDD_LOGGEDOUT_DLG DIALOGEX 0,0,245,77
|
|
||||||
STYLE NOT WS_VISIBLE | DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP
|
|
||||||
CAPTION "Logon"
|
|
||||||
FONT 8,"MS Shell Dlg 2",400,0,1
|
|
||||||
BEGIN
|
|
||||||
PUSHBUTTON "OK",IDOK,31,52,50,14,BS_DEFPUSHBUTTON
|
|
||||||
PUSHBUTTON "Cancel",IDCANCEL,95,52,50,14
|
|
||||||
PUSHBUTTON "Shutdown",IDC_SHUTDOWN,159,52,50,14
|
|
||||||
LTEXT "User name:",IDC_STATIC,16,15,40,8
|
|
||||||
LTEXT "Password:",IDC_STATIC,16,33,42,8
|
|
||||||
EDITTEXT IDC_USERNAME,64,12,169,14,ES_AUTOHSCROLL
|
|
||||||
EDITTEXT IDC_PASSWORD,64,31,169,14,ES_AUTOHSCROLL | ES_PASSWORD
|
|
||||||
END
|
|
||||||
|
|
||||||
IDD_LOGGEDON_DLG DIALOGEX 0,0,186,52
|
|
||||||
STYLE NOT WS_VISIBLE | DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SETFONT | DS_FIXEDSYS | WS_BORDER | WS_CAPTION | WS_DLGFRAME | WS_POPUP | WS_SYSMENU
|
|
||||||
CAPTION "Security"
|
|
||||||
FONT 8,"MS Shell Dlg 2",400,0,1
|
|
||||||
BEGIN
|
|
||||||
PUSHBUTTON "Cancel",IDCANCEL,125,31,50,14
|
|
||||||
PUSHBUTTON "Log off",IDC_LOGOFF,11,31,50,14
|
|
||||||
PUSHBUTTON "Shutdown",IDC_SHUTDOWN,69,31,50,14
|
|
||||||
LTEXT "What do you want to do?",IDC_STATIC,50,18,87,8
|
|
||||||
END
|
|
||||||
|
|
||||||
STRINGTABLE
|
|
||||||
BEGIN
|
|
||||||
IDS_PRESSCTRLALTDELETE "Press CONTROL+ALT+DELETE key combination\n"
|
|
||||||
IDS_ASKFORUSER "User name: "
|
|
||||||
IDS_ASKFORPASSWORD "Password: "
|
|
||||||
END
|
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
#define IDC_PASSWORD 1003
|
#define IDC_PASSWORD 1003
|
||||||
#define IDC_SHUTDOWN 1004
|
#define IDC_SHUTDOWN 1004
|
||||||
#define IDC_STATUSLABEL 1005
|
#define IDC_STATUSLABEL 1005
|
||||||
|
#define IDC_ROSLOGO 1006
|
||||||
#define IDS_ASKFORUSER 40000
|
#define IDS_ASKFORUSER 40000
|
||||||
#define IDS_PRESSCTRLALTDELETE 40001
|
#define IDS_PRESSCTRLALTDELETE 40001
|
||||||
#define IDS_ASKFORPASSWORD 40002
|
#define IDS_ASKFORPASSWORD 40002
|
||||||
|
|
BIN
reactos/dll/win32/msgina/resources/reactos.bmp
Normal file
BIN
reactos/dll/win32/msgina/resources/reactos.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 71 KiB |
|
@ -88,7 +88,7 @@ ReadString(
|
||||||
IN OUT PWSTR Buffer,
|
IN OUT PWSTR Buffer,
|
||||||
IN DWORD BufferLength,
|
IN DWORD BufferLength,
|
||||||
IN BOOL ShowString)
|
IN BOOL ShowString)
|
||||||
{
|
{
|
||||||
WCHAR Prompt[256];
|
WCHAR Prompt[256];
|
||||||
DWORD count, i;
|
DWORD count, i;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue