Changeset 24 in dev for ProjectEditor/TextEditor.cpp
- Timestamp:
- Dec 30, 2006, 10:18:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ProjectEditor/TextEditor.cpp
r22 r24 10 10 11 11 char *pBuf; 12 pBuf=MdiInfo[WndNum].p mti->buffer;12 pBuf=MdiInfo[WndNum].pMdiTextEdit->buffer; 13 13 14 14 int i,iNum=1,x=0; … … 85 85 char *pBuf; 86 86 87 pBuf=MdiInfo[WndNum].p mti->buffer;87 pBuf=MdiInfo[WndNum].pMdiTextEdit->buffer; 88 88 89 89 if(MdiInfo[WndNum].DocType==WNDTYPE_TEXT){ … … 91 91 for(i=0;;i++){ 92 92 if(pBuf[i]=='\0') break; 93 MdiInfo[WndNum].p mti->pColorRef[i]=tci.rgbDefault;93 MdiInfo[WndNum].pMdiTextEdit->pColorRef[i]=tci.rgbDefault; 94 94 } 95 95 return; … … 120 120 if(bResult){ 121 121 for(i3=i-i2;i3<i;i3++){ 122 MdiInfo[WndNum].p mti->pColorRef[i3]=tci.rgbStatement;122 MdiInfo[WndNum].pMdiTextEdit->pColorRef[i3]=tci.rgbStatement; 123 123 } 124 124 } 125 125 else{ 126 126 for(i3=i-i2;i3<i;i3++){ 127 MdiInfo[WndNum].p mti->pColorRef[i3]=tci.rgbDefault;127 MdiInfo[WndNum].pMdiTextEdit->pColorRef[i3]=tci.rgbDefault; 128 128 } 129 129 } … … 134 134 if(IsStr||pBuf[i]=='\"'&&IsStr==0){ 135 135 //文字列カラー(""で囲まれる範囲) 136 MdiInfo[WndNum].p mti->pColorRef[i]=tci.rgbString;136 MdiInfo[WndNum].pMdiTextEdit->pColorRef[i]=tci.rgbString; 137 137 } 138 138 else{ 139 139 //通常カラー 140 MdiInfo[WndNum].p mti->pColorRef[i]=tci.rgbDefault;140 MdiInfo[WndNum].pMdiTextEdit->pColorRef[i]=tci.rgbDefault; 141 141 } 142 142 } … … 156 156 //エディタ画面左端のコントロールタブ 157 157 int iControlTabSpace; 158 iControlTabSpace=MdiInfo[WndNum].p mti->iWidth_ControlTabSpace;158 iControlTabSpace=MdiInfo[WndNum].pMdiTextEdit->iWidth_ControlTabSpace; 159 159 160 160 HWND hEdit; … … 181 181 182 182 //ルーラーを再描画 183 InvalidateRect(MdiInfo[WndNum].p mti->pobj_Ruler->hRulerWnd,NULL,0);184 UpdateWindow(MdiInfo[WndNum].p mti->pobj_Ruler->hRulerWnd);183 InvalidateRect(MdiInfo[WndNum].pMdiTextEdit->pobj_Ruler->hRulerWnd,NULL,0); 184 UpdateWindow(MdiInfo[WndNum].pMdiTextEdit->pobj_Ruler->hRulerWnd); 185 185 } 186 186 … … 217 217 char *pBuf; 218 218 219 pBuf=MdiInfo[WndNum].p mti->buffer;219 pBuf=MdiInfo[WndNum].pMdiTextEdit->buffer; 220 220 221 221 //ダブルクリック位置を取得(バッファインデックス) … … 330 330 331 331 i=GetBufferIndexFromCaretPos( 332 MdiInfo[WndNum].p mti->buffer,333 MdiInfo[WndNum].p mti->StartCaretPos.x,334 MdiInfo[WndNum].p mti->StartCaretPos.y);332 MdiInfo[WndNum].pMdiTextEdit->buffer, 333 MdiInfo[WndNum].pMdiTextEdit->StartCaretPos.x, 334 MdiInfo[WndNum].pMdiTextEdit->StartCaretPos.y); 335 335 GetCaretPosFromBufferIndex( 336 MdiInfo[WndNum].p mti->buffer,336 MdiInfo[WndNum].pMdiTextEdit->buffer, 337 337 i-lstrlen(MdiInfo[WndNum].IndentStr), 338 &MdiInfo[WndNum].p mti->StartCaretPos);338 &MdiInfo[WndNum].pMdiTextEdit->StartCaretPos); 339 339 340 340 TextEdit_Replace(WndNum,"",1);
Note:
See TracChangeset
for help on using the changeset viewer.