Click here to Skip to main content
16,011,743 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Save & Load Pin
Christian Graus21-Jan-01 12:35
protectorChristian Graus21-Jan-01 12:35 
GeneralRe: Save & Load Pin
AlexMarbus21-Jan-01 12:42
AlexMarbus21-Jan-01 12:42 
GeneralRe: Save & Load Pin
22-Jan-01 2:17
suss22-Jan-01 2:17 
GeneralObjective Grid - Spin Control - Help!!! Pin
20-Jan-01 7:07
suss20-Jan-01 7:07 
GeneralOnKeyDown Pin
Sjoerd van Leent20-Jan-01 3:56
Sjoerd van Leent20-Jan-01 3:56 
GeneralRe: OnKeyDown Pin
20-Jan-01 4:21
suss20-Jan-01 4:21 
GeneralChild wizard that don't allow to access the controls of his parent dialog (How to avoid?) Pin
Joan M20-Jan-01 3:24
professionalJoan M20-Jan-01 3:24 
GeneralRe: Child wizard that don't allow to access the controls of his parent dialog (How to avoid?) Pin
AlexMarbus21-Jan-01 12:19
AlexMarbus21-Jan-01 12:19 
Actually, in the parent dialog you should know as little as possible from the child dialogs. In the same way, in the child dialogs, you should know as little as possible from your parent dialog, except the fact that it is a CWnd-derived class.

When you need to have access on the controls on the parent-dialog, you are not developing object-oriented.. which is your own choice ofcourse Wink | ;)

Maybe a better (read: more OO) way is to define a custom message (Let's say WM_DO_SUMPIN), send a message to your parent, and let him(/her?) do whatever is necessary.

#define WM_DO_SUMPIN WM_USER + 15 // Just some value

GetParent()->SendMessage(WM_DO_SUMPIN, wParam, lParam);

(In the parent's class: )
ON_MESSAGE(WM_DO_SUMPIN, SomeFunction);

void CParentClass::SomeFunction(WPARAM wParam, LPARAM lParam)
{
// We should do sumpin' here..
}

.. or do some good thinking why you actually want to do something with that control.

--
Alex Marbus
QuestionHow to get the "name -> WM_xxx" of a message if I have the numeric ID? Pin
Joan M20-Jan-01 0:58
professionalJoan M20-Jan-01 0:58 
AnswerRe: How to get the Pin
NormDroid20-Jan-01 1:45
professionalNormDroid20-Jan-01 1:45 
GeneralRe: How to get the Pin
Joan M20-Jan-01 1:54
professionalJoan M20-Jan-01 1:54 
GeneralRe: How to get the Pin
20-Jan-01 1:55
suss20-Jan-01 1:55 
GeneralRe: How to get the Pin
Joan M20-Jan-01 2:08
professionalJoan M20-Jan-01 2:08 
GeneralRe: How to get the Pin
AlexMarbus21-Jan-01 12:26
AlexMarbus21-Jan-01 12:26 
AnswerRe: How to get the Pin
Michael Dunn20-Jan-01 5:30
sitebuilderMichael Dunn20-Jan-01 5:30 
GeneralNetwork game Pin
20-Jan-01 0:54
suss20-Jan-01 0:54 
GeneralRe: Network game Pin
NormDroid20-Jan-01 1:39
professionalNormDroid20-Jan-01 1:39 
GeneralOpening the CD ROM drive Pin
Ashman20-Jan-01 0:47
Ashman20-Jan-01 0:47 
GeneralRe: Opening the CD ROM drive Pin
24-Jan-01 2:56
suss24-Jan-01 2:56 
GeneralSmall question about MFC\DIALOG Pin
Ahmad19-Jan-01 21:01
Ahmad19-Jan-01 21:01 
GeneralRe: Small question about MFC\DIALOG Pin
19-Jan-01 21:37
suss19-Jan-01 21:37 
GeneralRe: Small question about MFC\DIALOG Pin
Christian Graus19-Jan-01 23:09
protectorChristian Graus19-Jan-01 23:09 
QuestionDuplicate entries inside my std::map. Why? Pin
Alvaro Mendez19-Jan-01 10:48
Alvaro Mendez19-Jan-01 10:48 
AnswerRe: Duplicate entries inside my std::map. Why? Pin
Chris Losinger19-Jan-01 11:35
professionalChris Losinger19-Jan-01 11:35 
GeneralRe: Duplicate entries inside my std::map. Why? Pin
Alvaro Mendez22-Jan-01 5:54
Alvaro Mendez22-Jan-01 5:54 

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.