Ignore:
Timestamp:
Aug 9, 2002, 1:19:56 PM (23 years ago)
Author:
sandervl
Message:

Partly implemented GetGUIThreadInfo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/window.cpp

    r8941 r8978  
    1 /* $Id: window.cpp,v 1.127 2002-07-30 17:46:58 achimha Exp $ */
     1/* $Id: window.cpp,v 1.128 2002-08-09 11:19:56 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    857857    dprintf(("USER32: GetFocus %x\n", hwnd));
    858858    return hwnd;
     859}
     860//******************************************************************************
     861//******************************************************************************
     862BOOL WIN32API GetGUIThreadInfo(DWORD dwThreadId, GUITHREADINFO *lpThreadInfo)
     863{
     864    dprintf(("!WARNING!: GetGUIThreadInfo not completely implemented!!"));
     865
     866    if(!lpThreadInfo || lpThreadInfo->cbSize != sizeof(GUITHREADINFO)) {
     867        SetLastError(ERROR_INVALID_PARAMETER);
     868        return FALSE;
     869    }
     870    //dwThreadId == 0 -> current thread
     871    if(!dwThreadId) dwThreadId = GetCurrentThreadId();
     872
     873    lpThreadInfo->flags;
     874    lpThreadInfo->hwndActive  = GetActiveWindow();
     875    if(lpThreadInfo->hwndActive) {
     876        if(dwThreadId != GetWindowThreadProcessId(lpThreadInfo->hwndActive, NULL))
     877        {//this thread doesn't own the active window (TODO: correct??)
     878            lpThreadInfo->hwndActive = 0;
     879        }
     880    }
     881    lpThreadInfo->hwndFocus      = GetFocus();
     882    lpThreadInfo->hwndCapture    = GetCapture();
     883    lpThreadInfo->flags          = 0;  //TODO:
     884    lpThreadInfo->hwndMenuOwner  = 0;  //TODO: Handle to the window that owns any active menus
     885    lpThreadInfo->hwndMoveSize   = 0;  //TODO: Handle to the window in a move or size loop.
     886    lpThreadInfo->hwndCaret      = 0;  //TODO: Handle to the window that is displaying the caret
     887    lpThreadInfo->rcCaret.left   = 0;
     888    lpThreadInfo->rcCaret.top    = 0;
     889    lpThreadInfo->rcCaret.right  = 0;
     890    lpThreadInfo->rcCaret.bottom = 0;
     891
     892    SetLastError(ERROR_SUCCESS);
     893    return TRUE;
    859894}
    860895//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.