How to call function of Dialog box from custom tree control class?
- From: "Klic" <rohit.turambekar@xxxxxxxxx>
- Date: 30 Nov 2006 05:53:44 -0800
Hi to all,
I am creating a dialog based apllication in MFC. In
which I have created my own Tree class derived from CTreeCtrl which
shows all the image files and folders(.bmp,.jpg etc).
Now my problem is when user selects the file from tree ctrl that
image should be displayed in the dialog box. I tried to call the
function of dialog box's ShowImages(CString strPath) from tree
controls OnSelectionChanged event handler function but it fails for
assertion at the time of
CClientDC dc(this); this function.
Tree is in the same dialog where i want show the Images.
Plz help me.
I m stuck with this problem for 2 days.
thx in advance,
Klic
.
- Follow-Ups:
- Re: How to call function of Dialog box from custom tree control class?
- From: Ajay Kalra
- Re: How to call function of Dialog box from custom tree control class?
- From: Tom Serface
- Re: How to call function of Dialog box from custom tree control class?
- From: David Ching
- Re: How to call function of Dialog box from custom tree control class?
- Prev by Date: Re: Memory problems (possibly very easy question)
- Next by Date: Re: How to call function of Dialog box from custom tree control class?
- Previous by thread: Place Dialog on second screen
- Next by thread: Re: How to call function of Dialog box from custom tree control class?
- Index(es):
Relevant Pages
|