Click here to Skip to main content
16,011,779 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to delete some columns in Open File Common Dialog ? Pin
22-Jan-01 20:32
suss22-Jan-01 20:32 
QuestionHow to put process when the dialog box is shown? Pin
22-Jan-01 15:26
suss22-Jan-01 15:26 
AnswerRe: How to put process when the dialog box is shown? Pin
David Fedolfi23-Jan-01 4:32
David Fedolfi23-Jan-01 4:32 
GeneralGeneral advise needed in handling/storing structured data Pin
Member 671822-Jan-01 13:44
Member 671822-Jan-01 13:44 
GeneralNeed some help with file listings Pin
22-Jan-01 10:32
suss22-Jan-01 10:32 
GeneralRe: Need some help with file listings Pin
Joan M22-Jan-01 12:47
professionalJoan M22-Jan-01 12:47 
GeneralRe: Need some help with file listings Pin
Simon Capewell23-Jan-01 1:55
Simon Capewell23-Jan-01 1:55 
GeneralRe: Need some help with file listings Pin
Joan M24-Jan-01 7:13
professionalJoan M24-Jan-01 7:13 
First of all let me remember you that I'm a novice and that surely will be more effective ways of doing this.

After that little note, here's the code that I commented you:

BOOL CNavegadorRefsDlg::OnInitDialog()
{
CDialog::OnInitDialog();

CString csFullPath = "";
int iLength = 0;

csFullPath.Format("%s\\%s.%s",
this->m_csPath,
this->m_csWildCardName,
this->m_csWildCardExt);

iLength = csFullPath.GetLength();

this->DlgDirList(csFullPath.GetBuffer(iLength),
IDC_lbRefs,
NULL,
NULL
);

return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}

As you can see the code is implemented in the OnInitDialog f(x), but it can be placed where you need it.

regards, and I expect this helps.
GeneralMultiple Frame Question Pin
22-Jan-01 6:41
suss22-Jan-01 6:41 
QuestionWhat about a WTL UI Project? Pin
Maxime Labelle22-Jan-01 3:53
Maxime Labelle22-Jan-01 3:53 
GeneralWinSock Samples Pin
Gerry22-Jan-01 3:39
Gerry22-Jan-01 3:39 
GeneralDrives, dir and files .... Pin
22-Jan-01 3:22
suss22-Jan-01 3:22 
GeneralPropertysheets and toolbars Pin
22-Jan-01 2:44
suss22-Jan-01 2:44 
GeneralRe: Propertysheets and toolbars Pin
Frank Deo22-Jan-01 7:06
Frank Deo22-Jan-01 7:06 
GeneralRe: Propertysheets and toolbars Pin
22-Jan-01 5:34
suss22-Jan-01 5:34 
GeneralWinSock -> ARGH Pin
22-Jan-01 1:59
suss22-Jan-01 1:59 
GeneralWinSock -> ARGH Pin
22-Jan-01 1:59
suss22-Jan-01 1:59 
GeneralLoading Driver Pin
22-Jan-01 0:57
suss22-Jan-01 0:57 
GeneralLoading Driver Pin
22-Jan-01 0:57
suss22-Jan-01 0:57 
GeneralService Pack 4 crash Pin
duongnt21-Jan-01 23:36
duongnt21-Jan-01 23:36 
GeneralRe: Service Pack 4 crash Pin
belzu21-Jan-01 23:58
belzu21-Jan-01 23:58 
GeneralMy browser... doesn't work Pin
Tom K21-Jan-01 21:43
Tom K21-Jan-01 21:43 
GeneralArgument to WinMain Pin
21-Jan-01 20:44
suss21-Jan-01 20:44 
GeneralCEdit & CDialog Pin
gas21-Jan-01 11:13
gas21-Jan-01 11:13 
GeneralRe: CEdit & CDialog Pin
Masoud Samimi21-Jan-01 11:39
Masoud Samimi21-Jan-01 11:39 

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.