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
cf2de8c0
Commit
cf2de8c0
authored
Apr 23, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Added as an option, to use richedit to render the text window.
parent
d3051cba
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
41 additions
and
2 deletions
+41
-2
Bg.rc
programs/winhelp/Bg.rc
+1
-0
Cs.rc
programs/winhelp/Cs.rc
+1
-0
Da.rc
programs/winhelp/Da.rc
+1
-0
De.rc
programs/winhelp/De.rc
+1
-0
En.rc
programs/winhelp/En.rc
+1
-0
Eo.rc
programs/winhelp/Eo.rc
+1
-0
Es.rc
programs/winhelp/Es.rc
+1
-0
Fi.rc
programs/winhelp/Fi.rc
+1
-0
Fr.rc
programs/winhelp/Fr.rc
+1
-0
Hu.rc
programs/winhelp/Hu.rc
+1
-0
It.rc
programs/winhelp/It.rc
+1
-0
Ko.rc
programs/winhelp/Ko.rc
+1
-0
Nl.rc
programs/winhelp/Nl.rc
+1
-0
No.rc
programs/winhelp/No.rc
+1
-0
Pl.rc
programs/winhelp/Pl.rc
+1
-0
Pt.rc
programs/winhelp/Pt.rc
+2
-0
Rm.rc
programs/winhelp/Rm.rc
+1
-0
Ru.rc
programs/winhelp/Ru.rc
+1
-0
Si.rc
programs/winhelp/Si.rc
+1
-0
Sk.rc
programs/winhelp/Sk.rc
+1
-0
Sv.rc
programs/winhelp/Sv.rc
+1
-0
Tr.rc
programs/winhelp/Tr.rc
+1
-0
Wa.rc
programs/winhelp/Wa.rc
+1
-0
Zh.rc
programs/winhelp/Zh.rc
+1
-0
winhelp.c
programs/winhelp/winhelp.c
+15
-2
winhelp_res.h
programs/winhelp/winhelp_res.h
+1
-0
No files found.
programs/winhelp/Bg.rc
View file @
cf2de8c0
...
...
@@ -66,4 +66,5 @@ STID_TOPICS, "&"
STID_ALL_FILES, " (*.*)"
STID_HELP_FILES_HLP, " (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Cs.rc
View file @
cf2de8c0
...
...
@@ -71,4 +71,5 @@ STID_TOPICS, "&Tmata"
STID_ALL_FILES, "Vechny soubory (*.*)"
STID_HELP_FILES_HLP, "Soubory npovdy (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Da.rc
View file @
cf2de8c0
...
...
@@ -69,4 +69,5 @@ STID_TOPICS, "To&pics"
STID_ALL_FILES, "Alle filer (*.*)"
STID_HELP_FILES_HLP, "Hjlpe filer (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/De.rc
View file @
cf2de8c0
...
...
@@ -78,4 +78,5 @@ STID_TOPICS, "&Themen"
STID_ALL_FILES, "Alle Dateien (*.*)"
STID_HELP_FILES_HLP, "Hilfe-Dateien (*.hlp)"
STID_FILE_NOT_FOUND_s "'%s' konnte nicht gefunden werden. Wollen Sie selber nach dieser Datei suchen?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/En.rc
View file @
cf2de8c0
...
...
@@ -77,4 +77,5 @@ STID_TOPICS, "&Topics"
STID_ALL_FILES, "All files (*.*)"
STID_HELP_FILES_HLP, "Help files (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Eo.rc
View file @
cf2de8c0
...
...
@@ -69,4 +69,5 @@ STID_TOPICS, "&Temoj"
STID_ALL_FILES, "Tutaj dosieroj (*.*)"
STID_HELP_FILES_HLP, "Helpaj dosieroj (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Es.rc
View file @
cf2de8c0
...
...
@@ -68,4 +68,5 @@ STID_TOPICS, "&Temas"
STID_ALL_FILES, "Todos los archivos (*.*)"
STID_HELP_FILES_HLP, "Archivos de ayuda (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Fi.rc
View file @
cf2de8c0
...
...
@@ -69,4 +69,5 @@ STID_TOPICS, "T&opics"
STID_ALL_FILES, "Kaikki tiedostot (*.*)"
STID_HELP_FILES_HLP, "Ohjetiedostot (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Fr.rc
View file @
cf2de8c0
...
...
@@ -80,4 +80,5 @@ STID_TOPICS, "&Sujets"
STID_ALL_FILES, "Tous fichiers (*.*)"
STID_HELP_FILES_HLP, "Fichiers d'aide (*.hlp)"
STID_FILE_NOT_FOUND_s "Impossible de trouver %s. Souhaitez-vous rechercher ce fichier vous-mme?"
STID_NO_RICHEDIT "La bibliothque RichEdit n'a pu tre localise... Abandon"
}
programs/winhelp/Hu.rc
View file @
cf2de8c0
...
...
@@ -69,4 +69,5 @@ STID_TOPICS, "&Tmakrk"
STID_ALL_FILES, "Minden fjl (*.*)"
STID_HELP_FILES_HLP, "Sg fjlok (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/It.rc
View file @
cf2de8c0
...
...
@@ -68,4 +68,5 @@ STID_TOPICS, "&Argomenti"
STID_ALL_FILES, "Tutti i file (*.*)"
STID_HELP_FILES_HLP, "File della Guida (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Ko.rc
View file @
cf2de8c0
...
...
@@ -80,4 +80,5 @@ STID_TOPICS, "목차(&T)"
STID_ALL_FILES, "모든 파일 (*.*)"
STID_HELP_FILES_HLP, "도움말 파일 (*.hlp)"
STID_FILE_NOT_FOUND_s "%s을 찾을 수 없습니다'. 이 파일을 직접 찾겠습니까?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Nl.rc
View file @
cf2de8c0
...
...
@@ -77,4 +77,5 @@ STID_TOPICS, "&Onderwerpen"
STID_ALL_FILES, "Alle bestanden (*.*)"
STID_HELP_FILES_HLP, "Helpbestanden (*.hlp)"
STID_FILE_NOT_FOUND_s "Kan '%s' niet openen. Wilt u zelf dit bestand zoeken?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/No.rc
View file @
cf2de8c0
...
...
@@ -76,4 +76,5 @@ STID_TOPICS, "&Emner"
STID_ALL_FILES, "Alle filer (*.*)"
STID_HELP_FILES_HLP, "Hjelp-filer (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Pl.rc
View file @
cf2de8c0
...
...
@@ -78,4 +78,5 @@ STID_TOPICS, "&Tematy"
STID_ALL_FILES, "Wszystkie pliki (*.*)"
STID_HELP_FILES_HLP, "Pliki pomocy (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Pt.rc
View file @
cf2de8c0
...
...
@@ -107,6 +107,7 @@ STID_TOPICS, "&Tpicos"
STID_ALL_FILES, "Todos os arquivos (*.*)"
STID_HELP_FILES_HLP, "Arquivos de ajuda (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
LANGUAGE LANG_PORTUGUESE, SUBLANG_PORTUGUESE
...
...
@@ -127,4 +128,5 @@ STID_TOPICS, "&Tpicos"
STID_ALL_FILES, "Todos os ficheiros (*.*)"
STID_HELP_FILES_HLP, "Ficheiros de ajuda (*.hlp)"
STID_FILE_NOT_FOUND_s "No possvel encontrar '%s'. Deseja procurar este ficheiro voc mesmo?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Rm.rc
View file @
cf2de8c0
...
...
@@ -71,4 +71,5 @@ STID_TOPICS, "T&opics"
STID_ALL_FILES, "Tuot las datotecas (*.*)"
STID_HELP_FILES_HLP, "Datotecas d'ag�d (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Ru.rc
View file @
cf2de8c0
...
...
@@ -76,4 +76,5 @@ STID_TOPICS, "&"
STID_ALL_FILES, " (*.*)"
STID_HELP_FILES_HLP, " (*.hlp)"
STID_FILE_NOT_FOUND_s " '%s'. ?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Si.rc
View file @
cf2de8c0
...
...
@@ -78,6 +78,7 @@ STID_TOPICS, "&Vsebina"
STID_ALL_FILES, "Vse datoteke (*.*)"
STID_HELP_FILES_HLP, "Datoteke s pomočjo (*.hlp)"
STID_FILE_NOT_FOUND_s "Ne najdem datoteke '%s'. Ali jo želite poiskati sami?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
#pragma code_page(default)
programs/winhelp/Sk.rc
View file @
cf2de8c0
...
...
@@ -63,4 +63,5 @@ STID_TOPICS, "&Topics"
STID_ALL_FILES, "Vetky sbory (*.*)"
STID_HELP_FILES_HLP, "Sbory pomoci (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Sv.rc
View file @
cf2de8c0
...
...
@@ -69,4 +69,5 @@ STID_TOPICS, "&Ämnen"
STID_ALL_FILES, "Alla filer (*.*)"
STID_HELP_FILES_HLP, "Hjälpfiler (*.hlp)"
STID_FILE_NOT_FOUND_s "Kan inte hitta '%s'. Vill du söka efter denna fil?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Tr.rc
View file @
cf2de8c0
...
...
@@ -66,4 +66,5 @@ STID_TOPICS, "&Konular"
STID_ALL_FILES, "Tm dosyalar (*.*)"
STID_HELP_FILES_HLP, "Yardm dosyalar (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/Wa.rc
View file @
cf2de8c0
...
...
@@ -71,6 +71,7 @@ STID_TOPICS, "&Topics"
STID_ALL_FILES, "Tos les fitchs (*.*)"
STID_HELP_FILES_HLP, "Fitchs d' aide (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
#endif /* LANG_WALON */
programs/winhelp/Zh.rc
View file @
cf2de8c0
...
...
@@ -67,4 +67,5 @@ STID_TOPICS, "主题(&T)"
STID_ALL_FILES, "所有文件 (*.*)"
STID_HELP_FILES_HLP, "帮助文件 (*.hlp)"
STID_FILE_NOT_FOUND_s "Cannot find '%s'. Do you want to find this file yourself?"
STID_NO_RICHEDIT "Cannot find a richedit implementation... Aborting"
}
programs/winhelp/winhelp.c
View file @
cf2de8c0
...
...
@@ -35,6 +35,7 @@
#include "winhelp.h"
#include "winhelp_res.h"
#include "shellapi.h"
#include "richedit.h"
#include "wine/debug.h"
...
...
@@ -58,6 +59,8 @@ static WINHELP_LINE_PART* WINHELP_IsOverLink(WINHELP_WINDOW*, WPARAM, LPARAM);
WINHELP_GLOBALS
Globals
=
{
3
,
NULL
,
TRUE
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
{{{
NULL
,
NULL
}},
0
}};
static
BOOL
use_richedit
;
#define CTL_ID_BUTTON 0x700
#define CTL_ID_TEXT 0x701
...
...
@@ -246,6 +249,11 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
Globals
.
hInstance
=
hInstance
;
use_richedit
=
getenv
(
"WINHELP_RICHEDIT"
)
!=
NULL
;
if
(
use_richedit
&&
LoadLibrary
(
"riched20.dll"
)
==
NULL
)
return
MessageBox
(
0
,
MAKEINTRESOURCE
(
STID_NO_RICHEDIT
),
MAKEINTRESOURCE
(
STID_WHERROR
),
MB_OK
);
/* Get options */
while
(
*
cmdline
&&
(
*
cmdline
==
' '
||
*
cmdline
==
'-'
))
{
...
...
@@ -643,8 +651,13 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE* wpage, int nCmdShow, BOOL remembe
CreateWindow
(
BUTTON_BOX_WIN_CLASS_NAME
,
""
,
WS_CHILD
|
WS_VISIBLE
,
0
,
0
,
0
,
0
,
win
->
hMainWnd
,
(
HMENU
)
CTL_ID_BUTTON
,
Globals
.
hInstance
,
NULL
);
CreateWindow
(
TEXT_WIN_CLASS_NAME
,
""
,
WS_CHILD
|
WS_VISIBLE
,
0
,
0
,
0
,
0
,
win
->
hMainWnd
,
(
HMENU
)
CTL_ID_TEXT
,
Globals
.
hInstance
,
win
);
if
(
!
use_richedit
)
CreateWindow
(
TEXT_WIN_CLASS_NAME
,
""
,
WS_CHILD
|
WS_VISIBLE
,
0
,
0
,
0
,
0
,
win
->
hMainWnd
,
(
HMENU
)
CTL_ID_TEXT
,
Globals
.
hInstance
,
win
);
else
CreateWindow
(
RICHEDIT_CLASS
,
NULL
,
ES_MULTILINE
|
ES_READONLY
|
WS_CHILD
|
WS_HSCROLL
|
WS_VSCROLL
|
WS_VISIBLE
,
0
,
0
,
0
,
0
,
win
->
hMainWnd
,
(
HMENU
)
CTL_ID_TEXT
,
Globals
.
hInstance
,
NULL
);
}
hIcon
=
(
wpage
->
page
)
?
wpage
->
page
->
file
->
hIcon
:
NULL
;
...
...
programs/winhelp/winhelp_res.h
View file @
cf2de8c0
...
...
@@ -30,6 +30,7 @@
#define STID_HELP_FILES_HLP 0x12C
#define STID_DIALOG_TEST 0x12D
#define STID_FILE_NOT_FOUND_s 0x12E
#define STID_NO_RICHEDIT 0x12F
#define IDD_INDEX 0x150
#define IDC_INDEXLIST 0x151
...
...
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