1 | /*
|
---|
2 | * (C) Chris Wohlgemuth 2001-2003
|
---|
3 | *
|
---|
4 | */
|
---|
5 | /*
|
---|
6 | * This program is free software; you can redistribute it and/or modify
|
---|
7 | * it under the terms of the GNU General Public License as published by
|
---|
8 | * the Free Software Foundation; either version 2, or (at your option)
|
---|
9 | * any later version.
|
---|
10 | *
|
---|
11 | * This program is distributed in the hope that it will be useful,
|
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
14 | * GNU General Public License for more details.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU General Public License
|
---|
17 | * along with this program; see the file COPYING. If not, write to
|
---|
18 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
19 | */
|
---|
20 | /*
|
---|
21 | * If you need another license for your project/product contact me at
|
---|
22 | *
|
---|
23 | * http://www.os2world.com/cdwriting
|
---|
24 | * http://www.geocities.com/SiliconValley/Sector/5785/
|
---|
25 | */
|
---|
26 | #define INCL_PM
|
---|
27 |
|
---|
28 | #include <os2.h>
|
---|
29 | #include <stdio.h>
|
---|
30 |
|
---|
31 | #include "message_funcs.h"
|
---|
32 |
|
---|
33 | /* Show a messagebox with the text ulIDText and title ulIDTitle loaded from
|
---|
34 | the resource DLL */
|
---|
35 | ULONG showMsgBox(ULONG ulIDTitle, ULONG ulIDText, HMODULE hModule)
|
---|
36 | {
|
---|
37 | char text[256];
|
---|
38 | char title[100];
|
---|
39 |
|
---|
40 | return messageBox( text, ulIDText , sizeof(text),
|
---|
41 | title, ulIDTitle, sizeof(title),
|
---|
42 | hModule, HWND_DESKTOP, MB_OK | MB_MOVEABLE | MB_ERROR);
|
---|
43 | };
|
---|
44 |
|
---|
45 | ULONG showMsgBox2(ULONG ulIDTitle, ULONG ulIDText, HMODULE hModule, ULONG ulFlag)
|
---|
46 | {
|
---|
47 | char text[256];
|
---|
48 | char title[100];
|
---|
49 |
|
---|
50 | return messageBox( text, ulIDText , sizeof(text),
|
---|
51 | title, ulIDTitle, sizeof(title),
|
---|
52 | hModule, HWND_DESKTOP, ulFlag);
|
---|
53 | };
|
---|
54 |
|
---|
55 |
|
---|
56 |
|
---|
57 |
|
---|
58 |
|
---|