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
c631bb0b
Commit
c631bb0b
authored
Apr 22, 2008
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Simplified message box handling.
parent
3ae5ad8e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
21 deletions
+4
-21
winhelp.c
programs/winhelp/winhelp.c
+4
-20
winhelp.h
programs/winhelp/winhelp.h
+0
-1
No files found.
programs/winhelp/winhelp.c
View file @
c631bb0b
...
...
@@ -759,7 +759,8 @@ static LRESULT CALLBACK WINHELP_MainWndProc(HWND hWnd, UINT msg, WPARAM wParam,
if
(
button
)
MACRO_ExecuteMacro
(
button
->
lpszMacro
);
else
if
(
!
HIWORD
(
wParam
))
WINHELP_MessageBoxIDS
(
STID_NOT_IMPLEMENTED
,
0x121
,
MB_OK
);
MessageBox
(
0
,
MAKEINTRESOURCE
(
STID_NOT_IMPLEMENTED
),
MAKEINTRESOURCE
(
STID_WHERROR
),
MB_OK
);
break
;
}
break
;
...
...
@@ -1913,34 +1914,17 @@ static void WINHELP_InitFonts(HWND hWnd)
/***********************************************************************
*
* WINHELP_MessageBoxIDS
*/
INT
WINHELP_MessageBoxIDS
(
UINT
ids_text
,
UINT
ids_title
,
WORD
type
)
{
CHAR
text
[
MAX_STRING_LEN
];
CHAR
title
[
MAX_STRING_LEN
];
LoadString
(
Globals
.
hInstance
,
ids_text
,
text
,
sizeof
(
text
));
LoadString
(
Globals
.
hInstance
,
ids_title
,
title
,
sizeof
(
title
));
return
MessageBox
(
0
,
text
,
title
,
type
);
}
/***********************************************************************
*
* MAIN_MessageBoxIDS_s
* WINHELP_MessageBoxIDS_s
*/
INT
WINHELP_MessageBoxIDS_s
(
UINT
ids_text
,
LPCSTR
str
,
UINT
ids_title
,
WORD
type
)
{
CHAR
text
[
MAX_STRING_LEN
];
CHAR
title
[
MAX_STRING_LEN
];
CHAR
newtext
[
MAX_STRING_LEN
+
MAX_PATH
];
LoadString
(
Globals
.
hInstance
,
ids_text
,
text
,
sizeof
(
text
));
LoadString
(
Globals
.
hInstance
,
ids_title
,
title
,
sizeof
(
title
));
wsprintf
(
newtext
,
text
,
str
);
return
MessageBox
(
0
,
newtext
,
title
,
type
);
return
MessageBox
(
0
,
newtext
,
MAKEINTRESOURCE
(
ids_title
)
,
type
);
}
/******************************************************************
...
...
programs/winhelp/winhelp.h
View file @
c631bb0b
...
...
@@ -184,7 +184,6 @@ BOOL WINHELP_CreateHelpWindow(WINHELP_WNDPAGE*, int, BOOL);
BOOL
WINHELP_GetOpenFileName
(
LPSTR
,
int
);
BOOL
WINHELP_CreateIndexWindow
(
void
);
void
WINHELP_DeleteBackSet
(
WINHELP_WINDOW
*
);
INT
WINHELP_MessageBoxIDS
(
UINT
,
UINT
,
WORD
);
INT
WINHELP_MessageBoxIDS_s
(
UINT
,
LPCSTR
,
UINT
,
WORD
);
HLPFILE
*
WINHELP_LookupHelpFile
(
LPCSTR
lpszFile
);
HLPFILE_WINDOWINFO
*
WINHELP_GetWindowInfo
(
HLPFILE
*
hlpfile
,
LPCSTR
name
);
...
...
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