Update of /cvsroot/jsmooth/jsmooth/skeletons/util-core
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv5645/util-core
Modified Files:
SingleInstanceManager.cpp
Log Message:
implements the JNI JSmooth functions
Index: SingleInstanceManager.cpp
===================================================================
RCS file: /cvsroot/jsmooth/jsmooth/skeletons/util-core/SingleInstanceManager.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SingleInstanceManager.cpp 17 May 2007 10:56:18 -0000 1.1
--- SingleInstanceManager.cpp 18 May 2007 21:34:00 -0000 1.2
***************
*** 150,160 ****
{
LONG style = GetWindowLong(hwnd, GWL_STYLE);
! if ((style & (WS_OVERLAPPEDWINDOW|WS_TILED|WS_VISIBLE)) != 0)
{
! ShowWindow(hwnd, SW_HIDE);
! //ShowWindow(hwnd, SW_SHOW);
! ShowWindow(hwnd, SW_SHOWMINIMIZED);
! ShowWindow(hwnd, SW_RESTORE);
! return FALSE;
}
}
--- 150,157 ----
{
LONG style = GetWindowLong(hwnd, GWL_STYLE);
! if ((style & (WS_VISIBLE)) != 0)
{
! SetForegroundWindow(hwnd);
! return false;
}
}
|