Solved

ActivateFrame(int nCmdShow)

Posted on 1997-12-16
1
339 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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

8 Experts available now in Live!

Get 1:1 Help Now