- Timestamp:
- Dec 30, 1999, 7:33:00 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/Makefile
r2246 r2269 1 # $Id: Makefile,v 1.5 3 1999-12-29 12:39:43 sandervlExp $1 # $Id: Makefile,v 1.54 1999-12-30 18:32:57 cbratschi Exp $ 2 2 3 3 # … … 38 38 windowword.obj gen_object.obj oslibwin.obj win32wndchild.obj \ 39 39 controls.obj button.obj static.obj scroll.obj listbox.obj \ 40 combo.obj edit.obj clipboard.obj winicon.obj win32wmdiclient.obj \41 oslibutil.obj oslibmsg.obj dib.obj oslibdos.obj win32wmdichild.obj \42 win prop.obj wingdi.obj oslibgdi.obj winaccel.obj win32wbasepos.obj \43 oslibres.obj dummy.obj oslibmenu.obj dc.obj timer.obj \40 combo.obj edit.obj winswitch.obj icontitle.obj clipboard.obj winicon.obj \ 41 win32wmdiclient.obj oslibutil.obj oslibmsg.obj dib.obj oslibdos.obj \ 42 win32wmdichild.obj winprop.obj wingdi.obj oslibgdi.obj winaccel.obj \ 43 win32wbasepos.obj oslibres.obj dummy.obj oslibmenu.obj dc.obj timer.obj \ 44 44 caret.obj resource.obj winproc.obj text.obj oslibmsgtranslate.obj \ 45 45 windlgmsg.obj windlg.obj win32wdesktop.obj … … 112 112 combo.obj: combo.cpp $(PDWIN32_INCLUDE)\win\combo.h initterm.h 113 113 edit.obj: edit.cpp $(PDWIN32_INCLUDE)\win\combo.h 114 menu.obj: menu.cpp $(PDWIN32_INCLUDE)\win\menu.h 115 winswitch.obj: winswitch.cpp $(PDWIN32_INCLUDE)\win\winswitch.h 116 icontitle.obj: icontitle.cpp $(PDWIN32_INCLUDE)\win\icontitle.h 114 117 115 118 msgbox.obj: msgbox.cpp -
trunk/src/user32/button.cpp
r2228 r2269 1 /* $Id: button.cpp,v 1.2 7 1999-12-28 17:04:22cbratschi Exp $ */1 /* $Id: button.cpp,v 1.28 1999-12-30 18:32:57 cbratschi Exp $ */ 2 2 /* File: button.cpp -- Button type widgets 3 3 * … … 15 15 #include <string.h> 16 16 #include <stdlib.h> 17 18 17 #include <os2win.h> 19 18 #include "controls.h" -
trunk/src/user32/controls.cpp
r1433 r2269 1 /* $Id: controls.cpp,v 1. 5 1999-10-24 22:56:01 sandervlExp $ */1 /* $Id: controls.cpp,v 1.6 1999-12-30 18:32:58 cbratschi Exp $ */ 2 2 /* File: controls.cpp -- Win32 common controls 3 3 * … … 17 17 #include "win32dlg.h" 18 18 #include "win32wdesktop.h" 19 #include "winswitch.h" 20 #include "icontitle.h" 19 21 #include "controls.h" 20 22 … … 63 65 dprintf(("Register DESKTOP class")); 64 66 controlAtoms[DESKTOP_CONTROL] = DESKTOP_Register(); 65 if (!controlAtoms[DESKTOP_CONTROL]) dprintf(("failed!!!")); 67 if (!controlAtoms[DESKTOP_CONTROL]) dprintf(("failed!!!")); 68 69 dprintf(("Register WINSWITCH class")); 70 controlAtoms[WINSWITCH_CONTROL] = WINSWITCH_Register(); 71 if (!controlAtoms[WINSWITCH_CONTROL]) dprintf(("failed!!!")); 72 73 dprintf(("Register ICONTITLE class")); 74 controlAtoms[ICONTITLE_CONTROL] = ICONTITLE_Register(); 75 if (!controlAtoms[ICONTITLE_CONTROL]) dprintf(("failed!!!")); 66 76 } 67 77 … … 97 107 dprintf(("Unregister DESKTOP class")); 98 108 if (!DESKTOP_Unregister()) dprintf(("failed!!!")); 109 110 dprintf(("Unregister WINSWITCH class")); 111 if (!WINSWITCH_Unregister()) dprintf(("failed!!!")); 112 113 dprintf(("Unregister ICONTITLE class")); 114 if (!ICONTITLE_Unregister()) dprintf(("failed!!!")); 99 115 } 100 116 … … 103 119 { 104 120 if(control >= MAX_CONTROLS || window == NULL || window->getClass() == NULL) 105 121 return FALSE; 106 122 107 123 return controlAtoms[control] == window->getClass()->getAtom(); -
trunk/src/user32/controls.h
r1368 r2269 1 /* $Id: controls.h,v 1. 1 1999-10-20 06:38:08 sandervlExp $ */1 /* $Id: controls.h,v 1.2 1999-12-30 18:32:58 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 common controls … … 19 19 void CONTROLS_Unregister(); 20 20 21 #define BUTTON_CONTROL 0 22 #define STATIC_CONTROL 1 23 #define SCROLLBAR_CONTROL 2 24 #define LISTBOX_CONTROL 3 25 #define COMBOLBOX_CONTROL 4 26 #define COMBOBOX_CONTROL 5 27 #define EDIT_CONTROL 6 28 #define MDICLIENT_CONTROL 7 29 #define DIALOG_CONTROL 8 30 #define DESKTOP_CONTROL 9 31 #define MAX_CONTROLS 10 21 #define BUTTON_CONTROL 0 22 #define STATIC_CONTROL 1 23 #define SCROLLBAR_CONTROL 2 24 #define LISTBOX_CONTROL 3 25 #define COMBOLBOX_CONTROL 4 26 #define COMBOBOX_CONTROL 5 27 #define EDIT_CONTROL 6 28 #define MDICLIENT_CONTROL 7 29 #define DIALOG_CONTROL 8 30 #define DESKTOP_CONTROL 9 31 #define WINSWITCH_CONTROL 10 32 #define ICONTITLE_CONTROL 11 33 #define MAX_CONTROLS 12 32 34 33 35 BOOL WIDGETS_IsControl(Win32BaseWindow *window, int control); -
trunk/src/user32/win32wbase.cpp
r2266 r2269 1 /* $Id: win32wbase.cpp,v 1.12 8 1999-12-30 11:21:00 sandervlExp $ */1 /* $Id: win32wbase.cpp,v 1.129 1999-12-30 18:32:59 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2875 2875 BOOL Win32BaseWindow::hasWindowName(LPSTR wndname, BOOL fUnicode) 2876 2876 { 2877 if(wndname == NULL) 2878 return FALSE; 2879 2880 if(fUnicode) { 2881 return (lstrcmpW(windowNameW, (LPWSTR)wndname) == 0); 2882 } 2883 else return (strcmp(windowNameA, wndname) == 0); 2877 INT len = GetWindowTextLength(); 2878 BOOL res; 2879 2880 if (wndname == NULL) 2881 return (len == 0); 2882 2883 len++; 2884 if (fUnicode) 2885 { 2886 WCHAR *text = (WCHAR*)malloc(len*sizeof(WCHAR)); 2887 2888 GetWindowTextW(text,len); 2889 res = (lstrcmpW(text,(LPWSTR)wndname) == 0); 2890 free(text); 2891 } else 2892 { 2893 CHAR *text = (CHAR*)malloc(len*sizeof(CHAR)); 2894 2895 GetWindowTextA(text,len); 2896 res = (strcmp(text,wndname) == 0); 2897 free(text); 2898 } 2899 2900 return res; 2884 2901 } 2885 2902 //****************************************************************************** -
trunk/src/user32/win32wbase.h
r2261 r2269 1 /* $Id: win32wbase.h,v 1.6 1 1999-12-30 09:31:03 sandervlExp $ */1 /* $Id: win32wbase.h,v 1.62 1999-12-30 18:33:00 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 101 101 DWORD getExStyle() { return dwExStyle; }; 102 102 void setExStyle(DWORD newexstyle) { dwExStyle = newexstyle; }; 103 ULONG getInstance() { return hInstance; }; 104 void setInstance(ULONG newinstance) { hInstance = newinstance; }; 103 105 HWND getWindowHandle() { return Win32Hwnd; }; 104 106 HWND getOS2WindowHandle() { return OS2Hwnd; }; … … 193 195 BOOL hasWindowName(LPSTR wndname, BOOL fUnicode = 0); 194 196 Win32WndClass *getClass() { return windowClass; }; 195 char *getWindowNameA() { return windowNameA; }; 196 Win32BaseWindow *getOwner() { return owner; }; 197 //CB: windowNameA isn't always the window name! 198 char *getWindowNameA() { return windowNameA; }; 199 Win32BaseWindow *getOwner() { return owner; }; 200 void setOwner(Win32BaseWindow *newOwner) { owner = newOwner; }; 197 201 198 202 SCROLLBAR_INFO *getScrollInfo(int nBar);
Note:
See TracChangeset
for help on using the changeset viewer.