~x2go/x2go/x2goclient_master

« back to all changes in this revision

Viewing changes to wapi.cpp

  • Committer: Reinhard Tartler
  • Author(s): Oleksander Schneyder
  • Date: 2011-01-27 20:43:11 UTC
  • Revision ID: git-v1:af42fa37d555c1031810a868db687f39c2f9e574
Imported x2goclient_3.01-16.tar.gz

Summary: Imported x2goclient_3.01-16.tar.gz
Keywords:

Imported x2goclient_3.01-16.tar.gz
into Git repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include "x2gologdebug.h"
12
12
 
13
13
 
14
 
 
15
 
 
16
14
long wapiSetFSWindow ( HWND hWnd, const QRect& desktopGeometry )
17
15
{
18
16
        long style=GetWindowLong ( hWnd,GWL_STYLE );
35
33
        return style;
36
34
}
37
35
 
 
36
void wapiRestoreWindow( HWND hWnd, long style, const QRect& desktopGeometry )
 
37
{
 
38
        SetWindowLong ( hWnd, GWL_STYLE,style); 
 
39
        SetWindowPos ( hWnd, HWND_TOP, desktopGeometry.x(),
 
40
                       desktopGeometry.y(),
 
41
                       desktopGeometry.width(),
 
42
                       desktopGeometry.height(),
 
43
                       SWP_FRAMECHANGED );
 
44
}
 
45
 
38
46
void wapiHideFromTaskBar ( HWND wnd )
39
47
{
40
48
        ShowWindow ( wnd, SW_HIDE ) ;