The reason the parent window can be closed is because its parent too is the main window's (i.e., (long)AfxGetMainWnd()->m_hWnd) as well as its children. This allows for all the modal dialogs to open and not continue in the code sequentially until OK or Cancel has been clicked. I need to open more dialogs from this parent dialog in order to compare and modify values (of the contents). I cannot use modeless dialogs because it continues computing without the user selecting OK or Cancel; it just creates the dialog and will create multiple dialogs of the same type or instance rather. I have been able to reactivate the dialog that has been opened already by using a PropertyFrame pointer. I cannot just close the dialogs via WM_CLOSE, but should prevent the parent dialog from closing as long as its children dialogs are opened. That too will be as difficult.
AeJai
Posts
-
Access modal dialogs from application handle -
Access modal dialogs from application handleOkay this one is for the Gurus! I am trying to open multiple modal dialogs from a parent modal dialog. However, in modal dialogs only one child dialog can be opened at a time under a parent dialog. Therefore, I have to use the applications main window to have multiple modal dialogs opened and use a map to track which dialogs belong to the parent dialog. How can I get a handle or pointer to the childrens dialog windows to store them in my map (for the parent to track)? My goal is to close all the parent's children dialogs once the parent's has been closed. And also consistently close them out by calling theDlg->EndDialog(IDOK) when the parent dialog has been closed by clicking "OK" or theDlg->EndDialog(IDCANCEL) when the parent dialog has been closed by clicking "Cancel".
-
Prevent resize of custom taskbar (toolbar)Stingray Studio is used to create a SECCustomStatusBar to display a toolbar in my application. The code is written in C++ using MFC, but I want to prevent the user from having the ability to resize the toolbar. The toolbar is to automatically resize when the application is not maximized and the user sets the application's window size to his/her preference. Can this toolbar remove the ability for the operator to click, hold, and drag the bottom right corner of this toolbar to resize it?
-
[Message Deleted][Message Deleted]
-
Prevent resizing taskbarsI am trying to prevent the user from clicking, holding, and dragging the toolbar in an application I wrote. The application uses Stringray controls (RogueWave), MFC, and COM. I believe the trouble is working with Stingray Studio. Can anyone give me some direction? Thanks.
-
Set the default export path for Crystal Reports [modified]If anyone can give me direction as to modifying the Crystal Report default path to ...\MyDocuments\. I would appreciate it. I am working on an application using C++/MFC, which creates reports (using crystal reports), but the default path is preferred to be in the My Documents folder. Otherwise, to the path set previously by the application's operator. I am using Crystal Reports (version 8.5). Thanks.
modified on Monday, April 28, 2008 8:53 AM
-
UserDefinedPropertiesI am adding new fields to the summary information for a file in this application I am working and I want to know if I can create a property identifier for the UserDefinedProperties? For example, already existing is // Summary Information PID_TITLE = 2; //DocumentSummaryInformation I was thinking I should add a field similar to PIDDSI_CATEGORY for UserDefined, which has a property identifier value of 0x00000002, but I do not know how?
-
Modify tooltip - Mouse over file (.xml)Explorer
-
Modify tooltip - Mouse over file (.xml)I am developing an application that saves files as different file types. I am concerned with the .XML. How do you modify the tooltip when the operator hovers his/her mouse over the file if the file type is .XML? The XML document is defaulted to display the type, date modified, and size in the infotip (tooltip). Is there any programming I can do using C++/MFC to modify these contents? I have been told look into using shell scripting, but this application is to be installed on other machines with Windows XP.
-
Override afx msg box (pop up)The software I am coding uses AfxThrowArchiveException(CArchive::none) to undo changes made by partially loading a document into the program. However, another afx message stating "Failed to open document." pops up and the operator has to again click OK on the dialog. Is there anyway to override this second message box from popping up?
-
Cancel opening a fileI am working on an application that has the ability to open files using MFC and Visual Studio .Net 2003. I need give the user the option not to continue opening the file for special cases or scenarios. The determination is based on a keyword setting in an XML tag. Using the Serialize method, I was able to modify the software to not continue loading the file. However, it loaded it anyways but not completely. Do you know how I can prevent it from loading a file completely?
-
Add text to title bar (or document header)This application has a mainframe window and like an older version of Microsoft Word documents, it can have multiple files open (MDI). If you tile the windows, the active window's file name title shows in the mainframe's. The format the header or title bar has is as follows: [Application Name] - [Filename.extension] I want to modify it like this: [Application Name] - [Filename.extension] - [My Text Added Here] The problem is I do not have a handle to this section such as SetTitle() or SetName() and I am thinking I need to add a section to have such a handle. However, this is dealing with MFC.
-
Add text to title bar (or document header)Thanks. I will try it.
-
Add text to title bar (or document header)How do you add text to the title bar of an application using Microsoft Visual Studio 2003 .NET Visual C++?
-
Add text to Tooltip for a XML fileI am using Windows XP, Microsoft Visual Studio 2003 .NET, with MFC. I am working on an application that compresses itself into an XML file or can be saved in the XML format. When it is compressed, it shows additional information I added into the tooltip, which shows when the operator puts the mouse over the file. I am trying to add information to the file's tooltip when it is saved as an XML document as well. However, the tooltip only displays the document's type, date, and size. Do you know how to make an XML file ("filename.xml") show additional information in the tooltip when the operator puts the mouse over the filename? AeJai
-
Add text to Tooltip for a XML fileI am using Windows XP, Microsoft Visual Studio 2003 .NET, with MFC. I am working on an application that compresses itself into an XML file or can be saved in the XML format. When it is compressed, it shows additional information I added into the tooltip, which shows when the operator puts the mouse over the file. I am trying to add information to the file's tooltip when it is saved as an XML document as well. However, the tooltip only displays the document's type, date, and size. Do you know how to make an XML file ("filename.xml") show additional information in the tooltip when the operator puts the mouse over the filename? AeJai
-
Modify contents of tooltip on mouse over filenameI am programming an application to make the xml.
-
Modify contents of tooltip on mouse over filenameI am running Windows XP and I am trying to modify an xml document so that when the operator puts his/her mouse over the file, the tooltip displays additional information. The tooltip displays the Type, Date Modified, and Size. I am using C++ in Visual Studio 2003 .NET environment along with MFC and COM. AeJai