Message 1 of 5
Dialog with custom control failed!
Not applicable
04-16-2009
03:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Yesterday I failed to add a custom control to a new dialog -- it didn't work and didn't even show up. In debug mode,there was no problem with dialog constructor,but pDlg->doModal() was simply skipped and OnInitDialog() was also not called.
Then i had a test on an existing dialog, which had being working with no problem, by simply adding a new custom control into it. The same problem occured again. But if i remove the custom control and rebuild it, the dialog works fine!
Has anyone tried to add a custom control before? This custom control is a MFC based grid control, and i am using VS 2002.
Then i had a test on an existing dialog, which had being working with no problem, by simply adding a new custom control into it. The same problem occured again. But if i remove the custom control and rebuild it, the dialog works fine!
Has anyone tried to add a custom control before? This custom control is a MFC based grid control, and i am using VS 2002.