Solved

Hide document in MDI

Posted on 2002-05-30
7
256 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.

785 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