- Timestamp:
- Jan 1, 2000, 3:37:35 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmframe.cpp
r2257 r2289 1 /* $Id: pmframe.cpp,v 1.3 1 1999-12-29 22:54:01cbratschi Exp $ */1 /* $Id: pmframe.cpp,v 1.32 2000-01-01 14:37:34 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Frame Managment Code for OS/2 … … 230 230 switch(msg) 231 231 { 232 case WM_FORMATFRAME: 233 dprintf(("PMFRAME: WM_FORMATFRAME %x",hwnd)); 234 //CB: call WM_NCCALCSIZE and set client pos 235 // WM_PAINT -> WM_NCPAINT 236 // WM_HITTEST -> MsgHitTest() 237 // mouse messages -> MsgButton() 238 goto RunDefFrameProc; 239 240 case WM_QUERYBORDERSIZE: 241 //CB: todo: set to 0 242 goto RunDefFrameProc; 243 232 244 case WM_ADJUSTWINDOWPOS: 233 245 { … … 429 441 case WM_PAINT: 430 442 #ifdef PMFRAMELOG 431 dprintf(("PMFRAME: WM_PAINT "));443 dprintf(("PMFRAME: WM_PAINT %x",hwnd)); 432 444 #endif 433 445 if (!win32wnd->isChild()) -
trunk/src/user32/win32wbase.cpp
r2287 r2289 1 /* $Id: win32wbase.cpp,v 1.13 0 2000-01-01 12:18:07 sandervlExp $ */1 /* $Id: win32wbase.cpp,v 1.131 2000-01-01 14:37:34 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2906 2906 //****************************************************************************** 2907 2907 //****************************************************************************** 2908 CHAR *Win32BaseWindow::getWindowNamePtrA() 2909 { 2910 INT len = GetWindowTextLength(); 2911 CHAR *text; 2912 2913 if (len == 0) return NULL; 2914 len++; 2915 text = (CHAR*)malloc(len*sizeof(CHAR)); 2916 GetWindowTextA(text,len); 2917 2918 return text; 2919 } 2920 //****************************************************************************** 2921 //****************************************************************************** 2922 WCHAR *Win32BaseWindow::getWindowNamePtrW() 2923 { 2924 INT len = GetWindowTextLength(); 2925 WCHAR *text; 2926 2927 if (len == 0) return NULL; 2928 len++; 2929 text = (WCHAR*)malloc(len*sizeof(WCHAR)); 2930 GetWindowTextW(text,len); 2931 2932 return text; 2933 } 2934 //****************************************************************************** 2935 //****************************************************************************** 2936 VOID Win32BaseWindow::freeWindowNamePtr(PVOID namePtr) 2937 { 2938 if (namePtr) free(namePtr); 2939 } 2940 //****************************************************************************** 2941 //****************************************************************************** 2908 2942 int Win32BaseWindow::GetWindowTextLength() 2909 2943 { -
trunk/src/user32/win32wbase.h
r2269 r2289 1 /* $Id: win32wbase.h,v 1.6 2 1999-12-30 18:33:00cbratschi Exp $ */1 /* $Id: win32wbase.h,v 1.63 2000-01-01 14:37:35 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 194 194 BOOL SetWindowTextW(LPWSTR lpsz); 195 195 BOOL hasWindowName(LPSTR wndname, BOOL fUnicode = 0); 196 CHAR *getWindowNamePtrA(); 197 WCHAR *getWindowNamePtrW(); 198 VOID freeWindowNamePtr(PVOID namePtr); 199 CHAR *getWindowNameA() { return windowNameA; }; //only for MDI windows! 200 WCHAR *getWindowNameW() { return windowNameW; }; //only for MDI windows! 196 201 Win32WndClass *getClass() { return windowClass; }; 197 //CB: windowNameA isn't always the window name!198 char *getWindowNameA() { return windowNameA; };199 202 Win32BaseWindow *getOwner() { return owner; }; 200 203 void setOwner(Win32BaseWindow *newOwner) { owner = newOwner; }; -
trunk/src/user32/win32wnd.cpp
r2114 r2289 1 /* $Id: win32wnd.cpp,v 1. 4 1999-12-18 16:31:52cbratschi Exp $ */1 /* $Id: win32wnd.cpp,v 1.5 2000-01-01 14:37:35 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Class for OS/2 … … 69 69 case WM_SETTEXT: 70 70 //CB: infinite loop 71 //window->updateFrameText(MDI_REPAINTFRAME,(LPCSTR)lParam);71 window->updateFrameText(MDI_REPAINTFRAME,(LPCSTR)lParam); 72 72 return 0; 73 73 #endif
Note:
See TracChangeset
for help on using the changeset viewer.