version 1.2, 2010/01/21 03:00:21 |
version 1.3, 2010/01/21 07:16:44 |
Line 215 HCURSOR CWinfepDlg::OnQueryDragIcon() |
|
Line 215 HCURSOR CWinfepDlg::OnQueryDragIcon() |
|
void CWinfepDlg::OnSend() |
void CWinfepDlg::OnSend() |
{ |
{ |
// TODO: この位置にコントロール通知ハンドラ用のコードを追加してください |
// TODO: この位置にコントロール通知ハンドラ用のコードを追加してください |
if ( !infile ) return; |
int i; |
|
if ( !infile ) return; |
if ( currentline >= 0 && currentline < nlines ) { |
if ( currentline >= 0 && currentline < nlines ) { |
CString str; |
CString str; |
m_currentline.GetWindowText(str); |
m_currentline.GetWindowText(str); |
LPCSTR line = (LPCSTR)str; |
LPCSTR line = (LPCSTR)str; |
for ( int i = 0; line[i]; i++ ) { |
for ( i = 0; line[i] && isspace(line[i]); i++ ); |
|
if ( line[i] && |
|
!strncmp(line+i,"end$",4) || !strncmp(line+i,"end;",4) ) return; |
|
for ( i = 0; line[i]; i++ ) { |
if ( line[i] == '\t' ) |
if ( line[i] == '\t' ) |
::SendMessage(asirhwnd,WM_CHAR,' ',8); |
::SendMessage(asirhwnd,WM_CHAR,' ',8); |
else |
else |