--- a/WinWorkstation.st Tue Mar 15 18:18:23 2005 +0100
+++ b/WinWorkstation.st Tue Mar 15 18:56:27 2005 +0100
@@ -2537,8 +2537,9 @@
cwi->infoWasRead = 1;
if (cwi->newWinHandle == NULL) {
HANDLE ev;
-
- cwi->newWinHandle = CreateWindowEx(
+ HANDLE hwnd;
+
+ cwi->newWinHandle = hwnd = CreateWindowEx(
cwi->winStyleBitsEx,
cwi->className,
cwi->windowName,
@@ -2551,18 +2552,22 @@
cwi->localWindowInfo
);
- if (cwi->newWinHandle == NULL) {
+ if (hwnd == NULL) {
cwi->errCode = GetLastError();
fprintf(stderr, "WinWorkstation [info]: CreateWindow failed: %d (0x%x) [%d]\n",
cwi->errCode, cwi->errCode, __LINE__);
} else {
- SETLOCALWINDOWINFOPTR(cwi->newWinHandle, cwi->localWindowInfo);
+ SETLOCALWINDOWINFOPTR(hwnd, cwi->localWindowInfo);
#ifdef DEBUG /* PARANOIA */
- if (GETLOCALWINDOWINFOPTR(cwi->newWinHandle) != cwi->localWindowInfo) {
+ if (GETLOCALWINDOWINFOPTR(hwnd) != cwi->localWindowInfo) {
fprintf(stderr, "lI-Error\n");
}
#endif
+ SetWindowPos(hWnd, HWND_TOP, 0, 0, 0, 0,
+ /* SWP_NOOWNERZORDER |*/
+ SWP_NOSENDCHANGING | SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
}
+
ev = cwi->hCreateEvent;
if (ev) {
SetEvent(ev);
@@ -16429,7 +16434,7 @@
!WinWorkstation class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/WinWorkstation.st,v 1.299 2005-03-14 21:33:44 penk Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/WinWorkstation.st,v 1.300 2005-03-15 17:56:27 cg Exp $'
! !
WinWorkstation initialize!