| ︙ | | | ︙ | |
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
static Backend *back;
static void *backhandle;
static struct unicode_data ucsdata;
static int session_closed;
static const struct telnet_special *specials;
static int specials_menu_position;
static struct {
HMENU menu;
int specials_submenu_pos;
} popup_menus[2];
enum { SYSMENU, CTXMENU };
|
<
|
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
static Backend *back;
static void *backhandle;
static struct unicode_data ucsdata;
static int session_closed;
static const struct telnet_special *specials;
static struct {
HMENU menu;
int specials_submenu_pos;
} popup_menus[2];
enum { SYSMENU, CTXMENU };
|
| ︙ | | | ︙ | |
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
|
{
return icon ? icon_name : window_name;
}
/*
* See if we're in full-screen mode.
*/
int is_full_screen()
{
if (!IsZoomed(hwnd))
return FALSE;
if (GetWindowLong(hwnd, GWL_STYLE) & WS_CAPTION)
return FALSE;
return TRUE;
}
|
|
|
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
|
{
return icon ? icon_name : window_name;
}
/*
* See if we're in full-screen mode.
*/
static int is_full_screen()
{
if (!IsZoomed(hwnd))
return FALSE;
if (GetWindowLong(hwnd, GWL_STYLE) & WS_CAPTION)
return FALSE;
return TRUE;
}
|
| ︙ | | | ︙ | |
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
|
}
/*
* Go full-screen. This should only be called when we are already
* maximised.
*/
void make_full_screen()
{
DWORD style;
RECT ss;
assert(IsZoomed(hwnd));
if (is_full_screen())
|
|
|
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
|
}
/*
* Go full-screen. This should only be called when we are already
* maximised.
*/
static void make_full_screen()
{
DWORD style;
RECT ss;
assert(IsZoomed(hwnd));
if (is_full_screen())
|
| ︙ | | | ︙ | |
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
|
CheckMenuItem(GetSystemMenu(hwnd, FALSE), IDM_FULLSCREEN,
MF_CHECKED);
}
/*
* Clear the full-screen attributes.
*/
void clear_full_screen()
{
DWORD oldstyle, style;
/* Reinstate the window furniture. */
style = oldstyle = GetWindowLong(hwnd, GWL_STYLE);
style |= WS_CAPTION | WS_BORDER;
if (cfg.resize_action == RESIZE_DISABLED)
|
|
|
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
|
CheckMenuItem(GetSystemMenu(hwnd, FALSE), IDM_FULLSCREEN,
MF_CHECKED);
}
/*
* Clear the full-screen attributes.
*/
static void clear_full_screen()
{
DWORD oldstyle, style;
/* Reinstate the window furniture. */
style = oldstyle = GetWindowLong(hwnd, GWL_STYLE);
style |= WS_CAPTION | WS_BORDER;
if (cfg.resize_action == RESIZE_DISABLED)
|
| ︙ | | | ︙ | |
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
|
CheckMenuItem(GetSystemMenu(hwnd, FALSE), IDM_FULLSCREEN,
MF_UNCHECKED);
}
/*
* Toggle full-screen mode.
*/
void flip_full_screen()
{
if (is_full_screen()) {
ShowWindow(hwnd, SW_RESTORE);
} else if (IsZoomed(hwnd)) {
make_full_screen();
} else {
SendMessage(hwnd, WM_FULLSCR_ON_MAX, 0, 0);
|
|
|
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
|
CheckMenuItem(GetSystemMenu(hwnd, FALSE), IDM_FULLSCREEN,
MF_UNCHECKED);
}
/*
* Toggle full-screen mode.
*/
static void flip_full_screen()
{
if (is_full_screen()) {
ShowWindow(hwnd, SW_RESTORE);
} else if (IsZoomed(hwnd)) {
make_full_screen();
} else {
SendMessage(hwnd, WM_FULLSCR_ON_MAX, 0, 0);
|
| ︙ | | | ︙ | |