Changeset 11953
- Timestamp:
- Oct 19, 1999, 9:26:08 PM (26 years ago)
- Location:
- tags/trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/user32/Makefile ¶
r11853 r11953 1 # $Id: Makefile,v 1.3 1 1999-10-13 14:24:24sandervl Exp $1 # $Id: Makefile,v 1.32 1999-10-19 19:26:07 sandervl Exp $ 2 2 3 3 # … … 124 124 win32wbasepos.obj: win32wbasepos.cpp win32class.h win32wbase.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h dc.h pmframe.h win32wdesktop.h 125 125 win32wnd.obj: win32wnd.cpp win32class.h win32wbase.h win32wnd.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h $(PDWIN32_INCLUDE)\winres.h oslibres.h win32wndhandle.h oslibdos.h oslibmenu.h 126 win32dlg.obj: win32dlg.cpp win32class.h win32wbase.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h oslibmsg.h 126 win32dlg.obj: win32dlg.cpp win32class.h win32wbase.h win32dlg.h gen_object.h heapshared.h oslibwin.h win32wndchild.h oslibmsg.h $(PDWIN32_INCLUDE)\win\controls.h 127 127 win32wndchild.obj: win32wndchild.cpp win32wndchild.h gen_object.h 128 128 win32wmdiclient.obj: win32wmdiclient.cpp win32wbase.h win32wmdiclient.h win32wmdichild.h gen_object.h -
TabularUnified tags/trunk/src/user32/combo.cpp ¶
r11792 r11953 1 /* $Id: combo.cpp,v 1. 4 1999-10-08 21:23:37 cbratschiExp $ */1 /* $Id: combo.cpp,v 1.5 1999-10-19 19:26:07 sandervl Exp $ */ 2 2 /* 3 3 * Combo controls … … 25 25 */ 26 26 27 #define CB_GETPTR( hwnd ) ( *(LPHEADCOMBO*)(GetInfoPtr(hwnd)))27 #define CB_GETPTR( hwnd ) ((LPHEADCOMBO)(GetInfoPtr(hwnd))) 28 28 #define CB_NOTIFY( lphc, code ) \ 29 29 (SendMessageA( (lphc)->owner, WM_COMMAND, \ … … 1238 1238 if(ptr) 1239 1239 { 1240 lphc = ( *(LPHEADCOMBO*)(ptr));1240 lphc = (LPHEADCOMBO )ptr; 1241 1241 if( lphc ) return lphc->hWndLBox; 1242 1242 } … … 1775 1775 1776 1776 if(ptr) 1777 lphc = ( *(LPHEADCOMBO*)(ptr));1777 lphc = (LPHEADCOMBO)ptr; 1778 1778 1779 1779 //TRACE("[%04x]: msg %s wp %08x lp %08lx\n", -
TabularUnified tags/trunk/src/user32/controls.cpp ¶
r11604 r11953 1 /* $Id: controls.cpp,v 1. 3 1999-09-23 10:33:59sandervl Exp $ */1 /* $Id: controls.cpp,v 1.4 1999-10-19 19:26:07 sandervl Exp $ */ 2 2 /* File: controls.cpp -- Win32 common controls 3 3 * … … 10 10 #include "misc.h" 11 11 12 #include "controls.h"13 12 #include "button.h" 14 13 #include "static.h" … … 18 17 #include "win32dlg.h" 19 18 #include "win32wdesktop.h" 19 #include "controls.h" 20 21 ATOM controlAtoms[MAX_CONTROLS] = {0}; 20 22 21 23 /* registration */ … … 46 48 47 49 dprintf(("Register BUTTON class")); 48 if (!BUTTON_Register()) dprintf(("failed!!!")); 50 controlAtoms[BUTTON_CONTROL] = BUTTON_Register(); 51 if (!controlAtoms[BUTTON_CONTROL]) dprintf(("failed!!!")); 49 52 50 53 dprintf(("Register STATIC class")); 51 if (!STATIC_Register()) dprintf(("failed!!!")); 54 controlAtoms[STATIC_CONTROL] = STATIC_Register(); 55 if (!controlAtoms[STATIC_CONTROL]) dprintf(("failed!!!")); 52 56 53 57 dprintf(("Register SCROLLBAR class")); 54 if (!SCROLLBAR_Register()) dprintf(("failed!!!")); 58 controlAtoms[SCROLLBAR_CONTROL] = SCROLLBAR_Register(); 59 if (!controlAtoms[SCROLLBAR_CONTROL]) dprintf(("failed!!!")); 55 60 56 61 dprintf(("Register LISTBOX class")); 57 if (!LISTBOX_Register()) dprintf(("failed!!!")); 62 controlAtoms[LISTBOX_CONTROL] = LISTBOX_Register(); 63 if (!controlAtoms[LISTBOX_CONTROL]) dprintf(("failed!!!")); 58 64 59 65 dprintf(("Register COMBOLBOX class")); 60 if (!COMBOLBOX_Register()) dprintf(("failed!!!")); 66 controlAtoms[COMBOLBOX_CONTROL] = COMBOLBOX_Register(); 67 if (!controlAtoms[COMBOLBOX_CONTROL]) dprintf(("failed!!!")); 61 68 62 69 dprintf(("Register COMBOBOX class")); 63 if (!COMBOBOX_Register()) dprintf(("failed!!!")); 70 controlAtoms[COMBOBOX_CONTROL] = COMBOBOX_Register(); 71 if (!controlAtoms[COMBOBOX_CONTROL]) dprintf(("failed!!!")); 64 72 65 73 dprintf(("Register EDIT class")); 66 if (!EDIT_Register()) dprintf(("failed!!!")); 74 controlAtoms[EDIT_CONTROL] = EDIT_Register(); 75 if (!controlAtoms[EDIT_CONTROL]) dprintf(("failed!!!")); 67 76 68 77 dprintf(("Register MDICLIENT class")); 69 if (!MDICLIENT_Register()) dprintf(("failed!!!")); 78 controlAtoms[MDICLIENT_CONTROL] = MDICLIENT_Register(); 79 if (!controlAtoms[MDICLIENT_CONTROL]) dprintf(("failed!!!")); 70 80 71 81 dprintf(("Register DIALOG class")); 72 if (!DIALOG_Register()) dprintf(("failed!!!")); 82 controlAtoms[DIALOG_CONTROL] = DIALOG_Register(); 83 if (!controlAtoms[DIALOG_CONTROL]) dprintf(("failed!!!")); 73 84 74 85 dprintf(("Register DESKTOP class")); 75 if (!DESKTOP_Register()) dprintf(("failed!!!")); 86 controlAtoms[DESKTOP_CONTROL] = DESKTOP_Register(); 87 if (!controlAtoms[DESKTOP_CONTROL]) dprintf(("failed!!!")); 76 88 } 77 89 … … 110 122 111 123 124 BOOL WIDGETS_IsControl(Win32BaseWindow *window, int control) 125 { 126 if(control >= MAX_CONTROLS || window == NULL || window->getClass() == NULL) 127 return FALSE; 128 129 return controlAtoms[control] == window->getClass()->getAtom(); 130 } 131 -
TabularUnified tags/trunk/src/user32/win32wbase.cpp ¶
r11945 r11953 1 /* $Id: win32wbase.cpp,v 1.5 5 1999-10-19 12:52:30sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.56 1999-10-19 19:26:08 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 641 641 else 642 642 { 643 dprintf(("Set window ID to %x", cs->hMenu)); 643 644 setWindowId((DWORD)cs->hMenu); 644 645 } … … 2453 2454 int Win32BaseWindow::GetWindowTextA(LPSTR lpsz, int cch) 2454 2455 { 2456 if(windowNameA == NULL) { 2457 *lpsz = 0; 2458 return 0; 2459 } 2455 2460 strncpy(lpsz, windowNameA, cch); 2456 2461 return wndNameLength; … … 2460 2465 int Win32BaseWindow::GetWindowTextW(LPWSTR lpsz, int cch) 2461 2466 { 2467 if(windowNameW == NULL) { 2468 *lpsz = 0; 2469 return 0; 2470 } 2462 2471 lstrcpynW((LPWSTR)lpsz, windowNameW, cch); 2463 2472 return wndNameLength;
Note:
See TracChangeset
for help on using the changeset viewer.