Solved

Overriding CFileDialog members

Posted on 1997-09-16
1
264 Views
Last Modified: 2008-03-03
I want to derive a class from CFileDialog so I can override the function that handles the "New folder" button.  What function is that, or what is the message that the button sends?  I cannot figure out exactly what to override.  (The virtual functions listed as overrideable do not include this.)
0
Comment
Question by:DenMan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 10

Accepted Solution

by:
RONSLOW earned 10 total points
ID: 1169854
Handling the button would not be enough, as you can also create a new folder by right-clicking in the list control in the file open dialog.

I don't believe it is possible to trap this action anyway.

However, you can trap other events (like opening a folder or selecting a file) and can turn off controls all by writing an explorer-style hook procedure.

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question