How do i create an open dialog box that behaves like ones in programs such as word?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • joder2006
    New Member
    • Dec 2006
    • 12

    How do i create an open dialog box that behaves like ones in programs such as word?

    i'm writing a program that uses an open dialog box, i would like to create an open dialog box that behaves like ones in other programs such as word, that has it where the window behind the open dialog box is disabled and i would like to have it where there is just one taskbar button for the application and be able to move the open dialog box outside the main window, im using visual studio 2005 in c++ and im doing a windows 32 application not MFC, i used the GetOpenFileName () to get the dialog box, and im able to figure out how to disable the main window but i cant figure out how to have one taskbar button for the main window and the open dialog box, is there any way i can make my program with the open dialog box behave like it does it word?
  • arnaudk
    Contributor
    • Sep 2007
    • 425

    #2
    Specifically what windowing library are you using?

    Comment

    • joder2006
      New Member
      • Dec 2006
      • 12

      #3
      I'm using the windowing library that comes with Visual Studio 2005 c++, but here is the list of all the libraries I'm using

      kernel32.lib
      user32.lib
      gdi32.lib
      winspool.lib
      comdlg32.lib
      advapi32.lib
      shell32.lib
      ole32.lib
      oleaut32.lib
      uuid.lib
      odbc32.lib
      odbccp32.lib

      I'm also using the SDL (Simple DirectMedia Layer) library, is there a certain library i need in order to do what i want to do?

      Comment

      • joder2006
        New Member
        • Dec 2006
        • 12

        #4
        does anyone have any ideas?

        Comment

        • joder2006
          New Member
          • Dec 2006
          • 12

          #5
          ok i figured out the problem

          Comment

          • arnaudk
            Contributor
            • Sep 2007
            • 425

            #6
            How did you do it, was it simple?

            Comment

            • joder2006
              New Member
              • Dec 2006
              • 12

              #7
              Yes, I can't believe I didn't see it before, it turns out the open dialog box is represented with a structure called OPENFILENAME and one of the of the members is called hwndOwner, all I had to do was assign that member the HWND to the main window and then everything works

              Comment

              Working...