Git Product home page Git Product logo

customfiledialog's People

Contributors

dmihailescu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

customfiledialog's Issues

How can I get the count of selected items?

I'll use your CustomFileDialog in a project, but I need to get the total selected items in the listview.

I'm trying with this:

var count = NativeMethods.SendMessage(new HandleRef(this, _hListViewPtr), (uint)0x1004, IntPtr.Zero, IntPtr.Zero);

But count is always zero.

urgly old style dialog

The style changes to the old ugly style if APIs hook it. A modern interfaces are highly recommended.

extension not shown when dialog is openend maximized

if you open the openFileDialog, not maximized, the extension is added to the right. Then maximize it by double clicking the title bar. Everything resizes ok.

Then press cancel.

Then open the dialog again, it will automatically open again maximized. But now the extension will not be added.

I know nothing about windows messages, but:

I see that in maximized case the WM_SHOWWINDOW in WholeDialogWrapper WndProc does not arrive. Therefore Initcontrol is not called.

I'added:

                case Msg.WM_PAINT:
                    if (!mInitializated)
                        InitControls();
                    break;

now it works

Help with multi file selection

Hi! I need to add the muti selection option. What I did is:

((OpenFileDialog)_MSdialog).Multiselect = this.MultiSelect;

And it is working, but I cannot get the list of selected files when there are 8 or more selected files:

case (uint)DialogChangeStatus.CDN_SELCHANGE:
    StringBuilder filePath = new StringBuilder(256);
    NativeMethods.SendMessage(new HandleRef(this, NativeMethods.GetParent(Handle)), (uint)DialogChangeProperties.CDM_GETFILEPATH, (IntPtr)256, filePath);
    if(_CustomCtrl != null)
    {
        if(_CustomCtrl.MultiSelect)
        {
            // filePath is empty if 8+ files are selected

I've tried with a bigger buffer;

StringBuilder filePath = new StringBuilder(8192);

Or even higher, but I have the same result, an empty string.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.