• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 294
  • Last Modified:

Hide document in MDI

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
raj_selvam
Asked:
raj_selvam
  • 3
1 Solution
 
Roshan DavisCommented:
Use PostMessage(WM_SHOWWINDOW, FALSE);

GOOD LUCK
0
 
Roshan DavisCommented:
static bFirst = true;

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

GOOD LUCK
0
 
raj_selvamAuthor Commented:
hi roshmon,

i tried both the method, but not working

raj_selvam
0
 
Roshan DavisCommented:
Add this on
:OnDraw function

static bFirst = true;

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


GOOD LUCK
0
 
DarthModCommented:
Submitted to PAQ with no points refunded (of 50)

DarthMod
Community Support Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now