Changeset 364 in dev for trunk/abdev/ProjectEditor/EndPairCommandComplement.cpp
- Timestamp:
- Nov 11, 2007, 3:12:06 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/ProjectEditor/EndPairCommandComplement.cpp
r118 r364 75 75 if(lstrcmpi(temporary,"Select")==0) return COM_SELECT; 76 76 if(lstrcmpi(temporary,"Sub")==0) return COM_SUB; 77 if(lstrcmpi(temporary,"Try")==0) return COM_TRY; 77 78 if(lstrcmpi(temporary,"Type")==0) return COM_TYPE; 78 79 if(lstrcmpi(temporary,"While")==0) return COM_WHILE; … … 150 151 lstrcpy(buffer,"End Sub"); 151 152 break; 153 case COM_TRY: 154 lstrcpy(buffer,"End Try"); 155 break; 152 156 case COM_TYPE: 153 157 lstrcpy(buffer,"End Type"); … … 317 321 ComplementWndInfo.pMemberInfo[1].dwProc=0; 318 322 ComplementWndInfo.pMemberInfo[1].dwAccess=ACCESS_PAIRCOMMAND; 323 } 324 else if(CmdId==COM_TRY){ 325 ComplementWndInfo.pMemberInfo=(MEMBERINFO *)HeapAlloc(hHeap,0,sizeof(MEMBERINFO)*4); 326 ComplementWndInfo.MemberNum=3; 327 328 ComplementWndInfo.pMemberInfo[0].pName=(char *)HeapAlloc(hHeap,0,10); 329 lstrcpy(ComplementWndInfo.pMemberInfo[0].pName,"End Try"); 330 ComplementWndInfo.pMemberInfo[0].dwProc=0; 331 ComplementWndInfo.pMemberInfo[0].dwAccess=ACCESS_PAIRCOMMAND; 332 333 ComplementWndInfo.pMemberInfo[1].pName=(char *)HeapAlloc(hHeap,0,10); 334 lstrcpy(ComplementWndInfo.pMemberInfo[1].pName,"Catch"); 335 ComplementWndInfo.pMemberInfo[1].dwProc=0; 336 ComplementWndInfo.pMemberInfo[1].dwAccess=ACCESS_PAIRCOMMAND; 337 338 ComplementWndInfo.pMemberInfo[2].pName=(char *)HeapAlloc(hHeap,0,8); 339 lstrcpy(ComplementWndInfo.pMemberInfo[2].pName,"Finally"); 340 ComplementWndInfo.pMemberInfo[2].dwProc=0; 341 ComplementWndInfo.pMemberInfo[2].dwAccess=ACCESS_PAIRCOMMAND; 319 342 } 320 343 else{
Note:
See TracChangeset
for help on using the changeset viewer.