Changeset 7248 for trunk/src


Ignore:
Timestamp:
Oct 28, 2001, 4:24:16 PM (24 years ago)
Author:
sandervl
Message:

customization updates

Location:
trunk/src/user32
Files:
2 edited

Legend:

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

    r7095 r7248  
    1 /* $Id: windlg.cpp,v 1.27 2001-10-17 14:30:10 sandervl Exp $ */
     1/* $Id: windlg.cpp,v 1.28 2001-10-28 15:24:16 sandervl Exp $ */
    22/*
    33 * Win32 dialog apis for OS/2
     
    2525#include <heapstring.h>
    2626#include <win\drive.h>
     27#include <custombuild.h>
    2728
    2829#define DBG_LOCALLOG    DBG_windlg
     
    6364    return CreateDialogIndirectParamW(hInst, (LPCDLGTEMPLATEW)LoadResource(hInst, hrsrc),
    6465                                      hwndOwner, dlgproc, lParamInit);
     66}
     67//******************************************************************************
     68//This function can be used by a custom Odin build to register a hook procedure
     69//that gets called before or after dialog creation
     70//******************************************************************************
     71static HOOKPROC pfnDialogHook = NULL;
     72//******************************************************************************
     73BOOL WIN32API SetDialogHook(HOOKPROC pfnDialogProc)
     74{
     75    dprintf(("SetDialogHook %x", pfnDialogProc));
     76    pfnDialogHook = pfnDialogProc;
     77    return TRUE;
     78}
     79//******************************************************************************
     80//******************************************************************************
     81BOOL WIN32API ClearDialogHook()
     82{
     83    pfnDialogHook = NULL;
     84    return TRUE;
    6585}
    6686//******************************************************************************
     
    92112    }
    93113    HWND hwnd = dialog->getWindowHandle();
     114
     115    if(pfnDialogHook) {
     116        dprintf(("Calling Dialog hook for dialog %x", hwnd));
     117        pfnDialogHook(HCUSTOM_POSTDIALOGCREATION, hwnd, 0);
     118    }
     119
    94120    RELEASE_WNDOBJ(dialog);
    95121    return hwnd;
     
    123149    }
    124150    HWND hwnd = dialog->getWindowHandle();
     151
     152    if(pfnDialogHook) {
     153        dprintf(("Calling Dialog hook for dialog %x", hwnd));
     154        pfnDialogHook(HCUSTOM_POSTDIALOGCREATION, hwnd, 0);
     155    }
     156
    125157    RELEASE_WNDOBJ(dialog);
    126158    return hwnd;
  • trunk/src/user32/window.cpp

    r7183 r7248  
    1 /* $Id: window.cpp,v 1.112 2001-10-24 10:26:46 sandervl Exp $ */
     1/* $Id: window.cpp,v 1.113 2001-10-28 15:24:16 sandervl Exp $ */
    22/*
    33 * Win32 window apis for OS/2
     
    192192#ifdef DEBUG
    193193    if(HIWORD(className)) {
    194          dprintf(("CreateWindowExW: class %ls name %ls parent %x (%d,%d) (%d,%d), %x %x", className, HIWORD(windowName) ? windowName : NULL, parent, x, y, width, height, style, exStyle));
    195     }
    196     else dprintf(("CreateWindowExW: class %d name %ls parent %x (%d,%d) (%d,%d), %x %x", className, HIWORD(windowName) ? windowName : NULL, parent, x, y, width, height, style, exStyle));
     194         dprintf(("CreateWindowExW: class %ls name %ls parent %x (%d,%d) (%d,%d), %x %x menu=%x", className, HIWORD(windowName) ? windowName : NULL, parent, x, y, width, height, style, exStyle, menu));
     195    }
     196    else dprintf(("CreateWindowExW: class %d name %ls parent %x (%d,%d) (%d,%d), %x %x menu=%x", className, HIWORD(windowName) ? windowName : NULL, parent, x, y, width, height, style, exStyle, menu));
    197197#endif
    198198    if (!HIWORD(className))
Note: See TracChangeset for help on using the changeset viewer.