Re: how we can generate CWnd * from Dialog ID(IDD_DIALOG1)
- From: raghunandan_1081@xxxxxxxxx
- Date: 27 Oct 2006 04:10:03 -0700
thnx for replying
but actually i want to invoke user
defined function corresponding Dialog Box IDD_DIALOG1 through
SendMessage() from another Dialog Class , there is no relationship
between these two dialog Class. So that i require a CWnd * of Dialog
Box IDD_DIALOG1 to invoke that user defined function
David Wilkinson wrote:
raghunandan_1081@xxxxxxxxx wrote:
Hi Guys, How r u, can you please tell me how we can generate CWnd *
from Dialog ID(IDD_DIALOG1) , I have used GetDlgItem() but this
function is for Window Control on Dialog Box not for Dialog ID. Please
tell me i am waiting for your reply.
raghunandan:
CWnd is the base class of CDialog.
So if you have a dialog class (derived from CDialog) associated with
your template, and have created the dialog using DoModal() or Create(),
then in any method of the dialog you can so
CWnd* pWnd = this;
David Wilkinson
.
- Follow-Ups:
- Re: how we can generate CWnd * from Dialog ID(IDD_DIALOG1)
- From: David Wilkinson
- Re: how we can generate CWnd * from Dialog ID(IDD_DIALOG1)
- References:
- how we can generate CWnd * from Dialog ID(IDD_DIALOG1)
- From: raghunandan_1081
- Re: how we can generate CWnd * from Dialog ID(IDD_DIALOG1)
- From: David Wilkinson
- how we can generate CWnd * from Dialog ID(IDD_DIALOG1)
- Prev by Date: Re: Project : error PRJ0050: Failed to register output.
- Next by Date: Re: how we can generate CWnd * from Dialog ID(IDD_DIALOG1)
- Previous by thread: Re: how we can generate CWnd * from Dialog ID(IDD_DIALOG1)
- Next by thread: Re: how we can generate CWnd * from Dialog ID(IDD_DIALOG1)
- Index(es):