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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Accept Files" Option for MFC App... how to use?

Status
Not open for further replies.

Insider1984

Technical User
Feb 15, 2002
132
US
What I would like to do is in addition to a person being able to browse for a file that they can just drag the file into the edit box. Then the edit box which has a member varible "m_cstrFile" would be updated and ready for my program.

I see the Accept files option which does in fact seem like it's doing the right thing but I assume I'll need some code that tells the program what to do with this file.

My question is:

Do i put this code inside my void CInputs::OnChangeFilein() function?

What do I need to add in order for the file name to be set to m_cstrFile?

Thanks for your help as always.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top