Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
Joan M13-Dec-02 1:55
professionalJoan M13-Dec-02 1:55 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
geo_m13-Dec-02 2:20
geo_m13-Dec-02 2:20 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
Joan M13-Dec-02 2:07
professionalJoan M13-Dec-02 2:07 
GeneralRe: How can I free the memory allocated by this f(x)? Pin
geo_m13-Dec-02 0:27
geo_m13-Dec-02 0:27 
GeneralUsing CRichEditView in Splitter window Pin
berlenz12-Dec-02 22:21
berlenz12-Dec-02 22:21 
GeneralRe: Using CRichEditView in Splitter window Pin
Roman Fadeyev12-Dec-02 23:16
Roman Fadeyev12-Dec-02 23:16 
GeneralRe: Using CRichEditView in Splitter window Pin
berlenz12-Dec-02 23:25
berlenz12-Dec-02 23:25 
GeneralRe: Using CRichEditView in Splitter window Pin
Roman Fadeyev13-Dec-02 0:16
Roman Fadeyev13-Dec-02 0:16 
OK.

Then you can use a notify message EN_SELCHANGE, which inform you about cursor position changing. You can find out current line by means of
EM_GETSEL, EM_LINEFROMCHAR, EM_LINEINDEX messages. Then, knowing total count of lines in the edit and current line you can calculate vert. scrollbar's thumb position.

Something similar is possible for horz. scrollbar too

Is it convenient solving for you?
GeneralRight aligned Tree ! Pin
Hadi Rezaee12-Dec-02 21:45
Hadi Rezaee12-Dec-02 21:45 
GeneralRe: Right aligned Tree ! Pin
Roman Fadeyev12-Dec-02 23:31
Roman Fadeyev12-Dec-02 23:31 
GeneralCritical: Crashes ocx,dll when loading 10-15 controls in Win95 Pin
arunkr12-Dec-02 20:38
arunkr12-Dec-02 20:38 
QuestionWhat am I missing? Pin
Muralia Dhar12-Dec-02 18:28
Muralia Dhar12-Dec-02 18:28 
AnswerRe: What am I missing? Pin
Christian Graus12-Dec-02 18:36
protectorChristian Graus12-Dec-02 18:36 
GeneralRe: What am I missing? Pin
Muralia Dhar12-Dec-02 18:52
Muralia Dhar12-Dec-02 18:52 
GeneralInvalidate window... Pin
Neha12-Dec-02 17:15
Neha12-Dec-02 17:15 
GeneralRe: Invalidate window... Pin
Christian Graus12-Dec-02 18:01
protectorChristian Graus12-Dec-02 18:01 
GeneralRe: Invalidate window... Pin
Neha12-Dec-02 19:09
Neha12-Dec-02 19:09 
GeneralRe: Invalidate window... Pin
Roman Fadeyev12-Dec-02 23:40
Roman Fadeyev12-Dec-02 23:40 
GeneralRe: Invalidate window... Pin
Paul M Watt13-Dec-02 5:00
mentorPaul M Watt13-Dec-02 5:00 
GeneralRe: Invalidate window... Pin
Paul M Watt13-Dec-02 5:06
mentorPaul M Watt13-Dec-02 5:06 
GeneralDetecting 16/32 bit DLLs Pin
Victor Boctor12-Dec-02 15:42
Victor Boctor12-Dec-02 15:42 
GeneralRe: Detecting 16/32 bit DLLs Pin
Michael Dunn12-Dec-02 17:12
sitebuilderMichael Dunn12-Dec-02 17:12 
GeneralRe: Detecting 16/32 bit DLLs Pin
Victor Boctor12-Dec-02 20:05
Victor Boctor12-Dec-02 20:05 
GeneralRe: Detecting 16/32 bit DLLs Pin
Roman Fadeyev12-Dec-02 23:55
Roman Fadeyev12-Dec-02 23:55 
GeneralRe: Detecting 16/32 bit DLLs Pin
Dudi Avramov15-Dec-02 2:12
Dudi Avramov15-Dec-02 2:12 

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.