Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9abcad52
Commit
9abcad52
authored
Oct 22, 2002
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 22, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore setting of caption "Error".
parent
07d5c1a3
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
10 deletions
+30
-10
user32.rc
dlls/user/resources/user32.rc
+2
-1
user32_En.rc
dlls/user/resources/user32_En.rc
+2
-1
user32_Ru.rc
dlls/user/resources/user32_Ru.rc
+5
-0
user32_Sk.rc
dlls/user/resources/user32_Sk.rc
+2
-1
user32_Zh.rc
dlls/user/resources/user32_Zh.rc
+4
-2
mdi.c
windows/mdi.c
+3
-3
msgbox.c
windows/msgbox.c
+12
-2
No files found.
dlls/user/resources/user32.rc
View file @
9abcad52
...
...
@@ -24,7 +24,8 @@
#include "dlgs.h"
#define MDI_IDC_LISTBOX 100
#define MDI_IDS_MOREWINDOWS 13
#define IDS_MDI_MOREWINDOWS 13
#define IDS_ERROR 2
/*
* Everything that does not depend on language,
...
...
dlls/user/resources/user32_En.rc
View file @
9abcad52
...
...
@@ -77,5 +77,6 @@ END
STRINGTABLE DISCARDABLE
{
MDI_IDS_MOREWINDOWS "&More Windows..." /* defined in mdi.h */
IDS_ERROR "Error"
IDS_MDI_MOREWINDOWS "&More Windows..."
}
dlls/user/resources/user32_Ru.rc
View file @
9abcad52
...
...
@@ -64,3 +64,8 @@ BEGIN
PUSHBUTTON "&", 7, 304, 56, 40, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
END
STRINGTABLE DISCARDABLE
{
IDS_ERROR ""
IDS_MDI_MOREWINDOWS "&More Windows..."
}
dlls/user/resources/user32_Sk.rc
View file @
9abcad52
...
...
@@ -77,5 +77,6 @@ END
STRINGTABLE DISCARDABLE
{
MDI_IDS_MOREWINDOWS "&Viac okien..." /* defined in mdi.h */
IDS_ERROR "Error"
IDS_MDI_MOREWINDOWS "&Viac okien..."
}
dlls/user/resources/user32_Zh.rc
View file @
9abcad52
...
...
@@ -72,7 +72,8 @@ END
STRINGTABLE DISCARDABLE
{
MDI_IDS_MOREWINDOWS "更多窗口(&M)..." /* defined in mdi.h */
IDS_ERROR "Error"
IDS_MDI_MOREWINDOWS "更多窗口(&M)..." /* defined in mdi.h */
}
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
...
...
@@ -132,7 +133,8 @@ END
STRINGTABLE DISCARDABLE
{
MDI_IDS_MOREWINDOWS "更多視窗(&M)..." /* defined in mdi.h */
IDS_ERROR "Error"
IDS_MDI_MOREWINDOWS "更多視窗(&M)..."
}
#pragma code_page(default)
windows/mdi.c
View file @
9abcad52
...
...
@@ -114,7 +114,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mdi);
#define MDI_MOREWINDOWSLIMIT 9
/* after this number of windows, a "More Windows..."
option will appear under the Windows menu */
#define MDI_IDC_LISTBOX 100
#define
MDI_IDS
_MOREWINDOWS 13
#define
IDS_MDI
_MOREWINDOWS 13
#define MDIF_NEEDUPDATE 0x0001
...
...
@@ -279,7 +279,7 @@ static BOOL MDI_MenuDeleteItem( HWND client, HWND hWndChild )
if
(
clientInfo
->
nActiveChildren
-
1
>
MDI_MOREWINDOWSLIMIT
)
{
WCHAR
szTmp
[
50
];
LoadStringW
(
GetModuleHandleA
(
"USER32"
),
MDI_IDS
_MOREWINDOWS
,
szTmp
,
sizeof
(
szTmp
)
/
sizeof
(
szTmp
[
0
]));
LoadStringW
(
GetModuleHandleA
(
"USER32"
),
IDS_MDI
_MOREWINDOWS
,
szTmp
,
sizeof
(
szTmp
)
/
sizeof
(
szTmp
[
0
]));
AppendMenuW
(
clientInfo
->
hWindowMenu
,
MF_STRING
,
clientInfo
->
idFirstChild
+
MDI_MOREWINDOWSLIMIT
,
szTmp
);
}
return
TRUE
;
...
...
@@ -596,7 +596,7 @@ static HWND MDICreateChild( HWND parent, MDICLIENTINFO *ci,
if
(
ci
->
nActiveChildren
==
MDI_MOREWINDOWSLIMIT
+
1
)
{
WCHAR
szTmp
[
50
];
LoadStringW
(
GetModuleHandleA
(
"USER32"
),
MDI_IDS
_MOREWINDOWS
,
szTmp
,
sizeof
(
szTmp
)
/
sizeof
(
szTmp
[
0
]));
LoadStringW
(
GetModuleHandleA
(
"USER32"
),
IDS_MDI
_MOREWINDOWS
,
szTmp
,
sizeof
(
szTmp
)
/
sizeof
(
szTmp
[
0
]));
ModifyMenuW
(
ci
->
hWindowMenu
,
ci
->
idFirstChild
+
MDI_MOREWINDOWSLIMIT
,
...
...
windows/msgbox.c
View file @
9abcad52
...
...
@@ -34,6 +34,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dialog);
#define MSGBOX_IDICON 1088
#define MSGBOX_IDTEXT 100
#define IDS_ERROR 2
static
HFONT
MSGBOX_OnInit
(
HWND
hwnd
,
LPMSGBOXPARAMSW
lpmb
)
{
...
...
@@ -61,8 +62,17 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
if
(
HIWORD
(
lpmb
->
lpszCaption
))
{
SetWindowTextW
(
hwnd
,
lpmb
->
lpszCaption
);
}
else
{
if
(
LoadStringW
(
lpmb
->
hInstance
,
LOWORD
(
lpmb
->
lpszCaption
),
buf
,
256
))
SetWindowTextW
(
hwnd
,
buf
);
UINT
res_id
=
LOWORD
(
lpmb
->
lpszCaption
);
if
(
res_id
)
{
if
(
LoadStringW
(
lpmb
->
hInstance
,
res_id
,
buf
,
256
))
SetWindowTextW
(
hwnd
,
buf
);
}
else
{
if
(
LoadStringW
(
0
,
IDS_ERROR
,
buf
,
256
))
SetWindowTextW
(
hwnd
,
buf
);
}
}
if
(
HIWORD
(
lpmb
->
lpszText
))
{
lpszText
=
lpmb
->
lpszText
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment