void ctlsstab1.lbutton_double_click()
{
int sstabwid = get_tab_control();
tabs_data* ptabsdata = sstabwid.getFileTabsData();
ptabsdata->clicked_tabid = -1;
int tabi = mou_tabid();
if( tabi >= 0 ) {
ptabsdata->clicked_tabid = tabi;
buff_menu_close();
}
}
void RefreshWindow()
{
MSG message;
if (::PeekMessage(&message,NULL,0,0,PM_REMOVE))
{
::TranslateMessage(&message);
::DispatchMessage(&message);
}
}
CString GetMainProgPath()
{
//获取主程序所在路径,存在sPath中
CString sPath;
GetModuleFileName(NULL,sPath.GetBufferSetLength (MAX_PATH+1),MAX_PATH);
sPath.ReleaseBuffer();
int nPos;
nPos=sPath.ReverseFind ('//');
sPath=sPath.Left (nPos);
return sPath;
}