Changeset 22097 for branches/swt/src
- Timestamp:
- May 14, 2015, 9:55:51 PM (11 years ago)
- Location:
- branches/swt/src
- Files:
-
- 6 edited
-
comctl32/initterm.cpp (modified) (2 diffs)
-
kernel32/initterm.cpp (modified) (3 diffs)
-
user32/button.cpp (modified) (11 diffs)
-
user32/initterm.cpp (modified) (2 diffs)
-
user32/text.c (modified) (3 diffs)
-
user32/window.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/swt/src/comctl32/initterm.cpp
r21916 r22097 46 46 ULONG SYSTEM DLL_InitComCtl32(ULONG hModule) 47 47 { 48 __con_debug(2,"%s::%s@%08X(%08X)\n","comctl32.dll",__FUNCTION__,DLL_InitComCtl32,hModule); 48 49 CheckVersionFromHMOD(PE2LX_VERSION, hModule); /*PLF Wed 98-03-18 05:28:48*/ 49 50 … … 59 60 void SYSTEM DLL_TermComCtl32(ULONG hModule) 60 61 { 62 __con_debug(2,"%s::%s@%08X(%08X)\n","comctl32.dll",__FUNCTION__,DLL_TermComCtl32,hModule); 61 63 if (dllHandle) 62 64 UnregisterLxDll(dllHandle); -
branches/swt/src/kernel32/initterm.cpp
r22088 r22097 253 253 ULONG SYSTEM DLL_InitKernel32(ULONG hModule) 254 254 { 255 __con_debug(2,"%s::%s@%08X(%08X)\n","kernel32.dll",__FUNCTION__,DLL_InitKernel32,hModule); 255 256 ULONG code = DLL_InitKernel32_internal(hModule); 256 257 … … 263 264 void SYSTEM DLL_TermKernel32(ULONG hModule) 264 265 { 266 __con_debug(2,"%s::%s@%08X(%08X)\n","kernel32.dll",__FUNCTION__,DLL_TermKernel32,hModule); 265 267 if (!fInit) 266 268 { … … 432 434 DosWrite((HFILE)1, (PVOID)&msg, strlen(msg), &dummy); 433 435 } 434 -
branches/swt/src/user32/button.cpp
r22096 r22097 16 16 #include <string.h> 17 17 #include <stdlib.h> 18 #include <stdio.h> 18 19 #include <os2win.h> 19 20 #include "controls.h" … … 531 532 static LRESULT BUTTON_SetStyle(HWND hwnd,WPARAM wParam,LPARAM lParam) 532 533 { 534 __con_debug(2,"USER32::BUTTON_SetStyle(hwnd=%08X,wParam=%08X,lParam=%08X\n",hwnd,wParam,lParam); 533 535 DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE),newStyle; 534 536 535 537 if ((wParam & 0x0F) >= MAX_BTN_TYPE) return 0; 536 538 newStyle = (dwStyle & 0xFFFFFFF0) | (wParam & 0x0000000F); 539 __con_debug(2,"USER32::BUTTON_SetStyle(newStyle=%08X\n",newStyle); 537 540 538 541 if (newStyle != dwStyle) … … 775 778 { 776 779 INT format = 0; 777 780 __con_debug(2,"USER32::BUTTON_GetTextFormat: dwStyle=%08X, dwExStyle=%08X, dh=%d, dv=%d\n", 781 dwStyle,dwExStyle,defHorz,defVert); 778 782 /* 779 783 * BS_CENTER is not a single bit-flag, but is actually BS_LEFT | BS_RIGHT. … … 806 810 BOOL pushedState ) 807 811 { 812 __con_debug(2,"\n%s\n","USER32::BUTTON_DrawPushButton"); 808 813 RECT rc, focus_rect; 809 814 HPEN hOldPen; … … 811 816 BUTTONINFO *infoPtr = (BUTTONINFO *)GetInfoPtr(hwnd); 812 817 DWORD dwStyle = GetWindowLongA(hwnd,GWL_STYLE); 818 __con_debug(2,"USER32::BUTTON_DrawPushButton: dwStyle=%08X\n",dwStyle); 813 819 int xBorderOffset, yBorderOffset; 814 820 xBorderOffset = yBorderOffset = 0; … … 817 823 818 824 GetClientRect( hwnd, &rc ); 819 825 __con_debug(2,"USER32::BUTTON_DrawPushButton: l=%d, r=%d, t=%d, b=%d\n", 826 rc.left,rc.right,rc.top,rc.bottom); 820 827 /* Send WM_CTLCOLOR to allow changing the font (the colors are fixed) */ 821 828 if (infoPtr->hFont) SelectObject( hDC, infoPtr->hFont ); … … 830 837 InflateRect( &rc, -1, -1 ); 831 838 } 832 839 __con_debug(2,"(USER32::BUTTON_DrawPushButton: l=%d, r=%d, t=%d, b=%d\n", 840 rc.left,rc.right,rc.top,rc.bottom); 833 841 UINT uState = DFCS_BUTTONPUSH; 834 842 … … 845 853 DrawFrameControl( hDC, &rc, DFC_BUTTON, uState ); 846 854 InflateRect( &rc, -2, -2 ); 847 855 __con_debug(2,"(USER32::BUTTON_DrawPushButton: l=%d, r=%d, t=%d, b=%d\n", 856 rc.left,rc.right,rc.top,rc.bottom); 848 857 focus_rect = rc; 849 858 … … 853 862 rc.top += 2; 854 863 } 855 864 __con_debug(2,"(USER32::BUTTON_DrawPushButton: l=%d, r=%d, t=%d, b=%d\n", 865 rc.left,rc.right,rc.top,rc.bottom); 856 866 857 867 /* draw button label, if any: … … 859 869 * In win9x we don't show text if there is a bitmap or icon. 860 870 * I don't know about win31 so I leave it as it was for win31. 861 * Dennis Bj örklund 12 Jul, 99871 * Dennis Björklund 12 Jul, 99 862 872 */ 863 873 textLen = GetWindowTextLengthA(hwnd); … … 865 875 { 866 876 INT format = BUTTON_GetTextFormat(dwStyle,GetWindowLongA(hwnd,GWL_EXSTYLE),DT_CENTER,DT_VCENTER); 877 __con_debug(2,"(USER32::BUTTON_DrawPushButton: format=%d\n",format); 867 878 868 879 textLen++; -
branches/swt/src/user32/initterm.cpp
r21976 r22097 128 128 { 129 129 APIRET rc; 130 130 __con_debug(2,"%s::%s@%08X(%08X)\n","user32.dll",__FUNCTION__,DLL_InitUser32,hModule); 131 131 ULONG version[2]; 132 132 rc = DosQuerySysInfo(QSV_VERSION_MAJOR, QSV_VERSION_MINOR, version, sizeof(version)); … … 184 184 { 185 185 dprintf(("user32 exit\n")); 186 186 __con_debug(2,"%s::%s@%08X(%08X)\n","user32.dll",__FUNCTION__,DLL_TermUser32,hModule); 187 187 //SvL: Causes PM hangs on some (a lot?) machines. Reason unknown. 188 188 //// RestoreCursor(); -
branches/swt/src/user32/text.c
r21356 r22097 6 6 */ 7 7 8 #include <stdio.h> 8 9 #include <string.h> 9 10 … … 17 18 #include "user.h" 18 19 #include "debugtools.h" 20 #include <misc.h> 19 21 20 22 #ifdef __WIN32OS2__ … … 311 313 312 314 if (!GetTextExtentPointW(hdc, line, len, &size)) return 0; 313 if (flags & DT_CENTER) x = (rect->left + rect->right - 314 size.cx) / 2; 315 else if (flags & DT_RIGHT) x = rect->right - size.cx; 315 ///__con_debug(2,"%s\n","still here?"); 316 if (flags & DT_CENTER) { 317 x = (rect->left + rect->right - size.cx) / 2; 318 __con_debug(2,"%s\n","DT_CENTER"); 319 } 320 else if (flags & DT_RIGHT) { 321 x = rect->right - size.cx; 322 __con_debug(2,"%s\n","DT_RIGHT"); 323 } 316 324 317 325 if (flags & DT_SINGLELINE) -
branches/swt/src/user32/window.cpp
r21953 r22097 75 75 CREATESTRUCTA cs; 76 76 char tmpClass[20]; 77 77 __con_debug(2,"CreateWindowExA(width=%d,height=%d)\n",width,height); 78 78 if(exStyle & WS_EX_MDICHILD) 79 79 return CreateMDIWindowA(className, windowName, style, x, y, width, height, parent, instance, (LPARAM)data);
Note:
See TracChangeset
for help on using the changeset viewer.
