15 мая 2023 года "Исходники.РУ" отмечают своё 23-летие!
Поздравляем всех причастных и неравнодушных с этим событием!
И огромное спасибо всем, кто был и остаётся с нами все эти годы!

Главная Форум Журнал Wiki DRKB Discuz!ML Помощь проекту


CFileDialog problem (2nd part)

Martin Lacasse -- lacassem@berclain.com
Monday, April 29, 1996


Environment: Windows NT 3.51 and Visual C++ 2.1

Does anyone know if it's possible to refresh a CFileDialog automatically? I
need this because, when the dialog box is displayed, the directory content
may changes (some file may be deleted).

Thanks in advance!




----------------------------------------------------------------------
Martin Lacasse, analyst-prgm.     Berclain Group, Inc.
e-mail: lacassem@berclain.com     Development Group
Tel: (418) 656-0055 ext 1522      979, de Bourgogne, suite 220
Fax: (418) 656-6317               Sainte-Foy (QC) Canada, G1W 2L4




Grant Shirreffs Great Elk -- Grant.S@greatelk.co.nz
Wednesday, May 01, 1996


How about, use NT 4.0 or Windows 95?  The new GetOpenFileName and   
GetSaveFileName dialog boxes (which hide behind CFileDialog) are done   
through Explorer, and update automatically.

 ----------
From:  owner-mfc-l[SMTP:owner-mfc-l@netcom.com]
Sent:  Monday, 29 April 1996 19:49
To:  mfc-l
Cc:  cm; ml
Subject:  CFileDialog problem (2nd part)


Environment: Windows NT 3.51 and Visual C++ 2.1

Does anyone know if it's possible to refresh a CFileDialog automatically?   
I
need this because, when the dialog box is displayed, the directory   
content
may changes (some file may be deleted).

Thanks in advance!




 ----------------------------------------------------------------------
Martin Lacasse, analyst-prgm.     Berclain Group, Inc.
e-mail: lacassem@berclain.com     Development Group
Tel: (418) 656-0055 ext 1522      979, de Bourgogne, suite 220
Fax: (418) 656-6317               Sainte-Foy (QC) Canada, G1W 2L4





Gary Kohan -- garyk@po4.net.cho.ge.com
Thursday, May 02, 1996


If you're subclassing the dialog, you can try sending a WM_LBUTTONDOWN, then 
a WM_LBUTTONUP message to the OK button on the dialog.  You may have to 
clear out some controls (maybe use LB_RESETCONTENT) before sending the down 
and up msgs.

I've use this quite often with classes derived from CFileDialog under 
Windows NT 3.51 and Visual C++ 2.1.  Email me if you want a code frag.

Hope this helps,
G. Kohan
gary.kohan@cho.ge.com




| Вернуться в корень Архива |