Ignore:
Timestamp:
Jul 15, 1999, 8:03:03 PM (26 years ago)
Author:
sandervl
Message:

Send/PostMessage changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/new/pmwindow.cpp

    r304 r309  
    1 /* $Id: pmwindow.cpp,v 1.3 1999-07-14 21:05:58 cbratschi Exp $ */
     1/* $Id: pmwindow.cpp,v 1.4 1999-07-15 18:03:02 sandervl Exp $ */
    22/*
    33 * Win32 Window Managment Code for OS/2
     
    1414#include <os2.h>                        /* PM header file               */
    1515#include <os2wrap.h>
     16#include <stdlib.h>
    1617#include "win32type.h"
    1718#include <wprocess.h>
     
    6869MRESULT EXPENTRY Win32WindowProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    6970{
     71 POSTMSG_PACKET *postmsg;
    7072 Win32Window  *win32wnd;
    7173 ULONG         magic;
     
    8486  switch( msg )
    8587  {
     88    //internal messages
     89    case WM_WIN32_POSTMESSAGEA:
     90        postmsg = (POSTMSG_PACKET *)mp1;
     91        if(postmsg == NULL) {
     92                dprintf(("WM_WIN32_POSTMESSAGEA, postmsg NULL!!"));
     93                break;
     94        }
     95        win32wnd->SendMessageA(postmsg->Msg, postmsg->wParam, postmsg->lParam);
     96        free(postmsg);
     97        break;
     98
     99    case WM_WIN32_POSTMESSAGEW:
     100        postmsg = (POSTMSG_PACKET *)mp1;
     101        if(postmsg == NULL) {
     102                dprintf(("WM_WIN32_POSTMESSAGEW, postmsg NULL!!"));
     103                break;
     104        }
     105        win32wnd->SendMessageW(postmsg->Msg, postmsg->wParam, postmsg->lParam);
     106        free(postmsg);
     107        break;
     108
     109    //OS/2 msgs
    86110    case WM_CREATE:
    87111        //Processing is done in after WinCreateWindow returns
Note: See TracChangeset for help on using the changeset viewer.