Add MB_ICON* styles to message boxes. Use explicit MB_OK.
Capitalize messages. Minor tweaks.
This commit is contained in:
parent
f578e43dec
commit
545bd4c3b1
|
@ -1,4 +1,4 @@
|
|||
/* -*-C++-*- $NetBSD: hpcmenu.cpp,v 1.9 2002/03/25 17:23:19 uch Exp $ */
|
||||
/* -*-C++-*- $NetBSD: hpcmenu.cpp,v 1.10 2003/12/18 12:18:53 uwe Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -274,8 +274,9 @@ __END_MACRO
|
|||
|
||||
if ((ptr = (char *)malloc(len)) == NULL) {
|
||||
MessageBox(_root->_window,
|
||||
L"Couldn't allocate memory for extra kernel options.",
|
||||
TEXT("WARNING"), 0);
|
||||
L"Can't allocate memory for extra kernel options.",
|
||||
TEXT("WARNING"),
|
||||
MB_ICONWARNING | MB_OK);
|
||||
|
||||
return argc;
|
||||
}
|
||||
|
@ -292,7 +293,8 @@ __END_MACRO
|
|||
if (argc == MAX_KERNEL_ARGS || locp + len + 1 > p + sz) {
|
||||
MessageBox(_root->_window,
|
||||
L"Too many extra kernel options.",
|
||||
TEXT("WARNING"), 0);
|
||||
TEXT("WARNING"),
|
||||
MB_ICONWARNING | MB_OK);
|
||||
break;
|
||||
}
|
||||
argv[argc++] = ptokv(locp);
|
||||
|
@ -351,8 +353,9 @@ HpcMenuInterface::boot()
|
|||
if (tab->cpu == cpu && tab->machine == machine) {
|
||||
MessageBox(_root->_window,
|
||||
tab->cause ? tab->cause :
|
||||
L"not supported yet.",
|
||||
TEXT("BOOT FAILED"), 0);
|
||||
L"Not supported yet.",
|
||||
TEXT("BOOT FAILED"),
|
||||
MB_ICONERROR | MB_OK);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: load_elf.cpp,v 1.7 2002/02/11 17:08:55 uch Exp $ */
|
||||
/* $NetBSD: load_elf.cpp,v 1.8 2003/12/18 12:19:49 uwe Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -169,8 +169,9 @@ ElfLoader::symbol_block_size()
|
|||
_sym_blk.header = static_cast<char *>(malloc(_sym_blk.header_size));
|
||||
if (_sym_blk.header == NULL) {
|
||||
MessageBox(HPC_MENU._root->_window,
|
||||
TEXT("couldn't determine symbol block size"),
|
||||
TEXT("WARNING"), 0);
|
||||
TEXT("Can't determine symbol block size."),
|
||||
TEXT("WARNING"),
|
||||
MB_ICONWARNING | MB_OK);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -206,8 +207,9 @@ ElfLoader::symbol_block_size()
|
|||
if (_sym_blk.shstr == NULL || _sym_blk.shsym == NULL) {
|
||||
if (HPC_PREFERENCE.safety_message)
|
||||
MessageBox(HPC_MENU._root->_window,
|
||||
TEXT("no symbol and/or string table in binary. (not fatal)"),
|
||||
TEXT("Information"), 0);
|
||||
TEXT("No symbol and/or string table in binary.\n(not fatal)"),
|
||||
TEXT("Information"),
|
||||
MB_ICONINFORMATION | MB_OK);
|
||||
free(_sym_blk.header);
|
||||
_sym_blk.header = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue