Creating a window..

How can I create a frame window in my
dialog based application? This frame
window will be temporary, and will be used for displaying some readme txt.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Derive a class from CWnd and override whatever functions you want. Then, simply create this window.

class CMyWnd : public CWnd

CMyWnd m_wnd;  // a member variable of the dialog class

// In a member function of the dialog box

You may also simply call ShellExecute or CreateProcess to launch Notepad.exe to display the text file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cManAuthor Commented:
The ShellExecute works perfectly.

I design a dialog form that must to be displayed when the user press a specific button into the main dialog frame.  
These are the instruction that I am using:

Rec_4D  *window = new Rec_4D;
window->Create("4D Reconstruction",this);

Where Rec_4D is the class related with the designed frame.
There is no compiling errors, but when the button is pressed an error messange is displayed.  Really I don't know what is happening!

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.