Re: Modal DialogBox problum, Help me
 
Premanshu wrote:
i did, but i m not getting the solution,
actually in my application ThreshHold DlgBox opens on a button click
and it is used for some calculation now i want to use as DialogBar ,
means i want to attach it with my Parent Window  so It shud show in
startup .     i m using create() function but  asertion failed error
occures  . so plz tel me what to do?
with regards
Premanshu Sinha
Premanshu:
Nobody can help you if you do not show some code and describe exactly 
what happens. Assertion failures are the easiest problem to deal with, 
because if you look at the code you will see what triggered the 
assertion, and if you follow the call stack back to your own code you 
can see what you did to cause it.
I recently used a CDialogBar for the first time, and it was extremely 
easy. I did not create my own CDialogBar derived class, but rather 
handled the messages in the main frame. But, alternatively, you can use 
a derived CDialogBar if you wish.
You cannot use your existing CDialog-derived object as the dialog bar, 
because CDialogBar is not derived from CDialog (it is derived from 
CControlBar). If I were you, I would create a new class derived from 
CDialogBar, add handlers, and then cut/paste code from your existing dialog.
David Wilkinson