forked from tsupo/Chirrup
/
ProceedingDialog.cpp
118 lines (101 loc) · 2.92 KB
/
ProceedingDialog.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*
* ProceedingDialog.cpp : Twitter クライアント chirrup
* 進行状況表示ダイアログ インプリメンテーション ファイル
* written by H.Tsujimura 10 Nov 2005 / 4 Apr 2007
*
* 「ソーシャルブックマーク管理プログラム」で使っているソースコードを
* そのまま流用
*
* $Log: /comm/chirrup/ProceedingDialog.cpp $
*
* 1 09/05/14 3:50 tsupo
* (1) ビルド環境のディレクトリ構造を整理
* (2) VSSサーバ拠点を変更
*
* 1 07/04/05 2:06 Tsujimura543
* 最初の版
*
* ------------------------------------------------------------------------
* 以下は、bookey/ProceedingDialog.cpp の変更履歴
* ------------------------------------------------------------------------
* 7 07/01/30 21:44 Tsujimura543
* コメントを修正
*
* 6 07/01/17 23:57 Tsujimura543
* 英語モード対応
*
* 5 07/01/04 18:54 Tsujimura543
* ShowWindow() の引数を修正
*
* 4 06/07/11 18:15 Tsujimura543
* コメントを修正
*
* 3 06/07/11 18:14 Tsujimura543
* SetFocus() 絡みの修正を実施 (「実行中」ダイアログに focus が当たるよう
* に調整した)
*
* 2 06/07/03 23:37 Tsujimura543
* ProceedingDialog の DestroyWindow() 時に例外が発生することがある件の
* 暫定対処を実施 (デバッグ版でしか発生しない?)
*
* 1 05/11/10 21:17 Tsujimura543
* 新規作成
*/
#include "chirrup.h"
#include "ProceedingDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#ifndef lint
static char *rcs_id =
"$Header: /comm/chirrup/ProceedingDialog.cpp 1 09/05/14 3:50 tsupo $";
#endif
/////////////////////////////////////////////////////////////////////////////
// ProceedingDialog ダイアログ
ProceedingDialog::ProceedingDialog(CWnd* pParent /*=NULL*/)
: CDialog(ProceedingDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(ProceedingDialog)
//}}AFX_DATA_INIT
}
void ProceedingDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(ProceedingDialog)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(ProceedingDialog, CDialog)
//{{AFX_MSG_MAP(ProceedingDialog)
ON_WM_SHOWWINDOW()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// ProceedingDialog 追加メソッド
void ProceedingDialog::ChangeDialogText(
const char *title,
const char *message
)
{
SetWindowText( title );
CStatic *sp = (CStatic *)GetDlgItem( IDC_STATIC_PROCEED_STRING );
sp->SetWindowText( message );
SetFocus();
}
void ProceedingDialog::ResetDialogText()
{
CString text;
text.LoadString(IDS_TXT_CONTINUE_PROCEEDING);
ChangeDialogText( text, text );
}
/////////////////////////////////////////////////////////////////////////////
// ProceedingDialog メッセージ ハンドラ
void ProceedingDialog::OnShowWindow(BOOL bShow, UINT nStatus)
{
CDialog::OnShowWindow(bShow, nStatus);
if ( bShow ) {
CButton *bp = (CButton *)GetDlgItem( IDCANCEL );
bp->ShowWindow( SW_HIDE );
}
}