Click here to Skip to main content
15,899,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Clicking Anywhere in Dialog Always Automatically Closes IT Pin
Shog91-Feb-05 10:46
sitebuilderShog91-Feb-05 10:46 
GeneralRe: Clicking Anywhere in Dialog Always Automatically Closes IT Pin
PJ Arends1-Feb-05 10:28
professionalPJ Arends1-Feb-05 10:28 
GeneralRe: Clicking Anywhere in Dialog Always Automatically Closes IT Pin
Shog91-Feb-05 10:38
sitebuilderShog91-Feb-05 10:38 
GeneralRe: Clicking Anywhere in Dialog Always Automatically Closes IT Pin
Shog91-Feb-05 10:35
sitebuilderShog91-Feb-05 10:35 
GeneralRe: Clicking Anywhere in Dialog Always Automatically Closes IT Pin
DiMats1-Feb-05 10:51
DiMats1-Feb-05 10:51 
GeneralModem Reset Pin
Andrey Del Pozo1-Feb-05 7:38
Andrey Del Pozo1-Feb-05 7:38 
GeneralRe: Modem Reset Pin
Tom Wright1-Feb-05 11:02
Tom Wright1-Feb-05 11:02 
GeneralCharacter Segmentation Help Pin
monageasmear1-Feb-05 6:28
monageasmear1-Feb-05 6:28 
Generalminimise Lock and Unlock operation Pin
mk_le1-Feb-05 5:23
mk_le1-Feb-05 5:23 
GeneralRe: minimise Lock and Unlock operation Pin
basementman1-Feb-05 6:34
basementman1-Feb-05 6:34 
GeneralRe: minimise Lock and Unlock operation Pin
David Crow1-Feb-05 10:13
David Crow1-Feb-05 10:13 
QuestionHow do I dynamically settitle of a page in a property sheet? Pin
akhildhanuka1-Feb-05 5:12
akhildhanuka1-Feb-05 5:12 
AnswerRe: How do I dynamically settitle of a page in a property sheet? Pin
Tom Wright1-Feb-05 6:08
Tom Wright1-Feb-05 6:08 
GeneralRe: How do I dynamically settitle of a page in a property sheet? Pin
karam_chand1-Feb-05 7:17
karam_chand1-Feb-05 7:17 
AnswerRe: How do I dynamically settitle of a page in a property sheet? Pin
karam_chand1-Feb-05 10:31
karam_chand1-Feb-05 10:31 
GeneralInserting an image into a view Pin
José Luis Sogorb1-Feb-05 5:08
José Luis Sogorb1-Feb-05 5:08 
GeneralRe: Inserting an image into a view Pin
Antti Keskinen1-Feb-05 7:55
Antti Keskinen1-Feb-05 7:55 
GeneralRe: Inserting an image into a view Pin
José Luis Sogorb1-Feb-05 23:03
José Luis Sogorb1-Feb-05 23:03 
Generalint nResponse = dlg.DoModal(); Visual C++ 6.0 Pin
Close Network1-Feb-05 3:44
Close Network1-Feb-05 3:44 
I am creating a dialogbox(modal) from inside my parent dialog. On this dialog, there is a Finish button whose id = IDC_BUTTON6. When I click this button I would like to call my parent dialog's apply(); method.
However I don't know how to refer to IDC_BUTTON6 of Popup.cpp from inside the Parent.class.
Should I write something like;

if (nResponse == IDC_BUTTON6) which is erroneous,

or like

if (nResponse == Popup.IDC_BUTTON6) which is also erroneous.

How should I solve this simple case ?

Parent.cpp has the following ;

void SomeMethod()
{
myPopupDialog dlg(propertySheet->hRepository, propertySheet->pszObjectDN, &csName);

int nResponse = dlg.DoModal();

if (nResponse == IDC_BUTTON6)// where the error occurs
{
apply();
}

}
void apply(void)
{
//do something
}

*********************

Popup.cpp has the followind code;

void ColdGroupPopup::OnFinish() //Finish button's id = IDC_BUTTON6
{

}

Nice Özgürce
GeneralRe: int nResponse = dlg.DoModal(); Visual C++ 6.0 Pin
Michael Dunn1-Feb-05 3:58
sitebuilderMichael Dunn1-Feb-05 3:58 
GeneralRe: int nResponse = dlg.DoModal(); Visual C++ 6.0 Pin
Close Network1-Feb-05 4:29
Close Network1-Feb-05 4:29 
GeneralAVL Tree insertion algorithm Pin
Sarath C1-Feb-05 3:27
Sarath C1-Feb-05 3:27 
GeneralHooked MDIChild window ---> problem Pin
Ro_land1-Feb-05 3:15
Ro_land1-Feb-05 3:15 
GeneralRe: Hooked MDIChild window ---> problem Pin
Roger Allen1-Feb-05 6:10
Roger Allen1-Feb-05 6:10 
GeneralRe: Hooked MDIChild window ---> problem Pin
Ro_land2-Feb-05 19:19
Ro_land2-Feb-05 19: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.