
URGENT ! HELP NEWBIE plz - easy dialog question
thnx, I did it,
but it didnt work either.
I had another non-modal dialog belonging to my view (where it worked ! - the
code was 1:1, the only difference was that I have created a menu point for
the button in the other dialog before I created this button and used its
menu - ID ), took one button from there, copied it, and suddenly it worked,
dont ask me why, it did.
I think its something about the automatical number gathering in the
ID-resources.
anyway, thanks for help !
Andreas
Quote:
> No. Modal dialogs handle their child window events themselves. Either make
> it non-modal or have a call back function.
> : Hello, heres my problem:
> :
> : I have a dialog, call it from a view with .DoModal()
> : Now I have the routine handling a command button of the dialog in the
> view,
> : but its not being called. Why?
> : (the routine was insertet in class wizard, I just handle the
> : ID_name_of_the_button in CMyViewName).
> :
> : I tried to give the dialog a pointer to the view calling it with
> : CMyDialogClass myDialog(this);
> : It doesnt help either.
> :
> : How can my view receive the window message from the view; what am I
doing
> : wrong ?
> :
> : Help plz !!!
> :
> :
> :