473,804 Members | 3,675 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

12 New Member
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 1970
arnaudk
424 Contributor
Specifically what windowing library are you using?
May 26 '08 #2
joder2006
12 New Member
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
joder2006
12 New Member
does anyone have any ideas?
May 31 '08 #4
joder2006
12 New Member
ok i figured out the problem
Jun 2 '08 #5
arnaudk
424 Contributor
How did you do it, was it simple?
Jun 2 '08 #6
joder2006
12 New Member
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
1929
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 negative. Companies are bound to be tempted by the idea of getting something for nothing .." "The facility to fix bugs yourself and to modify programs also sounds
0
1460
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 -- comments welcome! "Create beginner's programs" <url: http://home.no.net/dubjai/win32cpptut/w32cpptut_01_07.zip> This part focuses on basic techniques and approaches to programming, so it could have been titled "Basic methodologies and...
7
8876
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 want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
1
1538
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++ application, including the main window hides the c# dialog. How do I get it to always stay on top of the main window? Thanks a lot, Nathan
2
3199
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 getting very frustrated in trying to solve it! We content we are serving up is potentially sensitive and therefore we DO NOT want it cached on the remote client (IE) beyond the lifetime of the application rendering it (IE, Powerpoint, Word...
2
6159
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 loading images into the picturebox. If you double click the file you want to open in the open file dialog, it somehow interperets one of the clicks as a mouseup on the picturebox and fires the mouseup event for the picturebox. How can I get...
16
1187
by: zaley | last post by:
Is there a open souce IDE writen by C( C++) or partly writen by C( C+ +)?
7
4023
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(); Response.AddHeader("Content-Disposition", "attachment; filename=" + file.Name);
17
7852
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 just me. For all users the database is hidden and only a menu screen is visable. Can I create a button on my menu screen that will export a table >
0
9707
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6856
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5658
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.