Solved

Hide document in MDI

Posted on 2002-05-30
7
239 Views
Last Modified: 2013-11-20
Hi,

I want to hide one document in MDI.
i tried,

ShowWindow(SW_HIDE);
 In OnInitialUpdate()

but the frame is still visible.

how to hide document in MDI?

regards
selvam
0
Comment
Question by:raj_selvam
  • 3
7 Comments
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7044208
Use PostMessage(WM_SHOWWINDOW, FALSE);

GOOD LUCK
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7044220
static bFirst = true;

     if ( bFirst )
     {
          GetParent()->ShowWindow(SW_HIDE);
          bFirst = false;
     }

GOOD LUCK
0
 
LVL 1

Author Comment

by:raj_selvam
ID: 7046372
hi roshmon,

i tried both the method, but not working

raj_selvam
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7046373
Add this on
:OnDraw function

static bFirst = true;

    if ( bFirst )
    {
         GetParent()->ShowWindow(SW_HIDE);
         bFirst = false;
    }


GOOD LUCK
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 12084124
Submitted to PAQ with no points refunded (of 50)

DarthMod
Community Support Moderator
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Expand data scrubbing tool 13 31
iSeries DB2 Query 2 84
java ^ examples 8 57
post4 challenge 28 83
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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 …
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

705 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

21 Experts available now in Live!

Get 1:1 Help Now