Click here to Skip to main content
15,916,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to add event handler for toolbar item in vc++.net Pin
dazinith13-Sep-02 5:26
dazinith13-Sep-02 5:26 
GeneralScrolling problem! Pin
jabbaj12-Sep-02 21:41
jabbaj12-Sep-02 21:41 
GeneralRe: Scrolling problem! Pin
Tomasz Sowinski13-Sep-02 0:42
Tomasz Sowinski13-Sep-02 0:42 
GeneralRe: Scrolling problem! Pin
jabbaj13-Sep-02 2:31
jabbaj13-Sep-02 2:31 
GeneralRe: Scrolling problem! Pin
Tomasz Sowinski13-Sep-02 2:38
Tomasz Sowinski13-Sep-02 2:38 
GeneralRe: Scrolling problem! Pin
jabbaj13-Sep-02 2:45
jabbaj13-Sep-02 2:45 
GeneralRe: Scrolling problem! Pin
Tomasz Sowinski13-Sep-02 2:50
Tomasz Sowinski13-Sep-02 2:50 
GeneralRe: Scrolling problem! Pin
jabbaj13-Sep-02 3:13
jabbaj13-Sep-02 3:13 
In my view class I have a OnVScroll handler.A part of this function is the following...

<br />
// CRichEditCtrl *re;<br />
//<br />
<br />
case SB_LINEUP:			<br />
{<br />
     if (CurPos <= 2*(total_height[pgnm] / lines_edit) - 1 )<br />
     {	<br />
	re->LineScroll(-1,0);<br />
        CurPos =0 ;<br />
        EnableScrollBar(SB_VERT, ESB_DISABLE_LTUP);<br />
     }<br />
     else<br />
     {	<br />
	re->LineScroll(-1,0);<br />
	CurPos -= total_height[pgnm] / lines_edit ;<br />
     }<br />
    SetScrollPos(SB_VERT, CurPos);<br />
    PrevPos = CurPos;<br />
}<br />
break;


This works fine when scrolling vertically!

All the LineScroll function does is scroll the contents of the edit control
1 line up when the user clicks the top arrow of the vertical scrollbar in the Frame window.

When I try to do the same in the OnHScroll handler (respectively e.g. (SB_LINERIGHT)) and try to use the LineScroll function (e.g. re->LineScroll(0,-1)) then nothing happens.
This is my problem.

I do not scrollbars in the edit control because the buttons of the Tab are
on the bottom of the page and the horizontal edit scrollbar appear on top of them (as it should in the first place).

Hope this clears things a bit.
GeneralChanging Cursor Pin
suresh_sathya12-Sep-02 21:39
suresh_sathya12-Sep-02 21:39 
GeneralRe: Changing Cursor Pin
Eugene Pustovoyt12-Sep-02 22:07
Eugene Pustovoyt12-Sep-02 22:07 
GeneralRe: Changing Cursor Pin
jhwurmbach12-Sep-02 23:08
jhwurmbach12-Sep-02 23:08 
GeneralRe: Changing Cursor Pin
Tomasz Sowinski12-Sep-02 23:25
Tomasz Sowinski12-Sep-02 23:25 
GeneralTerminating a running process. Pin
abhinarulkar12-Sep-02 20:47
abhinarulkar12-Sep-02 20:47 
GeneralRe: Terminating a running process. Pin
Renjith Ramachandran13-Sep-02 0:54
Renjith Ramachandran13-Sep-02 0:54 
GeneralHTML-View Pin
Anonymous12-Sep-02 20:36
Anonymous12-Sep-02 20:36 
GeneralRe: HTML-View Pin
ColinDavies12-Sep-02 21:58
ColinDavies12-Sep-02 21:58 
GeneralRe: HTML-View Pin
Anonymous12-Sep-02 23:57
Anonymous12-Sep-02 23:57 
GeneralRe: HTML-View Pin
rrrado13-Sep-02 1:07
rrrado13-Sep-02 1:07 
GeneralRe: HTML-View Pin
Anonymous15-Sep-02 22:51
Anonymous15-Sep-02 22:51 
GeneralCDatabase and DSNs :-( Pin
Nish Nishant12-Sep-02 20:31
sitebuilderNish Nishant12-Sep-02 20:31 
GeneralRe: CDatabase and DSNs :-( Pin
Pavel Klocek12-Sep-02 21:07
Pavel Klocek12-Sep-02 21:07 
GeneralRe: CDatabase and DSNs :-( Pin
Nish Nishant12-Sep-02 21:12
sitebuilderNish Nishant12-Sep-02 21:12 
GeneralRe: CDatabase and DSNs :-( Pin
Pavel Klocek12-Sep-02 21:24
Pavel Klocek12-Sep-02 21:24 
GeneralRe: CDatabase and DSNs :-( Pin
Pavel Klocek12-Sep-02 21:32
Pavel Klocek12-Sep-02 21:32 
GeneralRe: CDatabase and DSNs :-( Pin
Nish Nishant12-Sep-02 21:46
sitebuilderNish Nishant12-Sep-02 21:46 

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.