Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Close modeless dialog during OnInitDialog() Pin
Michael Dunn13-Mar-06 11:12
sitebuilderMichael Dunn13-Mar-06 11:12 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Doug Allen13-Mar-06 11:35
Doug Allen13-Mar-06 11:35 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Stephen Hewitt13-Mar-06 11:47
Stephen Hewitt13-Mar-06 11:47 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Doug Allen13-Mar-06 11:57
Doug Allen13-Mar-06 11:57 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Stephen Hewitt13-Mar-06 12:39
Stephen Hewitt13-Mar-06 12:39 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Doug Allen13-Mar-06 12:53
Doug Allen13-Mar-06 12:53 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Stephen Hewitt13-Mar-06 12:56
Stephen Hewitt13-Mar-06 12:56 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Doug Allen13-Mar-06 13:06
Doug Allen13-Mar-06 13:06 
Steve,
Both assertion errors are related to the handle being null (line 207 of winocc.cpp - ASSERT(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL)); and line 105 of afxwin2.inl - { ASSERT(::IsWindow(m_hWnd)); ::GetWindowRect(m_hWnd, lpRect); }). This means the handle shouldn't be null - caused by the destroywindow(). So, what is the correct call for the closing modeless during OnInitDIalog()?

Thanks,
Doug
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Stephen Hewitt13-Mar-06 13:09
Stephen Hewitt13-Mar-06 13:09 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Doug Allen13-Mar-06 13:15
Doug Allen13-Mar-06 13:15 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Stephen Hewitt13-Mar-06 16:04
Stephen Hewitt13-Mar-06 16:04 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Doug Allen14-Mar-06 2:34
Doug Allen14-Mar-06 2:34 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Stephen Hewitt14-Mar-06 17:42
Stephen Hewitt14-Mar-06 17:42 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Doug Allen15-Mar-06 2:53
Doug Allen15-Mar-06 2:53 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Ryan Binns13-Mar-06 17:13
Ryan Binns13-Mar-06 17:13 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Doug Allen14-Mar-06 2:44
Doug Allen14-Mar-06 2:44 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Ryan Binns14-Mar-06 2:53
Ryan Binns14-Mar-06 2:53 
GeneralRe: Close modeless dialog during OnInitDialog() Pin
Doug Allen14-Mar-06 3:07
Doug Allen14-Mar-06 3:07 
QuestionReferring to class method in report Pin
J-Dogg30613-Mar-06 9:41
J-Dogg30613-Mar-06 9:41 
AnswerRe: Referring to class method in report Pin
David Crow13-Mar-06 9:48
David Crow13-Mar-06 9:48 
GeneralRe: Referring to class method in report Pin
J-Dogg30613-Mar-06 10:29
J-Dogg30613-Mar-06 10:29 
GeneralRe: Referring to class method in report Pin
David Crow13-Mar-06 10:56
David Crow13-Mar-06 10:56 
Questionreconize a shorcut or hypertext on file Pin
mk_le13-Mar-06 9:14
mk_le13-Mar-06 9:14 
QuestionRe: reconize a shorcut or hypertext on file Pin
David Crow13-Mar-06 9:37
David Crow13-Mar-06 9:37 
AnswerRe: reconize a shorcut or hypertext on file Pin
mk_le13-Mar-06 9:59
mk_le13-Mar-06 9:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.