Changeset 1094


Ignore:
Timestamp:
Sep 29, 1999, 11:31:18 AM (26 years ago)
Author:
dengert
Message:

caret blinking and recreation

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/changelog

    r1092 r1094  
    1  /* $Id: changelog,v 1.258 1999-09-29 09:15:59 sandervl Exp $ */
     1 /* $Id: changelog,v 1.259 1999-09-29 09:31:17 dengert Exp $ */
     2
     3 99-09-29: Daniela Engert <dani@ngrt.de>
     4        - USER32: improved timer handling for caret blinking.
     5                  recreate carets on focus change if needed.
    26
    37 99-09-29: Sander van Leeuwen <sandervl@xs4all.nl>
    48        - USER32: Almost completed standard window scrollbars.
    5                   Fixed WM_ACTIVATE message, generate WM_ACTIVATEAPP message
    6                   when WM_ACTIVATE is received. (instead of WM_SETFOCUS)
    7                   NOTE: Still not working correctly. Too many WM_ACTIVATEAPP msgs generated.
    8                   Always send Odin window handles from pmwindow.cpp to win32wbase.cpp.
    9                   Send WM_CHILDACTIVATE msg to MDI child windows.
    10 
    11  99-09-28: Daniela Engert <dani@ngrt.de>
    12         - USER32: CreateCaret fixed
     9                  Fixed WM_ACTIVATE message, generate WM_ACTIVATEAPP message
     10                  when WM_ACTIVATE is received. (instead of WM_SETFOCUS)
     11                  NOTE: Still not working correctly. Too many WM_ACTIVATEAPP msgs generated.
     12                  Always send Odin window handles from pmwindow.cpp to win32wbase.cpp.
     13                  Send WM_CHILDACTIVATE msg to MDI child windows.
    1314
    1415 99-09-28: Christoph Bratschi <cbratschi@datacomm.ch>
  • trunk/src/user32/caret.cpp

    r1088 r1094  
    1 /* $Id: caret.cpp,v 1.3 1999-09-28 18:31:24 dengert Exp $ */
     1/* $Id: caret.cpp,v 1.4 1999-09-29 09:31:18 dengert Exp $ */
    22
    33/*
     
    262262   CURSORINFO cursorInfo;
    263263
    264    if ((hwndCaret == hwndFocus) &&
     264   if ((hwndFocus != 0) && (hwndCaret == hwndFocus) &&
    265265       !WinQueryCursorInfo (HWND_DESKTOP, &cursorInfo))
    266266   {
     267      dprintf(("recreateCaret for %x", hwndFocus));
     268
    267269      CreateCaret (hwndCaret, hbmCaret, CaretWidth, CaretHeight);
    268270      SetCaretPos (CaretPosX, CaretPosY);
  • trunk/src/user32/pmwindow.cpp

    r1093 r1094  
    1 /* $Id: pmwindow.cpp,v 1.12 1999-09-29 09:16:31 sandervl Exp $ */
     1/* $Id: pmwindow.cpp,v 1.13 1999-09-29 09:31:18 dengert Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    3030#include <thread.h>
    3131#include <wprocess.h>
     32#include <caret.h>
    3233
    3334HMQ  hmq = 0;                             /* Message queue handle         */
     
    413414        }
    414415        if((ULONG)mp2 == TRUE) {
    415                 rc = win32wnd->MsgSetFocus(Win32BaseWindow::OS2ToWin32Handle(hwndFocus));
     416                HWND hwndFocusWin32 = Win32BaseWindow::OS2ToWin32Handle(hwndFocus);
     417                recreateCaret (hwndFocusWin32);
     418                rc = win32wnd->MsgSetFocus(hwndFocusWin32);
    416419        }
    417420        else    rc = win32wnd->MsgKillFocus(Win32BaseWindow::OS2ToWin32Handle(hwndFocus));
     
    748751
    749752    case WM_TIMER:
    750         win32wnd->MsgTimer((ULONG)mp1);
     753        if (mp2) win32wnd->MsgTimer((ULONG)mp1);
    751754        goto RunDefWndProc;
    752755
  • trunk/src/user32/timer.cpp

    r1066 r1094  
    1 /* $Id: timer.cpp,v 1.3 1999-09-26 16:09:04 dengert Exp $ */
     1/* $Id: timer.cpp,v 1.4 1999-09-29 09:31:18 dengert Exp $ */
    22
    33/*
     
    7474
    7575    if (i == NB_TIMERS)  /* no matching timer found */
    76         return (TRUE);   /* eat message */
     76        return (FALSE);  /* forward message */
    7777
    7878    pMsg->mp1 = MPFROMLONG (pTimer->id);
     79    pMsg->mp2 = MPFROMLONG (TRUE);   /* mark for Win32 */
    7980    if (!pTimer->proc)
    8081        return (FALSE);  /* forward message */
Note: See TracChangeset for help on using the changeset viewer.