The R Project SVN R

Rev

Rev 45252 | Rev 84952 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 45252 Rev 76745
Line 325... Line 325...
325
{
325
{
326
    long flags = *flags_ptr;
326
    long flags = *flags_ptr;
327
    long state = *state_ptr;
327
    long state = *state_ptr;
328
    unsigned long style = 0UL;
328
    unsigned long style = 0UL;
329
 
329
 
330
    state |= Enabled;
330
    state |= GA_Enabled;
331
 
331
 
332
    if (flags & Workspace)
332
    if (flags & Workspace)
333
	style |= (MDIS_ALLCHILDSTYLES|WS_CLIPCHILDREN|WS_OVERLAPPED);
333
	style |= (MDIS_ALLCHILDSTYLES|WS_CLIPCHILDREN|WS_OVERLAPPED);
334
    /*
334
    /*
335
      if (flags & Document)
335
      if (flags & Document)
Line 359... Line 359...
359
	flags &= ~(Maximize | Minimize | Closebox);
359
	flags &= ~(Maximize | Minimize | Closebox);
360
    }
360
    }
361
 
361
 
362
    if (flags & ChildWindow) {
362
    if (flags & ChildWindow) {
363
	style |= (WS_CHILD | WS_VISIBLE);
363
	style |= (WS_CHILD | WS_VISIBLE);
364
	state |= Visible;
364
	state |= GA_Visible;
365
    }
365
    }
366
 
366
 
367
    if (state & Visible) {
367
    if (state & GA_Visible) {
368
	style |= WS_VISIBLE;
368
	style |= WS_VISIBLE;
369
    }
369
    }
370
 
370
 
371
    *flags_ptr = flags;
371
    *flags_ptr = flags;
372
    *state_ptr = state;
372
    *state_ptr = state;
Line 630... Line 630...
630
	if (is_top_level_window(obj)) {
630
	if (is_top_level_window(obj)) {
631
	    incremented_aw = 1;
631
	    incremented_aw = 1;
632
	    active_windows ++ ;
632
	    active_windows ++ ;
633
	}
633
	}
634
    }
634
    }
635
    obj->state |= Visible;
635
    obj->state |= GA_Visible;
636
    if (hwndClient && (hwnd == hwndFrame) && (MDIFrameFirstTime)) {
636
    if (hwndClient && (hwnd == hwndFrame) && (MDIFrameFirstTime)) {
637
	ShowWindow(hwnd, MDIsizeSet ? SW_SHOWNORMAL : SW_SHOWMAXIMIZED);
637
	ShowWindow(hwnd, MDIsizeSet ? SW_SHOWNORMAL : SW_SHOWMAXIMIZED);
638
	MDIFrameFirstTime = 0;
638
	MDIFrameFirstTime = 0;
639
    }
639
    }
640
    else
640
    else
Line 682... Line 682...
682
	/* Remember how many real windows active. */
682
	/* Remember how many real windows active. */
683
	if (is_top_level_window(obj))
683
	if (is_top_level_window(obj))
684
	    active_windows -- ;
684
	    active_windows -- ;
685
 
685
 
686
	ShowWindow(hwnd, SW_HIDE);
686
	ShowWindow(hwnd, SW_HIDE);
687
	obj->state &= ~Visible;
687
	obj->state &= ~GA_Visible;
688
    }
688
    }
689
 
689
 
690
    if (current->dest == obj) {
690
    if (current->dest == obj) {
691
	current->dest = NULL;
691
	current->dest = NULL;
692
	del_context(obj);
692
	del_context(obj);