Changeset 15084


Ignore:
Timestamp:
Oct 22, 2000, 9:53:25 PM (25 years ago)
Author:
sandervl
Message:

RegisterClassW fix + use different version of IsWindow in menu.cpp

Location:
tags/trunk/src/user32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified tags/trunk/src/user32/menu.cpp

    r15083 r15084  
    1 /* $Id: menu.cpp,v 1.24 2000-10-22 16:18:59 sandervl Exp $*/
     1/* $Id: menu.cpp,v 1.25 2000-10-22 19:53:23 sandervl Exp $*/
    22/*
    33 * Menu functions
     
    9999
    100100#define MENU_MAGIC   0x554d  /* 'MU' */
    101 #define IS_A_MENU(pmenu) ((pmenu) && !IsWindow((HWND)pmenu) && (pmenu)->wMagic == MENU_MAGIC)
     101
     102#ifdef __WIN32OS2__
     103//******************************************************************************
     104//Used by our menu code (we don't want any logging)
     105//******************************************************************************
     106BOOL IsWindowInternal(HWND hwnd)
     107{
     108  Win32BaseWindow *window;
     109
     110    window = Win32BaseWindow::GetWindowFromHandle(hwnd);
     111    if(!window) {
     112        return FALSE;
     113    }
     114    return window->IsWindow();
     115}
     116#define IS_A_MENU(pmenu) ((pmenu) && !IsWindowInternal((HWND)pmenu) && (pmenu)->wMagic == MENU_MAGIC)
     117#else
     118#define IS_A_MENU(pmenu) ((pmenu) && (pmenu)->wMagic == MENU_MAGIC)
     119#endif
    102120
    103121#define ITEM_PREV               -1
  • TabularUnified tags/trunk/src/user32/windowclass.cpp

    r15061 r15084  
    1 /* $Id: windowclass.cpp,v 1.12 2000-10-17 17:11:09 sandervl Exp $ */
     1/* $Id: windowclass.cpp,v 1.13 2000-10-22 19:53:25 sandervl Exp $ */
    22/*
    33 * Win32 Window Class Code for OS/2
     
    107107    wc.cbSize = sizeof(wc);
    108108    memcpy(&wc.style, lpwc, sizeof(WNDCLASSA));
     109    wc.hIconSm = 0;
    109110
    110111    if(Win32WndClass::FindClass(wc.hInstance, (LPWSTR)wc.lpszClassName)) {
Note: See TracChangeset for help on using the changeset viewer.