Click here to Skip to main content
15,888,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Top margin in CEditView Pin
Richard_483-Mar-06 11:35
Richard_483-Mar-06 11:35 
GeneralRe: Top margin in CEditView Pin
Hugh S. Myers3-Mar-06 12:42
Hugh S. Myers3-Mar-06 12:42 
GeneralRe: Top margin in CEditView Pin
Hugh S. Myers3-Mar-06 13:06
Hugh S. Myers3-Mar-06 13:06 
AnswerRe: Top margin in CEditView Pin
Hugh S. Myers5-Mar-06 6:55
Hugh S. Myers5-Mar-06 6:55 
QuestionMFC & inner class question... Pin
Alberto_Canabal3-Mar-06 7:30
Alberto_Canabal3-Mar-06 7:30 
AnswerRe: MFC & inner class question... Pin
Blake Miller3-Mar-06 7:59
Blake Miller3-Mar-06 7:59 
GeneralRe: MFC & inner class question... Pin
Alberto_Canabal6-Mar-06 0:06
Alberto_Canabal6-Mar-06 0:06 
GeneralRe: MFC & inner class question... Pin
Blake Miller6-Mar-06 5:36
Blake Miller6-Mar-06 5:36 
If you really want to hide the internals of your class, then
make a forward declaration like this:

class MyInnerClass;

then use it privately in some other class:

class SomeOtherClass
{
...
private:
MyInnerClass* m_MyInnerClass;
...
};

and then declare the MyInnerClass in the source file along with its implementation as the same source file as SomeOtherClass and only SomeOtherClass will ever be able to actually 'use' the MyInnerClass.

Or, just declaring the pointer to it like the original example, that pretty much prevents ANYTHING else from using the MyInnerClass anyhow.



People that start writing code immediately are programmers (or hackers), people that ask questions first are Software Engineers - Graham Shanks
AnswerRe: MFC & inner class question... Pin
Chris Losinger3-Mar-06 8:21
professionalChris Losinger3-Mar-06 8:21 
GeneralRe: MFC & inner class question... Pin
Alberto_Canabal6-Mar-06 0:02
Alberto_Canabal6-Mar-06 0:02 
Question[Message Deleted] Pin
johni__boy3-Mar-06 6:33
johni__boy3-Mar-06 6:33 
AnswerRe: a problem by linked list ; help needed Pin
David Crow3-Mar-06 6:38
David Crow3-Mar-06 6:38 
GeneralRe: a problem by linked list ; help needed Pin
johni__boy3-Mar-06 13:30
johni__boy3-Mar-06 13:30 
GeneralRe: a problem by linked list ; help needed Pin
IdUnknown3-Mar-06 17:56
IdUnknown3-Mar-06 17:56 
AnswerRe: a problem by linked list ; help needed Pin
basementman3-Mar-06 7:24
basementman3-Mar-06 7:24 
AnswerRe: a problem by linked list ; help needed Pin
Stephen Hewitt3-Mar-06 20:19
Stephen Hewitt3-Mar-06 20:19 
QuestionProblem with registering ITTAPIEventNotification interface Pin
bisvl3-Mar-06 5:57
bisvl3-Mar-06 5:57 
QuestionHow do make a FormView without Doc/View Pin
Jethro633-Mar-06 5:49
Jethro633-Mar-06 5:49 
QuestionRe: How do make a FormView without Doc/View Pin
David Crow3-Mar-06 6:07
David Crow3-Mar-06 6:07 
AnswerRe: How do make a FormView without Doc/View Pin
Jethro633-Mar-06 7:15
Jethro633-Mar-06 7:15 
QuestionRe: How do make a FormView without Doc/View Pin
David Crow3-Mar-06 7:20
David Crow3-Mar-06 7:20 
AnswerRe: How do make a FormView without Doc/View Pin
Jethro633-Mar-06 8:36
Jethro633-Mar-06 8:36 
AnswerRe: How do make a FormView without Doc/View Pin
Office Lineman3-Mar-06 14:07
Office Lineman3-Mar-06 14:07 
GeneralRe: How do make a FormView without Doc/View Pin
Jethro6328-Dec-06 5:05
Jethro6328-Dec-06 5:05 
GeneralRe: How do make a FormView without Doc/View Pin
permutations19-Apr-10 13:07
permutations19-Apr-10 13:07 

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.