custom control crashes dialog
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
INT_PTR nResponse = dlg.DoModal(); return -1 if when i add a custom control using resource editor. how can i solve this?
-
INT_PTR nResponse = dlg.DoModal(); return -1 if when i add a custom control using resource editor. how can i solve this?
Probably the window class for custom control is not registered before DoModal call. Are you trying to call RegisterClass in OnInitDialog? Tomasz Sowinski -- http://www.shooltz.com
Alika masiaka!