new open/save window???

This is a discussion on new open/save window??? within the Windows Programming forums, part of the Platform Specific Boards category; I was just wondering how when you save/ load a file, you get that ugly box with windows, i can't ...

  1. #1
    Registered User
    Join Date
    May 2002
    Posts
    178

    new open/save window???

    I was just wondering how when you save/ load a file, you get that ugly box with windows, i can't think of how to describe it but you know what i mean. the window you get whenever you save or load. is there a way to make my own that will pop up when i try to save / load a file. I'm pretty new to win32 programming but was just wondering cause i would like to do it in the future. Thanks in advance.
    Oi Oi Oi!!!!

  2. #2
    Unregistered
    Guest
    you sound like you need something other than windows.

  3. #3
    Registered User
    Join Date
    May 2002
    Posts
    178
    such as??? i wouldn't think anything like opengl or directx or anything would be able to do this and assembly doesn't seem right either. any suggestions????
    Oi Oi Oi!!!!

  4. #4
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    I think he wants to make his own version of the common save/open dialog boxes. I havn't ever explored this, though.

  5. #5
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    You can always make your own dialogs for anything, someone clicks load/save, you open your dialog rather than the common dialog.

    Couple of points, there is a lot of functionality in the common dialog, it would be a substantial amount of work to write your own which had all the same features. Two, the reason people use the common dialogs is because unskiller end users are likely to have seen them before and know how to work them - thus your application is automatically user friendly when you use the standards.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  6. #6
    Registered User
    Join Date
    May 2002
    Posts
    178
    Yeah, I basically just want it for myself though. Kinda mod windows a little bit I guess you could say. Would i have to dork in the registry to make it do this or is this actually in the kernal? That is if i wanted my own box to come up everytime i load/saved in an application. Thanks.

  7. #7
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    Originally posted by hostensteffa
    Would i have to dork in the registry to make it do this or is this actually in the kernal? That is if i wanted my own box to come up everytime i load/saved in an application. Thanks.
    Neither...... for instance - the dialog for opening files is called with the GetOpenFileName() API.....the code to initalise this is in the comdlg32.dll that ships with windows........all the apps that use it simply load that dll, get a pointer to that API and call it there.....

    To do what you are suggesting would require you doctoring the comdlg32.dll (which I suppose at least goes against your licence with Microsoft...and at most would be a b*tch of a job).....

    If I were you I would learn to live with the common dialogs......

    Come on!!!....they arent that bad!!!

  8. #8
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    I think he wants to replace the common dialog in other programs with one he makes?

    i dont think that is possible tho
    "There are three kinds of people in the world...
    Those that can count and those that can't."

  9. #9
    Registered User
    Join Date
    May 2002
    Posts
    178
    (snaps fingers) darn. oh well. Thanks for all your help.
    Oi Oi Oi!!!!

  10. #10
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    It definitely possible, just a big pain in the ass. I have seen people change the text of their start button. This seems similar, but more complicated.

    Hence, don't even bother trying unless you really know asm and windows as well.

  11. #11
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    Even if you could successfully edit the comdlg32.dll to display a new dlg it would only appear if you sent the new version of the DLL with the app and installed it in the right place.

    I would be extremely angry if an app permanently changed the appearance of any of the common dialogs in my computer.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  12. #12
    Registered User
    Join Date
    May 2002
    Posts
    178
    ehhh the start button is actually quite easy to do, you just have to change a line in some file that i can't think of right now with a hex editor.
    Oi Oi Oi!!!!

  13. #13
    Registered User
    Join Date
    Nov 2001
    Posts
    14
    To change start button text you hexedit Explorer.exe.

    As for changing the dialog boxes it is definitely possible I had a program which changed the common dialogs and added extra functionality, quick access to system folders and a favourite folders function. I don't know the name of the app I had but try searching download.com or something.

    As for coding this your self learn asm and study the dlls with windows intensively.

  14. #14
    Unregistered
    Guest
    what is the API function for the open directory (tree format) dialog? thanks.

  15. #15
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    Using files and the common dialogs

    That should be what you want.
    "There are three kinds of people in the world...
    Those that can count and those that can't."

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 07:14 AM
  2. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  3. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 10:06 AM
  4. My Window Class
    By Epo in forum Game Programming
    Replies: 2
    Last Post: 07-10-2005, 02:33 PM
  5. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21