version 1.29, 2013/08/30 18:18:11 |
version 1.31, 2014/05/10 08:23:33 |
Line 734 BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC |
|
Line 734 BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC |
|
BOOL ret = CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext); |
BOOL ret = CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext); |
FILE *fp = NULL; |
FILE *fp = NULL; |
char *temp; |
char *temp; |
char rootdir[BUFSIZ], errmsg[BUFSIZ], hndname[_MAX_PATH]; |
char hndname[_MAX_PATH]; |
|
|
if (get_rootdir(rootdir, BUFSIZ, errmsg)) { |
if ( asirgui_kind == ASIRGUI_MAIN ) { |
sprintf(hndname, "%s\\bin\\asirgui.hnd", rootdir); |
if ( temp = getenv("TEMP") ) { |
fp = fopen(hndname,"w"); |
sprintf(hndname,"%s\\asirgui.hnd", temp); |
if ( fp ) { |
fp = fopen(hndname,"w"); |
fprintf(fp,"%d",(unsigned int)theView->m_hWnd); |
if ( fp ) { |
fclose(fp); |
fprintf(fp,"%d",(unsigned int)theView->m_hWnd); |
} |
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; |