Solved

ActivateFrame(int nCmdShow)

Posted on 1997-12-16
1
381 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Different colored text in ComboBox without Subclassing 8 72
Expand LInux Boot partition remotly 3 102
sameEnds challenge 3 187
How to convert MFC::CString to UTF8 wchar_t* 10 383
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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…
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.

749 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