00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __CONTROLS_H
00010 #define __CONTROLS_H
00011
00012 #ifdef __cplusplus
00013 #include "win32wbase.h"
00014 #endif
00015
00016 #define GetInfoPtr(hwnd) (GetWindowLongA(hwnd,0))
00017 #define SetInfoPtr(hwnd,data) \
00018 SetWindowLongA(hwnd,0,data)
00019
00020 void CONTROLS_Register();
00021 void CONTROLS_Unregister();
00022
00023 #define BUTTON_CONTROL 0
00024 #define STATIC_CONTROL 1
00025 #define SCROLLBAR_CONTROL 2
00026 #define LISTBOX_CONTROL 3
00027 #define COMBOLBOX_CONTROL 4
00028 #define COMBOBOX_CONTROL 5
00029 #define EDIT_CONTROL 6
00030 #define MDICLIENT_CONTROL 7
00031 #define DIALOG_CONTROL 8
00032 #define DESKTOP_CONTROL 9
00033 #define WINSWITCH_CONTROL 10
00034 #define ICONTITLE_CONTROL 11
00035 #define POPUPMENU_CONTROL 12
00036 #define MAX_CONTROLS 13
00037
00038 #ifdef __cplusplus
00039 BOOL CONTROLS_IsControl(Win32BaseWindow *window, int control);
00040 #endif
00041
00042
00043
00044 #define ID_CB_LISTBOX 1000
00045 #define ID_CB_EDIT 1001
00046
00047 #endif // __CONTROLS_H