Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b5ec066d
Commit
b5ec066d
authored
Aug 29, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move strings to resources.
parent
87b297eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
En.rc
dlls/mshtml/En.rc
+6
-0
resource.h
dlls/mshtml/resource.h
+3
-0
view.c
dlls/mshtml/view.c
+9
-5
No files found.
dlls/mshtml/En.rc
View file @
b5ec066d
...
...
@@ -19,6 +19,12 @@
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE DISCARDABLE
{
IDS_HTMLDISABLED "HTML rendering is currently disabled."
IDS_HTMLDOCUMENT "HTML Document"
}
/* FIXME: This should be in shdoclc.dll */
IDR_BROWSE_CONTEXT_MENU MENU
...
...
dlls/mshtml/resource.h
View file @
b5ec066d
...
...
@@ -16,6 +16,9 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define IDS_HTMLDISABLED 7500
#define IDS_HTMLDOCUMENT 7501
#define IDR_BROWSE_CONTEXT_MENU 24641
#define IDM_COPY 15
...
...
dlls/mshtml/view.c
View file @
b5ec066d
...
...
@@ -28,6 +28,7 @@
#include "winuser.h"
#include "wingdi.h"
#include "ole2.h"
#include "resource.h"
#include "wine/debug.h"
...
...
@@ -37,8 +38,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
static
const
WCHAR
wszInternetExplorer_Server
[]
=
{
'I'
,
'n'
,
't'
,
'e'
,
'r'
,
'n'
,
'e'
,
't'
,
' '
,
'E'
,
'x'
,
'p'
,
'l'
,
'o'
,
'r'
,
'e'
,
'r'
,
'_'
,
'S'
,
'e'
,
'r'
,
'v'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
wszHTML_Document
[]
=
{
'H'
,
'T'
,
'M'
,
'L'
,
' '
,
'D'
,
'o'
,
'c'
,
'u'
,
'm'
,
'e'
,
'n'
,
't'
,
0
};
static
ATOM
serverwnd_class
=
0
;
...
...
@@ -48,6 +47,9 @@ static void paint_disabled(HWND hwnd) {
HBRUSH
brush
;
RECT
rect
;
HFONT
font
;
WCHAR
wszHTMLDisabled
[
100
];
LoadStringW
(
hInst
,
IDS_HTMLDISABLED
,
wszHTMLDisabled
,
sizeof
(
wszHTMLDisabled
)
/
sizeof
(
WCHAR
));
font
=
CreateFontA
(
25
,
0
,
0
,
0
,
400
,
0
,
0
,
0
,
ANSI_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
DEFAULT_PITCH
,
NULL
);
brush
=
CreateSolidBrush
(
RGB
(
255
,
255
,
255
));
...
...
@@ -57,8 +59,7 @@ static void paint_disabled(HWND hwnd) {
SelectObject
(
hdc
,
font
);
SelectObject
(
hdc
,
brush
);
Rectangle
(
hdc
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
);
DrawTextA
(
hdc
,
"HTML rendering is currently disabled."
,
-
1
,
&
rect
,
DT_CENTER
|
DT_SINGLELINE
|
DT_VCENTER
);
DrawTextW
(
hdc
,
wszHTMLDisabled
,
-
1
,
&
rect
,
DT_CENTER
|
DT_SINGLELINE
|
DT_VCENTER
);
EndPaint
(
hwnd
,
&
ps
);
DeleteObject
(
font
);
...
...
@@ -375,7 +376,10 @@ static HRESULT WINAPI OleDocumentView_UIActivate(IOleDocumentView *iface, BOOL f
hres
=
IOleInPlaceSite_OnUIActivate
(
This
->
ipsite
);
if
(
SUCCEEDED
(
hres
))
{
IOleInPlaceFrame_SetActiveObject
(
This
->
frame
,
ACTOBJ
(
This
),
wszHTML_Document
);
OLECHAR
wszHTMLDocument
[
30
];
LoadStringW
(
hInst
,
IDS_HTMLDOCUMENT
,
wszHTMLDocument
,
sizeof
(
wszHTMLDocument
)
/
sizeof
(
WCHAR
));
IOleInPlaceFrame_SetActiveObject
(
This
->
frame
,
ACTOBJ
(
This
),
wszHTMLDocument
);
}
else
{
FIXME
(
"OnUIActivate failed: %08lx
\n
"
,
hres
);
IOleInPlaceFrame_Release
(
This
->
frame
);
...
...
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