source: trunk/src/kernel32/old/winresmenu.cpp@ 1036

Last change on this file since 1036 was 955, checked in by sandervl, 26 years ago

Backup copy of old kernel32

File size: 2.3 KB
Line 
1/* $Id: winresmenu.cpp,v 1.1 1999-09-15 23:33:02 sandervl Exp $ */
2
3/*
4 * Win32 Menu resource class
5 *
6 * Copyright 1999 Sander van Leeuwen (sandervl@xs4all.nl)
7 *
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 */
12#define INCL_BASE
13#define INCL_WIN
14#define INCL_GPIBITMAPS
15#define INCL_BITMAPFILEFORMAT
16#define INCL_DOSMODULEMGR
17#include <os2wrap.h> //Odin32 OS/2 api wrappers
18#include <stdarg.h>
19#include <string.h>
20#define INCL_WINRES
21#include <win32type.h>
22#include <winres.h>
23#include <winresmenu.h>
24#include <misc.h>
25#include <nameid.h>
26#include <winexe.h>
27#include "cvtresource.h"
28
29//******************************************************************************
30//******************************************************************************
31Win32MenuRes::Win32MenuRes(Win32Image *module, HRSRC hRes, ULONG id, ULONG type)
32 : Win32Resource(module, hRes, id, type)
33{
34}
35//******************************************************************************
36//******************************************************************************
37Win32MenuRes::Win32MenuRes(Win32Image *module, ULONG id, ULONG type,
38 ULONG size, char *resdata)
39 : Win32Resource(module, id, type, size, resdata)
40{
41}
42//******************************************************************************
43//******************************************************************************
44Win32MenuRes::Win32MenuRes(HWND hwndObjectMenu)
45 : Win32Resource()
46{
47 OS2ResHandle = hwndObjectMenu;
48 resType = RSRC_CUSTOMNODATA;
49}
50//******************************************************************************
51//Template always contains Unicode strings
52//******************************************************************************
53Win32MenuRes::Win32MenuRes(LPVOID menutemplate)
54 : Win32Resource()
55{
56 resType = RSRC_CUSTOMINDIRECT;
57
58 os2resdata = ConvertMenu((MenuHeader *)menutemplate, 0);
59 OS2ResHandle = 0;
60}
61//******************************************************************************
62//******************************************************************************
63Win32MenuRes::~Win32MenuRes()
64{
65}
66//******************************************************************************
67//******************************************************************************
Note: See TracBrowser for help on using the repository browser.