Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Algorithms for incremental and differential backup? Pin
Christian Graus13-Nov-06 21:45
protectorChristian Graus13-Nov-06 21:45 
GeneralRe: Algorithms for incremental and differential backup? Pin
benjymous13-Nov-06 22:10
benjymous13-Nov-06 22:10 
AnswerRe: Algorithms for incremental and differential backup? Pin
kakan13-Nov-06 22:03
professionalkakan13-Nov-06 22:03 
QuestionDependency Viewer Problem Pin
Cmania13-Nov-06 19:50
Cmania13-Nov-06 19:50 
AnswerRe: Dependency Viewer Problem Pin
Steve S13-Nov-06 21:38
Steve S13-Nov-06 21:38 
AnswerRe: Dependency Viewer Problem Pin
Michael Dunn13-Nov-06 21:38
sitebuilderMichael Dunn13-Nov-06 21:38 
GeneralRe: Dependency Viewer Problem Pin
Cmania14-Nov-06 17:58
Cmania14-Nov-06 17:58 
QuestionSharing A DLL Pin
Cmania13-Nov-06 19:42
Cmania13-Nov-06 19:42 
QuestionHow can I get the chunk-size in the Http1.1 Pin
chenxiujie13-Nov-06 19:37
chenxiujie13-Nov-06 19:37 
QuestionMousemove problem... Pin
tintin7713-Nov-06 19:35
tintin7713-Nov-06 19:35 
AnswerRe: Mousemove problem... Pin
Christian Graus13-Nov-06 19:40
protectorChristian Graus13-Nov-06 19:40 
AnswerRe: Mousemove problem... Pin
Christian Graus13-Nov-06 19:41
protectorChristian Graus13-Nov-06 19:41 
QuestionHow to import vector graphics into a MFC project Pin
D_code_writer13-Nov-06 17:45
D_code_writer13-Nov-06 17:45 
AnswerRe: How to import vector graphics into a MFC project Pin
Christian Graus13-Nov-06 17:47
protectorChristian Graus13-Nov-06 17:47 
AnswerRe: How to import vector graphics into a MFC project Pin
Christian Graus13-Nov-06 17:50
protectorChristian Graus13-Nov-06 17:50 
AnswerRe: How to import vector graphics into a MFC project Pin
Maximilien14-Nov-06 4:12
Maximilien14-Nov-06 4:12 
Questionarrow keys Pin
Sunshine Always13-Nov-06 17:20
Sunshine Always13-Nov-06 17:20 
AnswerRe: arrow keys Pin
Christian Graus13-Nov-06 17:24
protectorChristian Graus13-Nov-06 17:24 
AnswerRe: arrow keys Pin
Christian Graus13-Nov-06 17:25
protectorChristian Graus13-Nov-06 17:25 
GeneralRe: arrow keys Pin
Sunshine Always13-Nov-06 17:42
Sunshine Always13-Nov-06 17:42 
GeneralRe: arrow keys Pin
Christian Graus13-Nov-06 17:47
protectorChristian Graus13-Nov-06 17:47 
AnswerRe: arrow keys Pin
Nibu babu thomas13-Nov-06 17:25
Nibu babu thomas13-Nov-06 17:25 
AnswerRe: arrow keys Pin
Steve Echols13-Nov-06 19:28
Steve Echols13-Nov-06 19:28 
If you really want it to work like left and right arrows, I don't think your want to use the caret functions.

Instead, use EM_GETSEL to find the current position, increment or decrement the postion variable, and use EM_SETSEL to set the new position.

    int nStart, nEnd;<br />
    ::SendMessage( hwndEdit, EM_GETSEL, (WPARAM) &nStart, (LPARAM) &nEnd);<br />
<br />
    // left arrow<br />
    nStart--;<br />
<br />
    or...<br />
<br />
    // right arrow<br />
    nStart++;<br />
<br />
    ::SendMessage( hwndEdit, EM_SETSEL, (WPARAM) nStart, (LPARAM) nStart );<br />

If you're using MFC, use GetSel and SetSel.



- S
50 cups of coffee and you know it's on!

GeneralRe: arrow keys Pin
Sunshine Always13-Nov-06 17:41
Sunshine Always13-Nov-06 17:41 
GeneralRe: arrow keys Pin
Nibu babu thomas13-Nov-06 17:45
Nibu babu thomas13-Nov-06 17:45 

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.