Solved

Doc/View app

Posted on 2004-08-09
4
250 Views
Last Modified: 2013-11-20
Hi all
If I have a Doc/View based app on evc, is it possible to have all my options on the mainframe menu, and when a dialog is being display, I can still access to the menu options (that are at the bottom)...?
0
Comment
Question by:mwcmp
  • 3
4 Comments
 
LVL 4

Accepted Solution

by:
r2far earned 100 total points
ID: 11754268
yes and no... to do so you would need to make the dialog Modeless.  but in doing so when you click a menu outside of the dialog, the dialog may be obscured by the window or app containing the menu.  Modal dialogs (most are) prevent focus switching to the parent till they are closed (in relation to their parent window or app, and not the system).

Is there a better Idea of what this is for.  Maybe alternatives can be suggested.  

Hope I can Help =]
0
 

Author Comment

by:mwcmp
ID: 11754403
Making the dialog modeless also means that the title bar can be seen? Am I right?
0
 
LVL 4

Expert Comment

by:r2far
ID: 11755386
modeless dialog simply means that the dialog will allow focus sharing.  model dialog boxes demand user attention.  Modeless dialogs are typically used when you need bi-directional communication between a dialog and it's parent while the dialog box is still open and active.

Modal dialog created using the DoModal() function.

Modeless dialog does not use DoModal().  In fact... If you 'create' a modeless dialog, DO NOT call DoModal() or the program will crash.

CSomeDlg dlg;
dlg.Create(IDD_DIALOG,this);    // IDD_DIALOG is the dialogs template ID, 'this' is standard pointer.  replace it with whatever window you want to be the dialogs parent.
dlg.ShowWindow(SW_SHOW);

// you must destroy a modeless dialog when you are donw with it
dlg.DestroyWindow();


Hope This Helps,
0
 
LVL 4

Assisted Solution

by:r2far
r2far earned 100 total points
ID: 11755407
Oh... I answered your question indirectly... here is the direct answer.

If the dialog template includes a titlebar, then the dialog will have a title whether it is modal or modeless.  The only exception I know of is Dialog Bars (special toolbars)
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Doc'in system (example?) BA 7 111
haveThree challenge 22 118
Dell Alienware Graphics Amplifier Driver for non-Alienware systems 18 255
Problem to event 3 97
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question