• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • 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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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