Re: OnInitDialog() and edit control
Igor Tandetnik <[email protected]> Wed, 15 Aug 2012 11:31:22 -0400
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
On 8/15/2012 11:07 AM, timza1221 wrote:
> I have a variable for the edit control and the variable is connected to the dialog:
> BEGIN_DDX_MAP(CCWEditDlg)
> DDX_CONTROL(IDC_EDIT1, m_wndEdit)
> DDX_TEXT(IDC_EDIT1, m_sEditContents)
> END_DDX_MAP()
>
> My variable m_wndEdit is defined as this type:
> class CCmtEditControl : public CWindowImpl<CCmtEditControl, CEdit>
You need to call DoDataExchange(FALSE), somewhere near the top of
OnInitDialog. That's what walks the DDX map and acts on its entries.
--
Igor Tandetnik
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/