Changeset 24 in dev for ProjectEditor/Complement.cpp
- Timestamp:
- Dec 30, 2006, 10:18:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ProjectEditor/Complement.cpp
r3 r24 384 384 //エディタ画面左端のコントロールタブ 385 385 int iControlTabSpace; 386 iControlTabSpace=MdiInfo[WndNum].p mti->iWidth_ControlTabSpace;386 iControlTabSpace=MdiInfo[WndNum].pMdiTextEdit->iWidth_ControlTabSpace; 387 387 388 388 extern MDIINFO MdiInfo[MAX_WNDNUM]; 389 389 extern int font_width,font_height; 390 390 POINT pos; 391 pos=MdiInfo[WndNum].p mti->StartCaretPos;391 pos=MdiInfo[WndNum].pMdiTextEdit->StartCaretPos; 392 392 GetScrollBaseCaretPos(WndNum,(int *)&pos.x,(int *)&pos.y); 393 393 … … 395 395 pos.y=(pos.y+1)*font_height; 396 396 397 ClientToScreen(MdiInfo[WndNum].p mti->hEdit,&pos);397 ClientToScreen(MdiInfo[WndNum].pMdiTextEdit->hEdit,&pos); 398 398 399 399 extern HINSTANCE hInst; … … 621 621 //フォーカスをエディタに戻す 622 622 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 623 SetFocus(MdiInfo[WndNum].p mti->hEdit);623 SetFocus(MdiInfo[WndNum].pMdiTextEdit->hEdit); 624 624 return 0; 625 625 case WM_KEYDOWN: … … 633 633 //フォーカスをエディタに戻す 634 634 WndNum=GetWndNum(GetWindow(hClient,GW_CHILD)); 635 SetFocus(MdiInfo[WndNum].p mti->hEdit);635 SetFocus(MdiInfo[WndNum].pMdiTextEdit->hEdit); 636 636 637 637 LVHITTESTINFO lvHitTest; … … 659 659 660 660 for(i=ComplementWndInfo.iPos-1;;i--){ 661 if(MdiInfo[WndNum].p mti->buffer[i]!='\t'){661 if(MdiInfo[WndNum].pMdiTextEdit->buffer[i]!='\t'){ 662 662 i++; 663 663 break; … … 665 665 } 666 666 667 GetCaretPosFromBufferIndex(MdiInfo[WndNum].p mti->buffer,667 GetCaretPosFromBufferIndex(MdiInfo[WndNum].pMdiTextEdit->buffer, 668 668 i, 669 &MdiInfo[WndNum].p mti->StartCaretPos);669 &MdiInfo[WndNum].pMdiTextEdit->StartCaretPos); 670 670 671 671 //インデント … … 684 684 //クラスメンバ補完 685 685 686 GetCaretPosFromBufferIndex(MdiInfo[WndNum].p mti->buffer,686 GetCaretPosFromBufferIndex(MdiInfo[WndNum].pMdiTextEdit->buffer, 687 687 ComplementWndInfo.iPos, 688 &MdiInfo[WndNum].p mti->StartCaretPos);688 &MdiInfo[WndNum].pMdiTextEdit->StartCaretPos); 689 689 690 690 //リプレース前に補完機能を破棄する
Note:
See TracChangeset
for help on using the changeset viewer.