Click here to Skip to main content
15,925,868 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Static Control Prob. Pls reply me Pin
Rajkumar R10-Jun-07 19:02
Rajkumar R10-Jun-07 19:02 
GeneralRe: Static Control Prob. Pls reply me Pin
TobetheWinner10-Jun-07 19:07
TobetheWinner10-Jun-07 19:07 
QuestionStatic Control Prob. Pls reply me Pin
TobetheWinner10-Jun-07 19:40
TobetheWinner10-Jun-07 19:40 
AnswerRe: Static Control Prob. Pls reply me Pin
Christian Graus10-Jun-07 20:16
protectorChristian Graus10-Jun-07 20:16 
QuestionMultithreaded download http files Pin
victording10-Jun-07 16:07
victording10-Jun-07 16:07 
QuestionAccessing the parent's data members Pin
Vancouver10-Jun-07 15:26
Vancouver10-Jun-07 15:26 
AnswerRe: Accessing the parent's data members Pin
Christian Graus10-Jun-07 16:29
protectorChristian Graus10-Jun-07 16:29 
GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 18:01
Vancouver10-Jun-07 18:01 
I tried this already before asking, but it causes an error, when assigning the address of the parent to the pointer. If ctl_MyControl is the member variable of the instance of the subclassed control, and Parent is defined in MyOwnCtl.h as

class Parent;

then

ctl_MyControl.Parent = this;

in the parent's OnInitDialog causes

error C2440: '=' : cannot convert from 'class CMyOwnDlg *const ' to 'class $S217 *'

However, if the pointer is defined (in the globals) as

CMyOwnDlg *Parent;

then

Parent = this;

works fine from OnInitDialog.
GeneralRe: Accessing the parent's data members Pin
Christian Graus10-Jun-07 18:16
protectorChristian Graus10-Jun-07 18:16 
GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 18:25
Vancouver10-Jun-07 18:25 
GeneralRe: Accessing the parent's data members Pin
Christian Graus10-Jun-07 18:46
protectorChristian Graus10-Jun-07 18:46 
GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 19:01
Vancouver10-Jun-07 19:01 
AnswerRe: Accessing the parent's data members Pin
Rajkumar R10-Jun-07 19:16
Rajkumar R10-Jun-07 19:16 
AnswerRe: Accessing the parent's data members Pin
John M. Drescher10-Jun-07 17:42
John M. Drescher10-Jun-07 17:42 
GeneralRe: Accessing the parent's data members Pin
Vancouver10-Jun-07 19:07
Vancouver10-Jun-07 19:07 
GeneralRe: Accessing the parent's data members Pin
John M. Drescher11-Jun-07 21:23
John M. Drescher11-Jun-07 21:23 
QuestionConstructors Pin
tom groezer10-Jun-07 11:57
tom groezer10-Jun-07 11:57 
AnswerRe: Constructors Pin
toxcct10-Jun-07 12:04
toxcct10-Jun-07 12:04 
GeneralRe: Constructors Pin
Stephen Hewitt11-Jun-07 18:40
Stephen Hewitt11-Jun-07 18:40 
AnswerRe: Constructors Pin
Rajkumar R10-Jun-07 19:34
Rajkumar R10-Jun-07 19:34 
AnswerRe: Constructors Pin
Stephen Hewitt11-Jun-07 18:41
Stephen Hewitt11-Jun-07 18:41 
QuestionWhat is in-class constant? Pin
tom groezer10-Jun-07 11:30
tom groezer10-Jun-07 11:30 
AnswerRe: What is in-class constant? Pin
Mark Salsbery10-Jun-07 11:50
Mark Salsbery10-Jun-07 11:50 
QuestionC++ gotchas Pin
tom groezer10-Jun-07 11:12
tom groezer10-Jun-07 11:12 
AnswerRe: C++ gotchas Pin
CPallini10-Jun-07 11:19
mveCPallini10-Jun-07 11:19 

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.