Solved

Hide document in MDI

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 149
no14 challenge 14 73
Modbus - whats the maximum I can store in one register? 4 82
Bartender label printing - switch on and off graphics 3 73
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

756 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