473,379 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

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?
May 24 '08 #1
6 1934
arnaudk
424 256MB
Specifically what windowing library are you using?
May 26 '08 #2
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?
May 26 '08 #3
does anyone have any ideas?
May 31 '08 #4
ok i figured out the problem
Jun 2 '08 #5
arnaudk
424 256MB
How did you do it, was it simple?
Jun 2 '08 #6
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
Jun 5 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: malcolm | last post by:
Why you can't get something for nothing Jack Schofield Jan 22 2004 "There are also undoubted benefits from running open source software, though the financial ones can be small or even...
0
by: Alf P. Steinbach | last post by:
The seventh part of my attempted Correct C++ tutorial is now available, although for now only in Word format (use free Open Office if no Word), and also, it's not yet been reviewed at all -- ...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
1
by: Nathan | last post by:
Hi, I need to launch a c# dialog from an application written in c++. I'm running into the problem that the c# dialog behaves as if its a different application. Clicking anywhere in the c++...
2
by: Jonathan Trevor | last post by:
Hi, For the last couple of releases of a product we're developing we've been running to very wierd behavior from IE and our ASP.NET web application which serves up various types of files and I'm...
2
by: Mattbooty | last post by:
Hello, Not sure if anyone else has seen this bug, but I have a form where the entire form is covered with a picturebox. The picturebox has a mouseup event. I also have an open file dialog for...
16
by: zaley | last post by:
Is there a open souce IDE writen by C( C++) or partly writen by C( C+ +)?
7
by: Peter | last post by:
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear();...
17
by: DeZZar | last post by:
Hi all, I need to regularly backup my database as an Excel file and have been using the File Export option. Problem is I need anyone using the database to be able to do this easily - nopt...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.