Changeset 25 in dev for ProjectEditor/TabCtrl.cpp
- Timestamp:
- Jan 5, 2007, 3:03:48 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ProjectEditor/TabCtrl.cpp
r24 r25 244 244 245 245 void CMainTab::SelChangeEvent(){ 246 extern MDIINFO MdiInfo[MAX_WNDNUM];247 char temporary[MAX_PATH];248 249 246 int i; 250 247 i=TabCtrl_GetCurSel(hTab); 251 248 249 char ItemText[MAX_PATH]; 252 250 TC_ITEM tcItem; 253 251 tcItem.mask=TCIF_TEXT; 254 tcItem.pszText= temporary;252 tcItem.pszText=ItemText; 255 253 tcItem.cchTextMax=MAX_PATH; 256 254 TabCtrl_GetItem(hTab,i,&tcItem); 257 255 256 if( ItemText[ lstrlen( ItemText ) -1 ] == '*' ){ 257 //アスタリスクがあったときは取り除く 258 ItemText[ lstrlen( ItemText ) -1 ] = 0; 259 } 260 261 extern MDIINFO MdiInfo[MAX_WNDNUM]; 258 262 for(i=0;i<MAX_WNDNUM;i++){ 259 if(lstrcmpi( temporary,MdiInfo[i].title)==0) break;263 if(lstrcmpi(ItemText,MdiInfo[i].title)==0) break; 260 264 } 261 265 BringWindowToTop(MdiInfo[i].hwnd);
Note:
See TracChangeset
for help on using the changeset viewer.