Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with CStdioFile Pin
Steve S22-Apr-04 1:53
Steve S22-Apr-04 1:53 
GeneralRe: Problem with CStdioFile Pin
jmkhael22-Apr-04 1:53
jmkhael22-Apr-04 1:53 
GeneralRe: Problem with CStdioFile Pin
RChin22-Apr-04 1:53
RChin22-Apr-04 1:53 
GeneralRe: Problem with CStdioFile Pin
Stojan7822-Apr-04 2:11
Stojan7822-Apr-04 2:11 
Generalgraphics in c/c++ Pin
kcal22-Apr-04 1:36
kcal22-Apr-04 1:36 
GeneralRe: graphics in c/c++ Pin
Ian Darling22-Apr-04 2:06
Ian Darling22-Apr-04 2:06 
GeneralChange Style subsequent on CSlideCtrl Pin
AnTri22-Apr-04 1:13
AnTri22-Apr-04 1:13 
GeneralProblem of setting size and position of scrollbar's thumb Pin
bg2sc22-Apr-04 1:06
bg2sc22-Apr-04 1:06 
Thank you for reading this.
Now I want to keep the height and position of vertical scrollbar's thumb all
the time,so I used thisFrown | :( m_ctrlTree' is a TreeListView control)
----------------------------
const int nBar = SB_VERT;
SCROLLINFO si = {0};
si.cbSize = sizeof(si);
si.fMask = SIF_ALL;
m_ctrlTree.GetScrollInfo(nBar, &si);
si.nMax = si.nPage * 2;
si.nPos = (int)si.nPage/2;
m_ctrlTree.SetScrollInfo(nBar, &si, TRUE);
-----------------------------
I placed that block in the 'OnPrePaint' event of the tree control and it really works,but
problem is that when resizing the TreeListView window or expanding a
node, it scrolls madly,perhaps always scrolls to the last record,this is not what I
want.

Is the calculate method right?And where should I place the
SetScrollInfo(nBar, &si, TRUE)to control the Thumb?

Best reguards.
de BG2SC

QuestionHow do i detect user inactivity ? Pin
rallister22-Apr-04 1:02
rallister22-Apr-04 1:02 
AnswerRe: How do i detect user inactivity ? Pin
jmkhael22-Apr-04 1:10
jmkhael22-Apr-04 1:10 
GeneralRe: How do i detect user inactivity ? Pin
rallister22-Apr-04 1:18
rallister22-Apr-04 1:18 
GeneralRe: How do i detect user inactivity ? Pin
jmkhael22-Apr-04 1:48
jmkhael22-Apr-04 1:48 
AnswerRe: How do i detect user inactivity ? Pin
David Crow22-Apr-04 2:19
David Crow22-Apr-04 2:19 
AnswerRe: How do i detect user inactivity ? Pin
hasansheik22-Apr-04 3:21
hasansheik22-Apr-04 3:21 
GeneralRe: How do i detect user inactivity ? Pin
V.22-Apr-04 3:28
professionalV.22-Apr-04 3:28 
AnswerRe: How do i detect user inactivity ? Pin
peterchen22-Apr-04 4:25
peterchen22-Apr-04 4:25 
AnswerRe: How do i detect user inactivity ? Pin
Rick York22-Apr-04 10:12
mveRick York22-Apr-04 10:12 
GeneralShell question (I Guess) Pin
Deian22-Apr-04 0:47
Deian22-Apr-04 0:47 
GeneralRe: Shell question (I Guess) Pin
_Magnus_22-Apr-04 1:00
_Magnus_22-Apr-04 1:00 
GeneralRe: Shell question (I Guess) Pin
Deian27-Apr-04 4:07
Deian27-Apr-04 4:07 
GeneralBizzare problem reading large number of files Pin
Raul00722-Apr-04 0:34
Raul00722-Apr-04 0:34 
GeneralRe: Bizzare problem reading large number of files Pin
jmkhael22-Apr-04 0:38
jmkhael22-Apr-04 0:38 
GeneralRe: Bizzare problem reading large number of files Pin
Raul00722-Apr-04 18:17
Raul00722-Apr-04 18:17 
GeneralClicking in Edit Box Creates Error.. Pin
AbinThomas22-Apr-04 0:22
AbinThomas22-Apr-04 0:22 
GeneralRe: Clicking in Edit Box Creates Error.. Pin
wb22-Apr-04 0:57
wb22-Apr-04 0:57 

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.