Changeset 771 in dev for trunk/ab5.0/abdev/abdev/TextEditor_KeyEvent.cpp
- Timestamp:
- Aug 2, 2009, 10:29:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/TextEditor_KeyEvent.cpp
r629 r771 488 488 int WndNum; 489 489 WndNum=GetWndNum(GetParent(hwnd)); 490 bool isSelectedBefore = MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.x!=MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.x 491 || MdiInfo[WndNum]->pMdiTextEdit->StartCaretPos.y!=MdiInfo[WndNum]->pMdiTextEdit->EndCaretPos.y; 490 492 491 493 if(nVirtualKey==VK_LEFT||nVirtualKey==VK_UP||nVirtualKey==VK_RIGHT||nVirtualKey==VK_DOWN||nVirtualKey==VK_PRIOR||nVirtualKey==VK_NEXT){ … … 665 667 ResetState_EditMenu(); 666 668 667 //再描画(選択時の反転表示が解除されたときを考慮) 668 UpdateWindow(hwnd); //ちらつき防止 669 InvalidateRect(hwnd,NULL,0); 669 if(!TextEdit_ScrollCaret(WndNum,0)&&isSelectedBefore){ 670 UpdateWindow(hwnd); //ちらつき防止 671 //再描画(選択時の反転表示が解除されたときを考慮) 672 InvalidateRect(hwnd,NULL,0); 673 } 670 674 } 671 675 else if(nVirtualKey==VK_HOME||nVirtualKey==VK_END){ … … 705 709 } 706 710 707 if(!TextEdit_ScrollCaret(WndNum,0) ){711 if(!TextEdit_ScrollCaret(WndNum,0)&&isSelectedBefore){ 708 712 //再描画(選択時の反転表示が解除されたときを考慮) 709 713 InvalidateRect(hwnd,NULL,0);
Note:
See TracChangeset
for help on using the changeset viewer.