Ignore:
Timestamp:
Aug 31, 1999, 4:36:46 PM (26 years ago)
Author:
sandervl
Message:

Added class for menu resources + fixed makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/winimgres.cpp

    r634 r752  
    1 /* $Id: winimgres.cpp,v 1.12 1999-08-22 22:11:22 sandervl Exp $ */
     1/* $Id: winimgres.cpp,v 1.13 1999-08-31 14:36:46 sandervl Exp $ */
    22
    33/*
     
    2323#include <winexe.h>
    2424#include <winres.h>
     25#include <winresmenu.h>
    2526#include <unicode.h>
    2627#include <heapstring.h>
     
    274275        }
    275276  }
    276   else  res = new Win32Resource(this, id, type, pData->Size, resdata);
     277  else {
     278        switch(type) {
     279        case NTRT_MENU:
     280                res = new Win32MenuRes(this, id, type, pData->Size, resdata);
     281                break;
     282        default:
     283                res = new Win32Resource(this, id, type, pData->Size, resdata);
     284                break;
     285        }
     286       
     287  }
    277288
    278289  return res;
     
    343354    if(hres)
    344355    {
    345         res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType);
     356        switch((ULONG)szType) {
     357        case NTRT_MENU:
     358                res = new Win32MenuRes(this, hres, (ULONG)lpszName, (ULONG)szType);
     359                break;
     360        default:
     361                res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType);
     362                break;
     363        }
    346364    }
    347365
     
    440458    if(hres)
    441459    {
    442         res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType);
     460        switch((ULONG)szType) {
     461        case NTRT_MENU:
     462                res = new Win32MenuRes(this, hres, (ULONG)lpszName, (ULONG)szType);
     463                break;
     464        default:
     465                res = new Win32Resource(this, hres, (ULONG)lpszName, (ULONG)szType);
     466                break;
     467        }
    443468    }
    444469
Note: See TracChangeset for help on using the changeset viewer.