Click here to Skip to main content
15,898,923 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: if (23 == x) or if (x == 23) Pin
grigsoft1-Nov-05 3:16
grigsoft1-Nov-05 3:16 
QuestionHow to convert textfile into variables and arrays? Pin
jedenddhsakjldf1-Nov-05 2:00
jedenddhsakjldf1-Nov-05 2:00 
QuestionRe: How to convert textfile into variables and arrays? Pin
David Crow1-Nov-05 2:25
David Crow1-Nov-05 2:25 
AnswerRe: How to convert textfile into variables and arrays? Pin
kakan1-Nov-05 19:22
professionalkakan1-Nov-05 19:22 
QuestionStuck again... Pin
jedenddhsakjldf7-Nov-05 13:29
jedenddhsakjldf7-Nov-05 13:29 
AnswerRe: Stuck again... Pin
kakan7-Nov-05 21:02
professionalkakan7-Nov-05 21:02 
GeneralRe: Stuck again... Pin
jedenddhsakjldf8-Nov-05 9:21
jedenddhsakjldf8-Nov-05 9:21 
GeneralRe: Stuck again... Pin
kakan8-Nov-05 20:47
professionalkakan8-Nov-05 20:47 
Shhh, nothing else than english here, else the others will be offended. Wink | ;)

It doesn't matter to me where people come from. I think that's a very good thing with this place. As long as people is able to explain their problem(s) in english, it's OK.

Now, regarding your problem, I'm a bit on thin ice here.

The way I would handle scrollbars is the way I told you before: In the properties of your dialog, click that you want scrollbars. Then use the Class Wizard to create member variables to the scrollbars.

Then you will have (in this case) two member variables (in your dialog class) of the type CScrollBar. Just use them.
And if you want some special handling, then subclass the CScrollBar class.
(class MyCScrollBar : CScrollBar)

Then replace (in your dialog class and in the h-file of your dialog class) all references to CScrollBar with MyCScrollBar.
And that's it.

As far as I can see, you are using tis construct:
CScrollHor::CScrollHor(CWnd* pParent /*=NULL*/)
: CDialog(CScrollHor::IDD, pParent)

I think the base class should be CScrollBar.

And if you do it "my" way, then your scrollbar classes will get into the message map. I think that's your problem now, your classes doesn't get any Windows messages, and that's why they doesn't work.

I've learnt one big lesson during the years I've been coding for Windows, and it is:
Follow the rules!!!

There (normally) is other ways to do it, but they will:
A.
Make you spend forever to get it working.
B.
Make your program unneccesary complex.

(The problem, as a beginner, is to find out what the rules are...)

Good luck.
Kakan

GeneralRe: Stuck again... Pin
kakan8-Nov-05 21:38
professionalkakan8-Nov-05 21:38 
Question[Message Deleted] Pin
BeautyLord31-Oct-05 23:38
BeautyLord31-Oct-05 23:38 
AnswerRe: how about your hands in here? Pin
toxcct1-Nov-05 0:07
toxcct1-Nov-05 0:07 
AnswerRe: how about your hands in here? Pin
#realJSOP1-Nov-05 1:56
professional#realJSOP1-Nov-05 1:56 
QuestionImages from an internet explorer images Pin
ThG6431-Oct-05 23:28
ThG6431-Oct-05 23:28 
AnswerRe: Images from an internet explorer images Pin
Maximilien1-Nov-05 2:23
Maximilien1-Nov-05 2:23 
GeneralRe: Images from an internet explorer images Pin
David Crow1-Nov-05 2:31
David Crow1-Nov-05 2:31 
GeneralRe: Images from an internet explorer images Pin
ThG642-Nov-05 7:58
ThG642-Nov-05 7:58 
Questionhow to get IWebbrowser2 by using HWND? Pin
yj31-Oct-05 22:41
yj31-Oct-05 22:41 
AnswerRe: how to get IWebbrowser2 by using HWND? Pin
yj2-Nov-05 21:38
yj2-Nov-05 21:38 
QuestionBinary files again... Pin
Aqueel31-Oct-05 20:35
Aqueel31-Oct-05 20:35 
AnswerRe: Binary files again... Pin
kakan31-Oct-05 21:22
professionalkakan31-Oct-05 21:22 
AnswerRe: Binary files again... Pin
Aqueel31-Oct-05 23:11
Aqueel31-Oct-05 23:11 
GeneralRe: Binary files again... Pin
kakan1-Nov-05 0:00
professionalkakan1-Nov-05 0:00 
AnswerRe: Binary files again... Pin
kakan1-Nov-05 0:23
professionalkakan1-Nov-05 0:23 
QuestionHow to join a computer to the domain?? Pin
Rick Pan31-Oct-05 19:46
Rick Pan31-Oct-05 19:46 
QuestionTransparent image Pin
samira forooghi31-Oct-05 19:15
samira forooghi31-Oct-05 19:15 

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.