Re: Passing array argument to constructor
- From: Stuart Redmann <DerTopper@xxxxxx>
- Date: Tue, 27 Nov 2007 16:21:54 +0100
dev_15 wrote:
Hi Stuart, thanks for that, i need to use method 2 you suggested as
CReportScreen is a modal dialog. I'm not that experienced on MFC
so how do i pass the the array via lpCreateParams to the CReportScreen
object and where do i pick it up inside the dialog. Basically i'm
sending some
logo bitmap handles that have already been loaded in my main screen
to
a modal dialog (didn't want to unload and reload same images).
Sorry, I confused two concepts here. The CREATESTRUCT is only used by the document/view architecture (where your CView derived classes must have a default constructor because it is the CDocTemplate class that creates your view class).
Plain old dialogs are usually created by your code, so you can use whatever constructors you like (in contrast to views, dialogs do not have to use the DECLARE_DYNCREATE macro).
Please consider all I have written in the last posting non-sense. All you have to do is to swap the parameters of your constructor, so that the pointer to the parent window is the second parameter.
Regards,
Stuart
.
- References:
- Re: Passing array argument to constructor
- From: Stuart Redmann
- Re: Passing array argument to constructor
- From: dev_15
- Re: Passing array argument to constructor
- Prev by Date: Re: Serial Communication
- Next by Date: Re: Canceling of the function execution
- Previous by thread: Re: Passing array argument to constructor
- Index(es):
Relevant Pages
|