Solved

Overriding CFileDialog members

Posted on 1997-09-16
1
258 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
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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

829 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