version 1.6, 2002/08/13 10:11:52 |
version 1.7, 2002/08/14 00:47:51 |
Line 568 void CAsir32guiView::OnUpdateContribhelp(CCmdUI* pCmdU |
|
Line 568 void CAsir32guiView::OnUpdateContribhelp(CCmdUI* pCmdU |
|
// TODO: この位置に command update UI ハンドラ用のコードを追加してください |
// TODO: この位置に command update UI ハンドラ用のコードを追加してください |
char root[BUFSIZ],errmsg[BUFSIZ],helpfile[BUFSIZ]; |
char root[BUFSIZ],errmsg[BUFSIZ],helpfile[BUFSIZ]; |
|
|
get_rootdir(root,sizeof(root),errmsg); |
if ( getenv("OpenXM_WIN_ROOT") ) { |
sprintf(helpfile,"%s\\bin\\cmanhelp.chm",root); |
get_rootdir(root,sizeof(root),errmsg); |
if ( _access(helpfile,04) != -1 ) |
sprintf(helpfile,"%s\\bin\\cmanhelp.chm",root); |
pCmdUI->Enable( TRUE ); |
if ( _access(helpfile,04) != -1 ) { |
else |
pCmdUI->Enable( TRUE ); |
pCmdUI->Enable( FALSE ); |
return; |
|
} |
|
} |
|
pCmdUI->Enable( FALSE ); |
} |
} |