Solved

ActivateFrame(int nCmdShow)

Posted on 1997-12-16
1
373 Views
Last Modified: 2013-11-19
when I create a default MDI app with appwiz, and add
ActivateFrame() by classwiz to mainMDIframe
this function is not visited at all. I put a stop by debugger
ant initiate the app, and close the app, no visit. why ?
I need to use this function to initilize my MDIframe size,
and status etc ? for a good solution I will give 50pts extra
0
Comment
Question by:hasmet
1 Comment
 

Accepted Solution

by:
kalaru earned 100 total points
ID: 1312506
hasmet,
   
      In the case of an MDI appln, the mainframe object is created in the InitInstance of the App class. And after loading the frame , the ShowWindow function is called for that function.
To initialise the size , u can always do that in the ShowWindow Function. To change the styles of the window , u can do that either in the LoadFrame function or in the PreCreateWindow function of the Mainframe class.

In the case of an SDI application , u donot explicitly create the Mainframe object anywhere. Hence all size initialisations are done in the ActivateFrame function which gets called.

In MDI appln , since u're specifically calling the ShowWindow function , u do not need to call the ActivateFrame().
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
countEvens challenge 2 111
wait notify demo infinite loop 3 122
Problem to open Excel file 15 174
"Black Box" Testing of Control System Software 2 70
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

839 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