How to make Dialog based app to Modeless

Posted on 2000-04-05
Last Modified: 2013-11-20
I want to make the AppWizard created dialog based application into modeless dialog based application. I've created the dialog using create function it is creating the dialog and displaying the dialog but it is not been persisted but it is closing the application immediately. How to the retain the application from closing?
Question by:imtiazahmad
  • 2

Accepted Solution

ShaunWilde earned 10 total points
ID: 2689068
don't return FALSE from InitInstance

Author Comment

ID: 2689996
It's not working
I tried with returning TRUE. The application is being terminated due to this.

Expert Comment

ID: 2690233
hmm have you set the main window to be that of your modeless dialog (see pseudo code)

// create modeless dialog
CModeless *pWnd=new CModeless;
m_pMainWnd = pWnd;

return TRUE;

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Process filename extension 3 184
matchUp  challenge 6 60
Excel file not created as expected 7 69
x-bar in Google Sheets 2 50
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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 ( 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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now