Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Sliderbar problem Pin
David Crow2-Jun-09 3:02
David Crow2-Jun-09 3:02 
AnswerRe: Sliderbar problem Pin
Mohammad Khodaea2-Jun-09 4:05
Mohammad Khodaea2-Jun-09 4:05 
GeneralRe: Sliderbar problem Pin
David Crow2-Jun-09 4:20
David Crow2-Jun-09 4:20 
QuestionSNMP Pin
navneet19852-Jun-09 2:10
navneet19852-Jun-09 2:10 
AnswerRe: SNMP Pin
Single Step Debugger2-Jun-09 4:39
Single Step Debugger2-Jun-09 4:39 
QuestionCustom Tab order Pin
Benjamin Bruno2-Jun-09 2:07
Benjamin Bruno2-Jun-09 2:07 
AnswerRe: Custom Tab order Pin
bdwzz2-Jun-09 2:45
bdwzz2-Jun-09 2:45 
QuestionStrange Line-Selecting Behaviour in CRichEditCtrl [modified] Pin
badhad2-Jun-09 1:51
badhad2-Jun-09 1:51 
Hello,

I do a whole line selection in a CRichEditCtrl (Version 2.0, embedded in a CRichEditView) by the following

1. Caret is left on the line start of a empty or not empty line with at least 2 lines following after this line
2. Select whole line with Shift + Down-arrow (only one key press)

=> There are differences in the selection behaviour depending on the following line (the line after the line that has the caret before selecting) beeing empty or not.

- All seems to be ok when the second line is NOT EMPTY => only ONE line is shown as selected.
- But when the second line is EMPTY => TWO lines are shown as selected after one key-press what is very unusual for me.

Example:

(the "#" stands for the blue selection, the "|" is the caret position before the line selection)


Roll eyes | :rolleyes: Normal behaviour:
line n:	"|line with caret at start"
line n+1:	"not empty line below"
line n+2:	"..."

Shift+Down => Selection looks like this:
line n:	"########################"	(one line selected)
line n+1:	"not empty line below"
line n+2:	"..."


OMG | :OMG: Strange behaviour:
line n:	"|line with caret at start"
line n+1:	""				(empty line )
line n+2:	"..."

Shift+Down => Selection looks like this:
line n:	"########################"	(line is selected)
line n+1:	"#"				(following empty line is selected also !?)
line n+2:	"..."



I would like to have a behaviour like the Visual Studio editor e.g. where with Shift+DOWN only one line is selected in every case. Does somebody know how I can achive this? (The CEdit-class for example does not have this selection behaviour.)

Or is there a reason for this behaviour?

Thank you in advance for your ideas
Sebastian

thank you

modified on Tuesday, June 2, 2009 9:13 AM

AnswerRe: Strange Line-Selecting Behaviour in CRichEditCtrl Pin
badhad2-Jun-09 11:48
badhad2-Jun-09 11:48 
Question[Message Deleted] Pin
navneet19852-Jun-09 1:36
navneet19852-Jun-09 1:36 
AnswerRe: SNMP query Pin
Chandrasekharan P2-Jun-09 1:42
Chandrasekharan P2-Jun-09 1:42 
QuestionQuery device manager Pin
Syamlal S Nair2-Jun-09 1:14
Syamlal S Nair2-Jun-09 1:14 
AnswerRe: Query device manager Pin
«_Superman_»2-Jun-09 1:40
professional«_Superman_»2-Jun-09 1:40 
AnswerRe: Query device manager Pin
Jonathan Davies2-Jun-09 5:44
Jonathan Davies2-Jun-09 5:44 
GeneralRe: Query device manager Pin
Syamlal S Nair2-Jun-09 18:04
Syamlal S Nair2-Jun-09 18:04 
GeneralRe: Query device manager Pin
Syamlal S Nair3-Jun-09 2:44
Syamlal S Nair3-Jun-09 2:44 
QuestionCComboBox: button access, list problem Pin
alikalik2-Jun-09 0:59
alikalik2-Jun-09 0:59 
QuestionHow can i use SHCloseApps in VC++? Pin
Le@rner2-Jun-09 0:33
Le@rner2-Jun-09 0:33 
AnswerRe: How can i use SHCloseApps in VC++? Pin
«_Superman_»2-Jun-09 0:40
professional«_Superman_»2-Jun-09 0:40 
AnswerRe: How can i use SHCloseApps in VC++? Pin
Naveen2-Jun-09 0:43
Naveen2-Jun-09 0:43 
GeneralRe: How can i use SHCloseApps in VC++? Pin
Le@rner2-Jun-09 0:48
Le@rner2-Jun-09 0:48 
GeneralRe: How can i use SHCloseApps in VC++? Pin
Naveen2-Jun-09 0:57
Naveen2-Jun-09 0:57 
GeneralRe: How can i use SHCloseApps in VC++? Pin
Le@rner2-Jun-09 1:10
Le@rner2-Jun-09 1:10 
GeneralRe: How can i use SHCloseApps in VC++? Pin
Naveen2-Jun-09 1:13
Naveen2-Jun-09 1:13 
GeneralRe: How can i use SHCloseApps in VC++? Pin
Le@rner2-Jun-09 1:16
Le@rner2-Jun-09 1:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.