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?
How do i create an open dialog box that behaves like ones in programs such as word?
Collapse
X
-
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
-
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 worksComment
Comment