| Line |  | 
|---|
| 1 | /* $Id: controls.h,v 1.5 2001-04-26 17:02:28 sandervl Exp $ */ | 
|---|
| 2 | /* | 
|---|
| 3 | * Win32 common controls | 
|---|
| 4 | * | 
|---|
| 5 | * Copyright (c) 1999 Christoph Bratschi | 
|---|
| 6 | * | 
|---|
| 7 | */ | 
|---|
| 8 |  | 
|---|
| 9 | #ifndef __CONTROLS_H | 
|---|
| 10 | #define __CONTROLS_H | 
|---|
| 11 |  | 
|---|
| 12 | #ifdef __cplusplus | 
|---|
| 13 | #include "win32wbase.h" | 
|---|
| 14 | #endif | 
|---|
| 15 |  | 
|---|
| 16 | #define GetInfoPtr(hwnd) (GetWindowLongA(hwnd,0)) | 
|---|
| 17 | #define SetInfoPtr(hwnd,data) \ | 
|---|
| 18 | SetWindowLongA(hwnd,0,data) | 
|---|
| 19 |  | 
|---|
| 20 | void CONTROLS_Register(); | 
|---|
| 21 | void CONTROLS_Unregister(); | 
|---|
| 22 |  | 
|---|
| 23 | #define BUTTON_CONTROL          0 | 
|---|
| 24 | #define STATIC_CONTROL          1 | 
|---|
| 25 | #define SCROLLBAR_CONTROL       2 | 
|---|
| 26 | #define LISTBOX_CONTROL         3 | 
|---|
| 27 | #define COMBOLBOX_CONTROL       4 | 
|---|
| 28 | #define COMBOBOX_CONTROL        5 | 
|---|
| 29 | #define EDIT_CONTROL            6 | 
|---|
| 30 | #define MDICLIENT_CONTROL       7 | 
|---|
| 31 | #define DIALOG_CONTROL          8 | 
|---|
| 32 | #define DESKTOP_CONTROL         9 | 
|---|
| 33 | #define WINSWITCH_CONTROL       10 | 
|---|
| 34 | #define ICONTITLE_CONTROL       11 | 
|---|
| 35 | #define POPUPMENU_CONTROL       12 | 
|---|
| 36 | #define MAX_CONTROLS            13 | 
|---|
| 37 |  | 
|---|
| 38 | #ifdef __cplusplus | 
|---|
| 39 | BOOL CONTROLS_IsControl(Win32BaseWindow *window, int control); | 
|---|
| 40 | #endif | 
|---|
| 41 |  | 
|---|
| 42 | /* combo box */ | 
|---|
| 43 |  | 
|---|
| 44 | #define ID_CB_LISTBOX           1000 | 
|---|
| 45 | #define ID_CB_EDIT              1001 | 
|---|
| 46 |  | 
|---|
| 47 | #endif // __CONTROLS_H | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.