source: trunk/src/user32/new/controls.cpp@ 346

Last change on this file since 346 was 346, checked in by cbratschi, 26 years ago

controls update

File size: 844 bytes
Line 
1/* File: controls.cpp -- Win32 common controls
2 *
3 * Copyright (c) 1999 Christoph Bratschi
4 *
5 */
6
7#include <os2win.h>
8#include <string.h>
9#include "misc.h"
10
11#include "controls.h"
12#include "button.h"
13
14/* registration */
15
16void CONTROLS_Register()
17{
18 dprintf(("Register BUTTON class"));
19 BUTTON_Register() ? dprintf(("done")):dprintf(("failed!!!"));
20}
21
22void CONTROLS_Unregister()
23{
24 dprintf(("Unregister BUTTON class"));
25 BUTTON_Unregister();
26}
27
28/* Win32 <-> internal control name */
29
30char* Win32ToOdinControlName(char* name)
31{
32 if (!name) return NULL;
33
34 if (stricmp(name,WIN32BUTTONCLASSNAME))
35 return ODINBUTTONCLASSNAME;
36
37 return name; //original name
38}
39
40char* OdinToWin32ControlName(char* name)
41{
42 if (!name) return NULL;
43
44 if (stricmp(name,ODINBUTTONCLASSNAME))
45 return WIN32BUTTONCLASSNAME;
46
47 return name; //original name
48}
Note: See TracBrowser for help on using the repository browser.