Windows 10: Default filename wrapped around in Windows IFileDialog

Discus and support Default filename wrapped around in Windows IFileDialog in Windows 10 Network and Sharing to solve the problem; When using the Windows IFileDialog interface to launch File browser dialog, I face an issue if the default filename provided exceeds certain number of... Discussion in 'Windows 10 Network and Sharing' started by Saket Sharad, Feb 13, 2020.

  1. Default filename wrapped around in Windows IFileDialog


    When using the Windows IFileDialog interface to launch File browser dialog, I face an issue if the default filename provided exceeds certain number of characters.

    The filename appears truncated, although it is simply wrapped around so that we can only see last few characters. It seems the issue lies with the Windows file browser dialog. Whenever the default filename provided exceeds 12-13 characters, it gets wrapped around.

    Has anyone encountered such an issue? Is there any workaround?

    OS detail:
    Windows Enterprise 10, Version 1709 OS Build 16299.1625

    Dialog snapshot:

    Default filename wrapped around in Windows IFileDialog d631d787-77ce-4395-88dc-e968c2684eaf?upload=true.jpg



    Code snippet shared below:

    This is the function that gets called from an MFC application when a button - "BrowseFile" is clicked.

    void CCustomFileBrowserNewDlg::OnBnClickedBrowseFile
    {
    IFileDialog* pfd = nullptr;
    IID id = CLSID_FileSaveDialog;

    const COMDLG_FILTERSPEC c_rgSaveTypes[] =
    {
    {L"Word Document *.doc", L"*.doc"},
    {L"Web Page *.htm; *.html", L"*.htm;*.html"},
    {L"Text Document *.txt", L"*.txt"},
    };


    HRESULT hr = CoCreateInstanceid, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS&pfd;
    if SUCCEEDEDhr
    {
    hr = pfd->SetFileTypesARRAYSIZEc_rgSaveTypes, c_rgSaveTypes;
    if SUCCEEDEDhr
    {
    hr = pfd->SetFileTypeIndex1;
    if SUCCEEDEDhr
    {
    //pfd->SetFileNameL"Filename.txt"; // This is okay
    pfd->SetFileNameL"SomeLongFilename.txt"; // This name gets wrapped around
    pfd->Show::GetActiveWindow;
    }
    }

    pfd->Release;
    }
    }

    :)
     
    Saket Sharad, Feb 13, 2020
    #1

  2. Windows Mobile suggestion: Allow Apps list to wrap around rather than end

    I don't know where to post suggestions for Windows Phone / Mobile and the MS site is simply terrible. So sorta posting this blind.

    Almost too simple to suggest: When I look at the list of installed programs, I can scroll from "A" to "Z". But "Z" does not then continue on to "A". It doesn't wrap around. That's really clunky.

    --> Please make this list wrap around, at least as a GUI option.

    Thx
     
    Vercingetorix2001, Feb 13, 2020
    #2
  3. kormath Win User
    Lost default photo viewer after profile rebuild


    Thanks Brink. I've tried those steps before i started searching Google. After the profile rebuild i don't have the Photo app listed to choose to make it default in either the system settings for default apps or the Open With option.

    I can't even find it doing a search. Seems to have been removed somehow with the profile rebuild, which doesn't make sense.

    Might be helpful to list what i've done Default filename wrapped around in Windows IFileDialog :) I've done the open with check, the choose default program in the system menu, tried that in device manager default programs also. I've checked the programs and features Turn windows features on/off and it's not listed there (never thought it was but that was a suggestion), searched the MS Store, it's not listed there either.

    I don't like playing in the registry unless i have defined steps and haven't found anything for this yet, just the Win7 version like in my OP.
     
    kormath, Feb 13, 2020
    #3
  4. DarkUltra Win User

    Default filename wrapped around in Windows IFileDialog

    Text wrap in Internet Explorer

    If you want to suggest webmasters fix their code, then be my guest! :-D



    (MOD EDIT: Removed links)
     
    DarkUltra, Feb 13, 2020
    #4
Thema:

Default filename wrapped around in Windows IFileDialog

Loading...
  1. Default filename wrapped around in Windows IFileDialog - Similar Threads - Default filename wrapped

  2. Turn 'Word Wrap' off default in Notepad

    in Windows 10 Gaming
    Turn 'Word Wrap' off default in Notepad: My PC has recently updated, and with it a new version of Notepad has shown up this is the first time I've seen tabs in a notepad.Frustratingly, Word Wrap is now ticked on by default whenever a notepad is opened. I don't want it on, ever. I have no idea how to set it so that...
  3. Turn 'Word Wrap' off default in Notepad

    in Windows 10 Software and Apps
    Turn 'Word Wrap' off default in Notepad: My PC has recently updated, and with it a new version of Notepad has shown up this is the first time I've seen tabs in a notepad.Frustratingly, Word Wrap is now ticked on by default whenever a notepad is opened. I don't want it on, ever. I have no idea how to set it so that...
  4. Windows 10 starts scrolling up and wraps around back to the bottom after shutting down...

    in Windows 10 Gaming
    Windows 10 starts scrolling up and wraps around back to the bottom after shutting down...: This started 30 minutes ago, and I haven't tried anything yet, but it looks really weird. Its not distortion, or a coloring bug, its just scrolling up and wrapping back to the bottom. The mouse has nothing to do with this, its fully functional, and all of the google searches...
  5. Windows 10 starts scrolling up and wraps around back to the bottom after shutting down...

    in Windows 10 BSOD Crashes and Debugging
    Windows 10 starts scrolling up and wraps around back to the bottom after shutting down...: This started 30 minutes ago, and I haven't tried anything yet, but it looks really weird. Its not distortion, or a coloring bug, its just scrolling up and wrapping back to the bottom. The mouse has nothing to do with this, its fully functional, and all of the google searches...
  6. Text Wrap around image

    in Windows 10 Gaming
    Text Wrap around image: G'day,When I use Word, if I add an image, I can use Text Wrap to type on the right of the image. Is there a way of doing that with my Windows Mail?Happy New YearMalcolm...
  7. Text Wrap around image

    in Windows 10 Software and Apps
    Text Wrap around image: G'day,When I use Word, if I add an image, I can use Text Wrap to type on the right of the image. Is there a way of doing that with my Windows Mail?Happy New YearMalcolm...
  8. Text Wrap around image

    in Windows 10 Customization
    Text Wrap around image: G'day,When I use Word, if I add an image, I can use Text Wrap to type on the right of the image. Is there a way of doing that with my Windows Mail?Happy New YearMalcolm...
  9. Wrapping Mouse

    in Windows 10 Customization
    Wrapping Mouse: I'm running Window 10. I am looking for information on how to wrap my mouse around my desktop. I want my mouse cursor to go 360. Can it be done without download some app from some unknown web site???...
  10. Insert a textbox so text wraps around it

    in Windows 10 Network and Sharing
    Insert a textbox so text wraps around it: In Word, how do I insert a textbox so text wraps around it? https://answers.microsoft.com/en-us/windows/forum/all/insert-a-textbox-so-text-wraps-around-it/0345dd18-45b6-436b-855a-454a8d65fac4"