Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASSERT(ContinueModal())

Status
Not open for further replies.

Nosferatu

Programmer
Jun 9, 2000
412
RO
Hello...

I wonder if anybody can help me on this one...
I am creating a fancy tree control, like the one used in property pages in win2000 and XP - click on a tree leaf and a combo box displays, for example.


First of all, I know I might be reinventing the wheel here, but I really can't tell what classes to use to obtain those prop pages...

But anyway... I derived my own control from CComboBox and called it CDynamicCombo. Everything works just fine, until I violently change the tasks using alt+tab and the combo is in its drop-down state.
The programs just asserts in WinCore at the above line.

I did overriden ContinueModal, but I am not sure what I should do there. I tried to return IsWindowVisible status but I don't get the expected behavior.

Now, I am sure that there is an obvious solution to this. Can anybody help?
Thanks! [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
errr.... I just found out that this seems to happen only in the... debug version...

I suspect that the message flow in the debug version is somewhat altered and the control gets the messages too late. But anyway, if so, this could happen in the release version too,right?
...

And I found what was happening!

the control was displayed and then RunModalLoop got called. After exiting the modal loop, I was not destroying the control, causing windows to send messages to it...

But anyway, now the program crashes in ComCTL32, also only in Debug mode, so the problem is not completely solved... [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top