The R Project SVN R

Rev

Rev 84952 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 84952 Rev 88464
Line 43... Line 43...
43
    if(!intMDIStatus) {
43
    if(!intMDIStatus) {
44
	InitCommonControls();
44
	InitCommonControls();
45
	intMDIStatus = CreateStatusWindow(WS_CHILD|SBARS_SIZEGRIP|WS_VISIBLE,
45
	intMDIStatus = CreateStatusWindow(WS_CHILD|SBARS_SIZEGRIP|WS_VISIBLE,
46
					  "", hwndFrame, 121);
46
					  "", hwndFrame, 121);
47
	if (!intMDIStatus) return 0;
47
	if (!intMDIStatus) return 0;
48
	SendMessage(intMDIStatus,SB_SETPARTS,(WPARAM)1,(LPARAM)a);
48
	sendmessage(intMDIStatus,SB_SETPARTS,(WPARAM)1,(LPARAM)a);
49
	SendMessage(intMDIStatus,SB_SETTEXT,
49
	sendmessage(intMDIStatus,SB_SETTEXT,
50
		    (WPARAM) 0|0, (LPARAM)MDIStatusText);
50
		    (WPARAM) 0|0, (LPARAM)MDIStatusText);
51
    }
51
    }
52
    MDIStatus = intMDIStatus;
52
    MDIStatus = intMDIStatus;
53
    SendMessage(hwndFrame,WM_PAINT,(WPARAM) 0,(LPARAM) 0);
53
    sendmessage(hwndFrame,WM_PAINT,(WPARAM) 0,(LPARAM) 0);
54
    return 1;
54
    return 1;
55
}
55
}
56
 
56
 
57
int delstatusbar(void)
57
int delstatusbar(void)
58
{
58
{
59
    if (!MDIFrame) return 0;
59
    if (!MDIFrame) return 0;
60
    MDIStatus = 0; /* handle_mdiframeresize notices this */
60
    MDIStatus = 0; /* handle_mdiframeresize notices this */
61
    SendMessage(hwndFrame,WM_PAINT,(WPARAM) 0,(LPARAM) 0);
61
    sendmessage(hwndFrame,WM_PAINT,(WPARAM) 0,(LPARAM) 0);
62
    return 1;
62
    return 1;
63
}
63
}
64
 
64
 
65
PROTECTED void updatestatus(const char *text)
65
PROTECTED void updatestatus(const char *text)
66
{
66
{
67
    /* strncpy(MDIStatusText, text, 255); */
67
    /* strncpy(MDIStatusText, text, 255); */
68
    if (!MDIStatus) return;
68
    if (!MDIStatus) return;
69
    SendMessage(MDIStatus,SB_SETTEXT,
69
    sendmessage(MDIStatus,SB_SETTEXT,
70
		(WPARAM) 0|0, (LPARAM)MDIStatusText);
70
		(WPARAM) 0|0, (LPARAM)MDIStatusText);
71
    SendMessage(MDIStatus, WM_PAINT, (WPARAM)0, (LPARAM)0);
71
    sendmessage(MDIStatus, WM_PAINT, (WPARAM)0, (LPARAM)0);
72
}
72
}
73
 
73
 
74
void setstatus(const char *text)
74
void setstatus(const char *text)
75
{
75
{
76
    strncpy(MDIStatusText, text, 255);
76
    strncpy(MDIStatusText, text, 255);