Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6810931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:15:56+00:00 2026-05-26T20:15:56+00:00

I have a simple mfc project built on a CDialog. I also have a

  • 0

I have a simple mfc project built on a CDialog. I also have a class I call CDroppable that inherits from CStatic with an added OnDropFiles()-function.

What I do is I add a normal CStatic to my dialog, add a control variable, then change the control variable in the .h-file of the dialog to be a CDroppable instead of CStatic (I think this is fairly standard). I also modify the Accept Files behavior to true for the CStatic.

In my opinion this should mean that if I drag a file over the dialog anywhere outside the accepting window I should get the “invalid” icon, and inside the accepting window I should be able to drop it. That is at least how it worked in VS2005.
However now in VS2010 I can’t get it to work. The entire application displays the invalid drag icon. I can set Accept Files on the dialog itself and it will accept files correctly, but I don’t want the entire dialog to accept files, I want CDroppable to accept files.

Is it some obvious thing I have missed to activate? Some setting that needs to be changed?

MFC, making simple things impossible ™

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:15:57+00:00Added an answer on May 26, 2026 at 8:15 pm

    Actually I found what was wrong.

    I had a group box around the droppable area to indicate where it was. This was obviously a stupid idea as even though I had set it to transparent which I assumed would be enough, it still was in the way of the droppable area. I had to set it to disabled and after that it magically worked.

    Sorry to take your time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a smallish C++ Linux project that accompanies our large C++/MFC Windows project.
I have a fairly simple MFC app that just defines its own sub-classes of
I have to program a simple threaded program with MFC/C++ for a uni assignment.
I have simple win service, that executes few tasks periodically. How should I pass
I have simple SSIS package which reads data from flat file and insert into
I have a simple MFC program which displays the progressbar..I used the below code
Language: Visual C++, MFC Environment: Visual Studio 2005 I have a dialog that requires
We have a monolithic MFC GUI app that is nearing the end of it's
I have a simple MFC MDI application, where there is main CFormView, in which
I have wrote a simple client that use TcpClient in dotnet to communicate. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.