Don't show docview sample --mdi option in help if it's not supported
No real changes, just avoid describing the "--mdi" option in the help message if it's not really supported in this library build.
This commit is contained in:
parent
f53923dd31
commit
ff023ef6b3
1 changed files with 4 additions and 0 deletions
|
|
@ -92,7 +92,9 @@ MyApp::MyApp()
|
|||
namespace CmdLineOption
|
||||
{
|
||||
|
||||
#if wxUSE_MDI_ARCHITECTURE
|
||||
const char * const MDI = "mdi";
|
||||
#endif // wxUSE_MDI_ARCHITECTURE
|
||||
const char * const SDI = "sdi";
|
||||
const char * const SINGLE = "single";
|
||||
|
||||
|
|
@ -102,8 +104,10 @@ void MyApp::OnInitCmdLine(wxCmdLineParser& parser)
|
|||
{
|
||||
wxApp::OnInitCmdLine(parser);
|
||||
|
||||
#if wxUSE_MDI_ARCHITECTURE
|
||||
parser.AddSwitch("", CmdLineOption::MDI,
|
||||
"run in MDI mode: multiple documents, single window");
|
||||
#endif // wxUSE_MDI_ARCHITECTURE
|
||||
parser.AddSwitch("", CmdLineOption::SDI,
|
||||
"run in SDI mode: multiple documents, multiple windows");
|
||||
parser.AddSwitch("", CmdLineOption::SINGLE,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue