version 1.26, 2013/08/03 18:29:11 |
version 1.28, 2013/08/07 07:54:16 |
Line 377 void CAsir32guiView::OnChar(UINT nChar, UINT nRepCnt, |
|
Line 377 void CAsir32guiView::OnChar(UINT nChar, UINT nRepCnt, |
|
// TODO: この位置にメッセージ ハンドラ用のコードを追加するかまたはデフォルトの処理を呼び出してください |
// TODO: この位置にメッセージ ハンドラ用のコードを追加するかまたはデフォルトの処理を呼び出してください |
char *exp_result; |
char *exp_result; |
char tmp[BUFSIZ]; |
char tmp[BUFSIZ]; |
|
int i; |
|
|
if ( asirgui_kind == ASIRGUI_MESSAGE ) { |
if ( asirgui_kind == ASIRGUI_MESSAGE ) { |
Beep(); return; |
Beep(); return; |
Line 440 void CAsir32guiView::OnChar(UINT nChar, UINT nRepCnt, |
|
Line 441 void CAsir32guiView::OnChar(UINT nChar, UINT nRepCnt, |
|
tmp[0] = 0; |
tmp[0] = 0; |
put_line(tmp); |
put_line(tmp); |
return; |
return; |
|
case CTRL('Y'): |
|
Paste(); return; |
|
case CTRL('I'): |
|
return; |
default : |
default : |
if ( nChar >= 0x20 && nChar < 0x7f ) |
if ( nChar >= 0x20 && nChar < 0x7f ) |
PutChar(nChar); |
PutChar(nChar); |
Line 733 BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC |
|
Line 738 BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC |
|
if (get_rootdir(rootdir, BUFSIZ, errmsg)) { |
if (get_rootdir(rootdir, BUFSIZ, errmsg)) { |
sprintf(hndname, "%s\\bin\\asirgui.hnd", rootdir); |
sprintf(hndname, "%s\\bin\\asirgui.hnd", rootdir); |
fp = fopen(hndname,"w"); |
fp = fopen(hndname,"w"); |
} |
if ( fp ) { |
if ( fp ) { |
|
fprintf(fp,"%d",(unsigned int)theView->m_hWnd); |
|
fclose(fp); |
|
if ( temp = getenv("TEMP") ) { |
|
size_t len; |
|
char *name; |
|
|
|
len = strlen(temp); |
|
name = (char *)malloc(len+BUFSIZ); |
|
sprintf(name,"%s\\asirgui.hnd",temp); |
|
fopen(name,"w"); |
|
fprintf(fp,"%d",(unsigned int)theView->m_hWnd); |
fprintf(fp,"%d",(unsigned int)theView->m_hWnd); |
fclose(fp); |
fclose(fp); |
|
} |
|
} |
|
if ( temp = getenv("TEMP") ) { |
|
sprintf(hndname,"%s\\asirgui.hnd", temp); |
|
fp = fopen(hndname,"w"); |
|
if ( fp ) { |
|
fprintf(fp,"%d",(unsigned int)theView->m_hWnd); |
|
fclose(fp); |
} |
} |
} |
} |
return ret; |
return ret; |