▼ もかさん
> 原因はクリップしてないからですが、どう対処しよう。
こんな感じでしょうか?
ssrc_2003-08-11.tar.bz2との差分
--- sakura_core_org/CEditView_New.cpp Tue Aug 12 00:09:18 2003
+++ sakura_core_fix/CEditView_New.cpp Sun Aug 17 17:50:32 2003
@@ -591,15 +591,20 @@
rcClip2.bottom = y + nLineHeight;
colBkColorOld = ::SetBkColor( hdc, TypeDataPtr->m_ColorInfoArr[nColorIdx].m
_colBACK ); /* CRLF背景の色 */
::ExtTextOut( hdc, x + nX * ( nCharWidth ), y, fuOptions,
- &rcClip2, (const char *)" ", 1, m_pnDx );
+ &rcClip2, (const char *)" ", 2, m_pnDx );
::SetBkColor( hdc, colBkColorOld );
/* 改行記号の表示 */
if( TypeDataPtr->m_ColorInfoArr[COLORIDX_CRL
F].m_bDisp ){
nPosX = x + nX * ( nCharWidth );
nPosY = y;
//@@@ 2001.12.21 YAZAKI
+ HRGN hRgn;
+ hRgn = ::CreateRectRgnIndirect(&rcClip2);
+ ::SelectClipRgn(hdc, hRgn);
DrawEOL(hdc, nPosX + 1, nPosY, m_nCharWidth, m_nCharHeight,
pcLayout2->m_cEol, TypeDataPtr->m_ColorInfoArr[nColorIdx].m
_bFatFont, TypeDataPtr->m_ColorInfoArr[nColorIdx].m
_colTEXT );
+ ::SelectClipRgn(hdc, NULL);
+ ::DeleteObject(hRgn);
}
}
::SelectObject( hdc, hFontOld );