wfreerdp: floatbar: enabled.

This commit is contained in:
Zhang Zhaolong 2014-02-27 11:43:52 +08:00
parent 9f6dbed05b
commit 96562e533f
3 changed files with 8 additions and 0 deletions

View File

@ -328,6 +328,11 @@ void wf_toggle_fullscreen(wfContext* wfc)
wfc->disablewindowtracking = TRUE;
}
if (wfc->fullscreen)
floatbar_show(wfc->floatbar);
else
floatbar_hide(wfc->floatbar);
SetParent(wfc->hwnd, wfc->fullscreen ? NULL : wfc->hWndParent);
wf_resize_window(wfc);
ShowWindow(wfc->hwnd, SW_SHOW);

View File

@ -448,6 +448,7 @@ BOOL wf_post_connect(freerdp* instance)
freerdp_channels_post_connect(instance->context->channels, instance);
wf_cliprdr_init(wfc, instance->context->channels);
float_bar_window_create(wfc);
return TRUE;
}

View File

@ -37,6 +37,7 @@
#include <freerdp/codec/nsc.h>
#include <freerdp/client/file.h>
#include "wf_floatbar.h"
#include "wf_event.h"
#ifdef __cplusplus
@ -132,6 +133,7 @@ struct wf_context
int yCurrentScroll; // current vertical scroll value
int yMaxScroll; // maximum vertical scroll value
cliprdrContext *cliprdr_context;
FloatBar* floatbar;
};
typedef struct wf_context wfContext;