|
-
April 19th, 1999, 06:49 AM
#1
Subclassed CEdit - Create/OnCreate not called
Hello,
C_SpinEdit is a CEdit subclass for usage in a dialog. I've created the private member:
C_SpinEdit C_TestDlg::m_seTest;
In
C_TestDlg::OnInitDialog()
the control member is 'registered'.
m_seValue.SubclassDlgItem(IDC_SPINEDIT, this);
Somehow I can't hook up on the ::Create() virtual nor the OnCreate message handler.
How should the subclassed edit control know when to perform initialization???
Martin van den Berg
High Tech Automation
The Netherlands
[email protected]
-
April 19th, 1999, 07:02 AM
#2
Re: Subclassed CEdit - Create/OnCreate not called
Override PreSubclassWindow, instead overiding the OnCreate function.
Sincerely, Mihai
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|