Article View: comp.os.ms-windows.programmer.tools.mfc
Article #77Re: Controls in non-dialog (mfc)
From: Blake Kadatz
Date: Tue, 09 Apr 1996 21:12
Date: Tue, 09 Apr 1996 21:12
21 lines
1536 bytes
1536 bytes
Steve Jones wrote: > > How in MFC does one go about embedding a control within a > window that is not a dialog box? For example, I can > construct and Create() a CEdit object within a CView derived > class, but nothing (apparently) happens. I knew when I > tried it something wasn't quite right; I wasn't sure what to > use for the nID. Is it necessary to use a resource? The simplest answer to this is of course to derive your view from CFormView, then (if you used AppWizard to generate your code) change around the MYAPP_FORM dialog template to add your CEdit control. Of course, if you really do need the CEdit control as a child of CView then you'll have to do a bit more hunting for this info. -- -------------------------------------------------------------------- Blake Kadatz phone: 604-420-3931 BitMotion Software Inc. fax: 604-420-3921 304 - 7321 Halifax Street mailto:blake_kadatz@mindlink.bc.ca Burnaby, B.C., Canada V5A 4R5
Technical Details
Message-ID:
<316AD2B5.2528@mindlink.bc.ca>Path:
arc1-ca.pugleaf.net!news.mindlink.net!newsReferences:
<4js2mv$sk6@news.icubed.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.mindlink.net!news From: Blake Kadatz <blake_kadatz@mindlink.bc.ca> Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++ Subject: Re: Controls in non-dialog (mfc) Date: Tue, 09 Apr 1996 14:12:21 -0700 Organization: BitMotion Software Inc. Message-ID: <316AD2B5.2528@mindlink.bc.ca> References: <4js2mv$sk6@news.icubed.com> NNTP-Posting-Host: line108.nwm.mindlink.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.0 (Win16; I)