Click here to Skip to main content
15,920,217 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to catch event for dynamic Controls Pin
Maximilien15-Mar-05 15:02
Maximilien15-Mar-05 15:02 
GeneralRe: How to catch event for dynamic Controls Pin
Max Santos16-Mar-05 0:11
Max Santos16-Mar-05 0:11 
AnswerRe: How to catch event for dynamic Controls Pin
namaskaaram15-Mar-05 18:43
namaskaaram15-Mar-05 18:43 
AnswerRe: How to catch event for dynamic Controls Pin
Cedric Moonen15-Mar-05 20:23
Cedric Moonen15-Mar-05 20:23 
GeneralRe: How to catch event for dynamic Controls Pin
i2c17-Mar-05 4:24
i2c17-Mar-05 4:24 
GeneralAuto-fill style listctrl question Pin
djtommye15-Mar-05 13:35
djtommye15-Mar-05 13:35 
GeneralAdding mfc variable .. Pin
vchedalla15-Mar-05 13:05
vchedalla15-Mar-05 13:05 
GeneralRe: Adding mfc variable .. Pin
Christian Graus15-Mar-05 13:30
protectorChristian Graus15-Mar-05 13:30 
Oh, man.

I suggest buying a book like 'teach youself C++ in 24 hours', or 'C++ for dummies'. For every thing like this you get answered on a forum, there will be 5 things you never think to ask, and you need to know.

In your header file, put the member variable declaration. If you look up from where you put it, the last one of these: public:, private:, protected:, will define the scope of the variable. Now you can use it within the class.

It's best to make your members private first, then expand the scope if you need to. It's also best not to make member variables public, that exposes implimentation details. Provide get and ( if warranted ) set methods instead.


Christian

I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
GeneralRe: Adding mfc variable .. Pin
vchedalla15-Mar-05 13:54
vchedalla15-Mar-05 13:54 
GeneralRe: Adding mfc variable .. Pin
Christian Graus15-Mar-05 14:04
protectorChristian Graus15-Mar-05 14:04 
GeneralRe: Adding mfc variable .. Pin
vchedalla15-Mar-05 18:24
vchedalla15-Mar-05 18:24 
GeneralRe: Adding mfc variable .. Pin
Christian Graus16-Mar-05 12:20
protectorChristian Graus16-Mar-05 12:20 
QuestionWhy do my icons look like crap on NT? Pin
Ian Bowler15-Mar-05 13:02
Ian Bowler15-Mar-05 13:02 
AnswerRe: Why do my icons look like crap on NT? Pin
Steve Mayfield15-Mar-05 13:39
Steve Mayfield15-Mar-05 13:39 
GeneralRe: Why do my icons look like crap on NT? Pin
Ian Bowler15-Mar-05 13:44
Ian Bowler15-Mar-05 13:44 
GeneralRe: Why do my icons look like crap on NT? Pin
Ian Bowler15-Mar-05 13:57
Ian Bowler15-Mar-05 13:57 
GeneralRe: Why do my icons look like crap on NT? Pin
Steve Mayfield15-Mar-05 15:01
Steve Mayfield15-Mar-05 15:01 
GeneralText Font Pin
Larsson15-Mar-05 12:51
Larsson15-Mar-05 12:51 
GeneralRe: Text Font Pin
Blake Miller15-Mar-05 12:53
Blake Miller15-Mar-05 12:53 
GeneralRe: Text Font Pin
Larsson15-Mar-05 20:56
Larsson15-Mar-05 20:56 
GeneralRe: Text Font Pin
jan larsen16-Mar-05 2:28
jan larsen16-Mar-05 2:28 
GeneralRe: Text Font Pin
Blake Miller16-Mar-05 4:13
Blake Miller16-Mar-05 4:13 
GeneralRe: Text Font Pin
Larsson16-Mar-05 13:11
Larsson16-Mar-05 13:11 
GeneralRe: Text Font Pin
jan larsen17-Mar-05 3:10
jan larsen17-Mar-05 3:10 
GeneralRe: Text Font Pin
Larsson17-Mar-05 13:10
Larsson17-Mar-05 13:10 

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.