Changeset 331 for trunk/src


Ignore:
Timestamp:
Jul 18, 1999, 7:12:52 PM (26 years ago)
Author:
sandervl
Message:

* empty log message *

Location:
trunk/src/user32/new
Files:
2 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/makefile

    r330 r331  
    1 # $Id: makefile,v 1.9 1999-07-18 17:12:02 sandervl Exp $
     1# $Id: makefile,v 1.10 1999-07-18 17:12:52 sandervl Exp $
    22
    33#
     
    3030        windowword.obj gen_object.obj oslibwin.obj win32wndchild.obj \
    3131        controls.obj button.obj oslibutil.obj oslibmsg.obj windlg.obj \
    32         winprop.obj wingdi.obj oslibgdi.obj winacc.obj winscrollbar.obj
     32        winprop.obj wingdi.obj oslibgdi.obj winaccel.obj winscrollbar.obj
    3333
    3434
     
    8080windowclass.obj: windowclass.cpp win32class.h win32wnd.h win32wndchild.h
    8181windowword.obj:  windowword.cpp win32class.h win32wnd.h win32dlg.h win32wndchild.h
    82 winacc.obj:     winacc.cpp
     82winaccel.obj:     winaccel.cpp
    8383winscrollbar.obj: winscrollbar.cpp
    8484
  • trunk/src/user32/new/window.cpp

    r325 r331  
    1 /* $Id: window.cpp,v 1.5 1999-07-18 10:39:52 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.6 1999-07-18 17:12:03 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    1919#include <misc.h>
    2020#include <win32wnd.h>
     21#include <oslibwin.h>
     22#include "user32.h"
     23#include "icon.h"
     24#include "usrcall.h"
    2125
    2226//******************************************************************************
     
    378382//******************************************************************************
    379383//******************************************************************************
     384BOOL WIN32API SetWindowPlacement( HWND arg1, const WINDOWPLACEMENT *  arg2)
     385{
     386    dprintf(("USER32:  SetWindowPlacement\n"));
     387    return O32_SetWindowPlacement(arg1, arg2);
     388}
     389//******************************************************************************
     390//******************************************************************************
    380391BOOL WIN32API IsWindow( HWND hwnd)
    381392{
     
    418429    return window->IsWindowVisible();
    419430}
     431//******************************************************************************
     432//******************************************************************************
     433HWND WIN32API SetFocus( HWND hwnd)
     434{
     435 HWND lastFocus;
     436
     437    dprintf(("USER32:  SetFocus\n"));
     438
     439    lastFocus = GetFocus();
     440    hwnd = Win32Window::Win32ToOS2Handle(hwnd);
     441    return (OSLibWinSetFocus(OSLIB_HWND_DESKTOP,hwnd)) ? lastFocus:0;
     442}
     443//******************************************************************************
     444//******************************************************************************
     445HWND WIN32API GetFocus(void)
     446{
     447    HWND hwnd;
     448//    dprintf(("USER32:  GetFocus\n"));
     449
     450    hwnd = OSLibWinQueryFocus(OSLIB_HWND_DESKTOP);
     451    return Win32Window::OS2ToWin32Handle(hwnd);
     452}
     453//******************************************************************************
     454//******************************************************************************
    420455/***********************************************************************
    421456 *           GetInternalWindowPos   (USER32.245)
     
    434469    if (O32_GetWindowPlacement( hwnd, &wndpl ))
    435470    {
    436    if (rectWnd) *rectWnd = wndpl.rcNormalPosition;
    437    if (ptIcon)  *ptIcon = wndpl.ptMinPosition;
    438    return wndpl.showCmd;
     471        if (rectWnd) *rectWnd = wndpl.rcNormalPosition;
     472        if (ptIcon)  *ptIcon = wndpl.ptMinPosition;
     473        return wndpl.showCmd;
    439474    }
    440475    return 0;
     
    541576   return(rc);
    542577}
     578/*******************************************************************
     579 *      InternalGetWindowText    (USER32.326)
     580 */
     581int WIN32API InternalGetWindowText(HWND   hwnd,
     582                                   LPWSTR lpString,
     583                                   INT    nMaxCount )
     584{
     585    dprintf(("USER32: InternalGetWindowText(%08xh,%08xh,%08xh) not properly implemented.\n",
     586             hwnd,
     587             lpString,
     588             nMaxCount));
     589
     590    return GetWindowTextW(hwnd,lpString,nMaxCount);
     591}
    543592//******************************************************************************
    544593//******************************************************************************
     
    562611//******************************************************************************
    563612//******************************************************************************
     613HWND WIN32API GetDesktopWindow(void)
     614{
     615    dprintf(("USER32:  GetDesktopWindow\n"));
     616    return OSLIB_HWND_DESKTOP;
     617}
     618//******************************************************************************
     619//******************************************************************************
    564620HWND WIN32API FindWindowA(LPCSTR arg1, LPCSTR arg2)
    565621{
     
    580636//******************************************************************************
    581637//******************************************************************************
    582 BOOL WIN32API FlashWindow( HWND arg1, BOOL  arg2)
    583 {
    584 #ifdef DEBUG
    585     WriteLog("USER32:  FlashWindow\n");
    586 #endif
    587     return O32_FlashWindow(arg1, arg2);
     638BOOL WIN32API FlashWindow(HWND hwnd, BOOL fFlash)
     639{
     640    dprintf(("FlashWindow %x %d\n", hwnd, fFlash));
     641    return OSLibWinFlashWindow(Win32Window::Win32ToOS2Handle(hwnd), fFlash);
    588642}
    589643//******************************************************************************
     
    786840//******************************************************************************
    787841//******************************************************************************
     842BOOL WIN32API EnumThreadWindows(DWORD dwThreadId, WNDENUMPROC lpfn, LPARAM lParam)
     843{
     844 BOOL                rc;
     845 EnumWindowCallback *callback = new EnumWindowCallback(lpfn, lParam);
     846
     847  dprintf(("USER32:  EnumThreadWindows\n"));
     848  //CB: replace
     849  rc = O32_EnumThreadWindows(dwThreadId, callback->GetOS2Callback(), (LPARAM)callback);
     850  if(callback)
     851    delete callback;
     852  return(rc);
     853}
     854//******************************************************************************
     855//******************************************************************************
     856BOOL WIN32API GetUpdateRect( HWND hwnd, PRECT lpRect, BOOL  bErase)
     857{
     858    dprintf(("GetUpdateRect %x %d\n", hwnd, bErase));
     859    if (!lpRect) return FALSE;
     860
     861    return OSLibWinQueryUpdateRect(Win32Window::Win32ToOS2Handle(hwnd), (PVOID)&lpRect);
     862}
     863//******************************************************************************
     864//******************************************************************************
     865BOOL WIN32API EnableScrollBar( HWND arg1, INT arg2, UINT  arg3)
     866{
     867#ifdef DEBUG
     868    WriteLog("USER32:  EnableScrollBar\n");
     869#endif
     870    //CB: implement in window class
     871    return O32_EnableScrollBar(arg1, arg2, arg3);
     872}
     873//******************************************************************************
     874//******************************************************************************
     875UINT WIN32API ArrangeIconicWindows( HWND arg1)
     876{
     877#ifdef DEBUG
     878    WriteLog("USER32:  ArrangeIconicWindows\n");
     879#endif
     880    return O32_ArrangeIconicWindows(arg1);
     881}
     882//******************************************************************************
     883//restores iconized window to previous size/position
     884//******************************************************************************
     885BOOL WIN32API OpenIcon(HWND hwnd)
     886{
     887#ifdef DEBUG
     888  WriteLog("USER32:  OpenIcon\n");
     889#endif
     890  if(!IsIconic(hwnd))
     891        return FALSE;
     892  ShowWindow(hwnd, SW_SHOWNORMAL);
     893  return TRUE;
     894}
     895//******************************************************************************
     896//******************************************************************************
     897BOOL WIN32API ShowOwnedPopups( HWND arg1, BOOL  arg2)
     898{
     899    dprintf(("USER32:  ShowOwnedPopups\n"));
     900    return O32_ShowOwnedPopups(arg1, arg2);
     901}
     902//******************************************************************************
     903//******************************************************************************
  • trunk/src/user32/new/windowmsg.cpp

    r321 r331  
    1 /* $Id: windowmsg.cpp,v 1.6 1999-07-17 11:52:24 sandervl Exp $ */
     1/* $Id: windowmsg.cpp,v 1.7 1999-07-18 17:12:03 sandervl Exp $ */
    22/*
    33 * Win32 window message APIs for OS/2
     
    414414  return (FALSE);
    415415}
    416 //******************************************************************************
    417 //******************************************************************************
     416/*****************************************************************************
     417 * Name      : long WIN32API BroadcastSystemMessage
     418 * Purpose   : The BroadcastSystemMessage function sends a message to the given
     419 *             recipients. The recipients can be applications, installable
     420 *             drivers, Windows-based network drivers, system-level device
     421 *             drivers, or any combination of these system components.
     422 * Parameters: DWORD   dwFlags,
     423               LPDWORD lpdwRecipients,
     424               UINT    uiMessage,
     425               WPARAM  wParam,
     426               LPARAM  lParam
     427 * Variables :
     428 * Result    : If the function succeeds, the return value is a positive value.
     429 *             If the function is unable to broadcast the message, the return value is -1.
     430 *             If the dwFlags parameter is BSF_QUERY and at least one recipient returned FALSE to the corresponding message, the return value is zero.
     431 * Remark    :
     432 * Status    : UNTESTED STUB
     433 *
     434 * Author    : Patrick Haller [Thu, 1998/02/26 11:55]
     435 *****************************************************************************/
     436
     437long WIN32API BroadcastSystemMessage(DWORD   dwFlags,
     438                                        LPDWORD lpdwRecipients,
     439                                        UINT    uiMessage,
     440                                        WPARAM  wParam,
     441                                        LPARAM  lParam)
     442{
     443  dprintf(("USER32:BroadcastSystemMessage(%08xh,%08xh,%08xh,%08xh,%08x) not implemented.\n",
     444        dwFlags,
     445        lpdwRecipients,
     446        uiMessage,
     447        wParam,
     448        lParam));
     449
     450  return (-1);
     451}
     452//******************************************************************************
     453//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.