Changeset 471 in dev


Ignore:
Timestamp:
Mar 31, 2008, 10:24:38 AM (16 years ago)
Author:
dai_9181
Message:

show_dlgコマンドライン引数を実装。

Location:
trunk/ab5.0/abdev/BasicCompiler_Common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp

    r470 r471  
    741741            PostMessage( hMainDlg, WM_COMMAND, IDOK, 0 );
    742742        }
     743        else if( program.IsShowDlg() )
     744        {
     745            // コマンドラインでshow_dlgパラメータが指定された場合、ダイアログを表示する
     746            // すぐにビルドを開始する
     747            ShowWindow(hMainDlg,SW_SHOW);
     748            PostMessage( hMainDlg, WM_COMMAND, IDOK, 0 );
     749        }
    743750        else if( isSpecifiedSourceFilePathByCommandLine )
    744751        {
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Program.h

    r467 r471  
    99
    1010    bool isKickedFromEditor;
     11    bool isShowDlg;
    1112    bool isDebugRun;
    1213    bool isAttach;
     
    2021    Program()
    2122        : isKickedFromEditor( false )
     23        , isShowDlg( false )
    2224        , isDebugRun( false )
    2325        , isAttach( false )
     
    4951    {
    5052        return isKickedFromEditor;
     53    }
     54
     55    bool IsShowDlg() const
     56    {
     57        return isShowDlg;
    5158    }
    5259
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Program.cpp

    r467 r471  
    5555            isKickedFromEditor = true;
    5656            sscanf( cmdLine.GetParameter().c_str(), "%08x", &hOwnerEditor );
     57        }
     58        else if( cmdLine.GetCommand() == "show_dlg" )
     59        {
     60            isShowDlg = true;
    5761        }
    5862        else if( cmdLine.GetCommand() == "debug" )
Note: See TracChangeset for help on using the changeset viewer.