Changeset 1354
- Timestamp:
 - Oct 19, 1999, 2:32:13 PM (26 years ago)
 - Location:
 - trunk
 - Files:
 - 
      
- 2 edited
 
- 
          
  changelog (modified) (12 diffs)
 - 
          
  src/user32/pmwindow.cpp (modified) (4 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/changelog
r1349 r1354 1 /* $Id: changelog,v 1.340 1999-10-18 11:58:39 sandervl Exp $ */ 1 /* $Id: changelog,v 1.341 1999-10-19 12:32:12 dengert Exp $ */ 2 3 99-10-19: Daniela Engert <dani@ngrt.de> 4 - USER32: excessive background erases tamed 2 5 3 6 99-10-18: Sander van Leeuwen <sandervl@xs4all.nl> 4 7 - USER32: Set/clear WS_VISIBLE flag in ShowWindow 5 Fix for scrollbar redraw6 Rewrote EnumChildWindows (winzip works quite well now!)8 Fix for scrollbar redraw 9 Rewrote EnumChildWindows (winzip works quite well now!) 7 10 8 11 99-10-18: Edgar Buerkle <Edgar.Buerkle@gmx.net> … … 11 14 99-10-17: Sander van Leeuwen <sandervl@xs4all.nl> 12 15 - USER32: Ported AdjustWindowRectEx from Wine (990815) 13 Changed GetClientRect to return rectangle stored in 14 window object.15 Ported (Begin/End)DeferWindowPos from Wine (990815)16 Ported GetWindow from Wine (990815)17 Fixed dialog control creation bug (create ascii controls when18 parent window is ascii)19 Implemented SetWindowPlacement (not complete done)20 Fixed GetWindowPlacement (handle translation), still21 needs to be implemented though.22 Don't change PM window style in WM_DESTROY handler -> crash in PMMERGE23 Bugfixes for Enum(Thread/Child)Window (wrong call to get object ptr)24 Fixed FindWindowEx method to map frame window to object ptr.25 Fixed WM_WINDOWPOSCHANGED handler for scrollbars (set window &26 client rectangle)27 Fixed WM_MOUSEMOVE handler for scrollbars (return 1 to let28 PM change the mouse cursor back to the default)29 Fixed GetDlgItem. According to SDK docs this api should work30 for any parent-child pair. (behaviour seen in VPBuddy)31 Added MFC message support for message printfs16 Changed GetClientRect to return rectangle stored in 17 window object. 18 Ported (Begin/End)DeferWindowPos from Wine (990815) 19 Ported GetWindow from Wine (990815) 20 Fixed dialog control creation bug (create ascii controls when 21 parent window is ascii) 22 Implemented SetWindowPlacement (not complete done) 23 Fixed GetWindowPlacement (handle translation), still 24 needs to be implemented though. 25 Don't change PM window style in WM_DESTROY handler -> crash in PMMERGE 26 Bugfixes for Enum(Thread/Child)Window (wrong call to get object ptr) 27 Fixed FindWindowEx method to map frame window to object ptr. 28 Fixed WM_WINDOWPOSCHANGED handler for scrollbars (set window & 29 client rectangle) 30 Fixed WM_MOUSEMOVE handler for scrollbars (return 1 to let 31 PM change the mouse cursor back to the default) 32 Fixed GetDlgItem. According to SDK docs this api should work 33 for any parent-child pair. (behaviour seen in VPBuddy) 34 Added MFC message support for message printfs 32 35 33 36 99-10-17: Christoph Bratschi <cbratschi@datacomm.ch> … … 42 45 43 46 99-10-17: knut st. osmundsen <knut.stange.osmundsen@pmsc.no> 44 - KERNEL32: Removed exception throwing from Pe2Lx classes.45 Implemented TLS support in Pe2Lx classes.47 - KERNEL32: Removed exception throwing from Pe2Lx classes. 48 Implemented TLS support in Pe2Lx classes. 46 49 47 50 99-10-16: Yuri Dario <mc6530@mclink.it> 48 51 - USER32: Button bugfix (BUTTON_CheckAutoRadioButton) 49 Win32dlg.cpp: cosmetic changes52 Win32dlg.cpp: cosmetic changes 50 53 - include\os2wrap.h: define inline as _inline in C mode 51 54 - include\win\winsock.h: Added prototypes … … 57 60 99-10-16: Sander van Leeuwen <sandervl@xs4all.nl> 58 61 - USER32: Don't process size messages before sending WM_NCCREATE 59 message when creating a window. (can mess up our window60 and client rectangle)61 Erase background for buttons. (fixes groupbox redraw problems)62 isFrameWindow bugfix + MDI creation & WM_NCCALCSIZE bugfix62 message when creating a window. (can mess up our window 63 and client rectangle) 64 Erase background for buttons. (fixes groupbox redraw problems) 65 isFrameWindow bugfix + MDI creation & WM_NCCALCSIZE bugfix 63 66 64 67 99-10-15: Sander van Leeuwen <sandervl@xs4all.nl> 65 68 - USER32: CBT Hook bugfix. Only respond to WM_NCCREATE msg to send 66 HCBT_CREATEWND.67 Scrollbar bugfix. Pass all msgs we don't use to default68 window handler. (used to do this only for > WM_USER -->69 return value of 0 for WM_NCCREATE cancels window creation)69 HCBT_CREATEWND. 70 Scrollbar bugfix. Pass all msgs we don't use to default 71 window handler. (used to do this only for > WM_USER --> 72 return value of 0 for WM_NCCREATE cancels window creation) 70 73 GetWindow bugfix. (related window can be frame window) 71 Fixed window & child destruction process.74 Fixed window & child destruction process. 72 75 - KERNEL32: Fixed VirtualQuery bug. 73 76 74 77 99-10-15: Edgar Buerkle <Edgar.Buerkle@gmx.net> 75 78 - USER32: Basic message translation to fix problems in win apps 76 that wait for a specific message. (NOT COMPLETE)79 that wait for a specific message. (NOT COMPLETE) 77 80 78 81 99-10-14: Sander van Leeuwen <sandervl@xs4all.nl> 79 82 - USER32: Fixed WM_WINDOWPOSCHANGED (frame window rectangle) 80 83 Partly implemented CopyImage (only simple copies of icons 81 and cursors; FAR FROM COMPLETE!)82 Removed FillRect during WM_PAINT in subclassed frame handler.83 (still some redraw problems with i.e. button.exe; a little84 worse than before)84 and cursors; FAR FROM COMPLETE!) 85 Removed FillRect during WM_PAINT in subclassed frame handler. 86 (still some redraw problems with i.e. button.exe; a little 87 worse than before) 85 88 86 89 99-10-14: Patrick Haller <phaller@gmx.net> 87 90 - KERNEL32: Fix: threads might need more memory in debug mode (thread.cpp) 88 Fix: a little cleanup (virtual.cpp)91 Fix: a little cleanup (virtual.cpp) 89 92 Fix: lstrcpyAW taking NULL parameters (broken WINE controls?) (heapstring.cpp) 90 93 - ADVAPI32: Fix: RegConnectRegistryA slightly improved 91 94 92 95 99-10-14: knut st. osmundsen <knut.stange.osmundsen@pmsc.no> 93 - PE2LX: New implementation in src\win32k\pe2lx.94 No resource conversion. I have tested it, but do expect to95 find some bugs. And when you find, please give me a hint.96 The new Pe2Lx uses much support code,(heap, printf..)97 from win32k. It also uses the sub-system CRT library (as98 win32k does). This way more of the win32k code will be99 tested in Ring 3, so there'll simply be less bugs to track100 down in Ring 0 and kernel debugger/ICAT.101 - KERNEL32: Win32???Pe2Lx classes is updated to match the new Pe2lX.102 Note that TLS is not implemented yet - it's in the line.103 Fix: Made a temporary fix in atom.cpp for some of the W104 functions. The string isn't allways a string... I do a105 permanent fix some other day.106 - WIN32K: Compiles and links. But Not Tested!96 - PE2LX: New implementation in src\win32k\pe2lx. 97 No resource conversion. I have tested it, but do expect to 98 find some bugs. And when you find, please give me a hint. 99 The new Pe2Lx uses much support code,(heap, printf..) 100 from win32k. It also uses the sub-system CRT library (as 101 win32k does). This way more of the win32k code will be 102 tested in Ring 3, so there'll simply be less bugs to track 103 down in Ring 0 and kernel debugger/ICAT. 104 - KERNEL32: Win32???Pe2Lx classes is updated to match the new Pe2lX. 105 Note that TLS is not implemented yet - it's in the line. 106 Fix: Made a temporary fix in atom.cpp for some of the W 107 functions. The string isn't allways a string... I do a 108 permanent fix some other day. 109 - WIN32K: Compiles and links. But Not Tested! 107 110 108 111 99-10-14: Edgar Buerkle <Edgar.Buerkle@gmx.net> … … 112 115 99-10-14: Sander van Leeuwen <sandervl@xs4all.nl> 113 116 - USER32: Fixed shrinking listbox in shell about dialog. 114 (add border size to size during window creation & SetWindowPos)115 Support for WM_NCCALCSIZE. Not completely working yet.116 Fixed crash in Winhlp32 (annotate creates multiline edit117 control that received PM messages too early -> divide by 0)118 -> Don't allow WM_WINDOWPOSCHANGED messages until after WM_NCCREATE.119 Removed previous OSLibMapWINDOWPOStoSWP bugfix.120 Default dialog xBaseUnit = 10, yBaseUnit = 20.121 Only set FCF_TASKLIST bit when parent == desktop & window122 has titlebar. (too many Opera windows in tasklist)117 (add border size to size during window creation & SetWindowPos) 118 Support for WM_NCCALCSIZE. Not completely working yet. 119 Fixed crash in Winhlp32 (annotate creates multiline edit 120 control that received PM messages too early -> divide by 0) 121 -> Don't allow WM_WINDOWPOSCHANGED messages until after WM_NCCREATE. 122 Removed previous OSLibMapWINDOWPOStoSWP bugfix. 123 Default dialog xBaseUnit = 10, yBaseUnit = 20. 124 Only set FCF_TASKLIST bit when parent == desktop & window 125 has titlebar. (too many Opera windows in tasklist) 123 126 Clear unsupported frame styles (i.e. no titlebar & minimize/maximize button) 124 Fixed MapOS2ToWin32Rectl & GetWindowRect. 125 Removed code that adds bordersize during SetWindowPos & window126 creation. Fixed listbox code instead. (use window rectangle127 for SetWindowPos call, not client rectangle)127 Fixed MapOS2ToWin32Rectl & GetWindowRect. 128 Removed code that adds bordersize during SetWindowPos & window 129 creation. Fixed listbox code instead. (use window rectangle 130 for SetWindowPos call, not client rectangle) 128 131 129 132 - USER32: Rewrote window creation. All Odin windows are OS/2 frames. 130 2nd half of window/dialog creation carried out during OS/2131 WM_CREATE message.132 Don't call default frame handler during WM_ADJUSTWINDOWPOS133 for child windows. Fixes incorrect position.134 Probably needs to be fixed again.135 NOTE: NOT WORKING CORRECTLY JUST YET!!133 2nd half of window/dialog creation carried out during OS/2 134 WM_CREATE message. 135 Don't call default frame handler during WM_ADJUSTWINDOWPOS 136 for child windows. Fixes incorrect position. 137 Probably needs to be fixed again. 138 NOTE: NOT WORKING CORRECTLY JUST YET!! 136 139 137 140 - COMCTL32: Check infoPtr in toolbar during WM_ERASEBKGND 138 141 - KERNEL32: Added wprocess.cpp dependency for include\win\thread.h 139 Bugfix for loading dlls in pe loader -> increase reference count140 In iLoadLibrary first check if the dll has already been loaded.141 Fixed console initalization for pe loader apps.142 Fixed SetWin32TIB. Return current FS selector for Odin32 apps.142 Bugfix for loading dlls in pe loader -> increase reference count 143 In iLoadLibrary first check if the dll has already been loaded. 144 Fixed console initalization for pe loader apps. 145 Fixed SetWin32TIB. Return current FS selector for Odin32 apps. 143 146 Removed generic.exe fix in OS2UnsetExceptionHandler. 144 (creates problems when loading multiple PE dlls with pe loader145 and generic.exe still works fine now)147 (creates problems when loading multiple PE dlls with pe loader 148 and generic.exe still works fine now) 146 149 - SHELL32: use wrc from tools directory 147 150 … … 154 157 99-10-12: Sander van Leeuwen <sandervl@xs4all.nl> 155 158 - USER32: DrawMenuBar & DrawCaptionTempA bugfix (window handle translation) 156 Added Win32ToOS2FrameHandle method157 Set default mouse pointer back if app doesn't process WM_MOUSEMOVE158 message.159 Bugfix in button control -> return non-zero if WM_MOUSEMOVE160 message doesn't change the cursor.161 Same fix in edit & listbox control.162 Looks like the same bug is in the scrollbar code.163 Preliminary listbox fixes (scrollbar related)164 Don't show scrollbars when window is created.165 166 - USER32: Added support for extra messages in default window handler.167 Partial support for WM_SYSCOMMAND in default window handler.168 MDI child bugfix (window now displayed correctly)169 Only subclass frame when it has a 3d border OR *only* the170 WS_BORDER borderstyle.171 Fixed y mapping bug in OSLibMapWINDOWPOStoSWP (converted172 twice (win32 -> os2 -> win32))159 Added Win32ToOS2FrameHandle method 160 Set default mouse pointer back if app doesn't process WM_MOUSEMOVE 161 message. 162 Bugfix in button control -> return non-zero if WM_MOUSEMOVE 163 message doesn't change the cursor. 164 Same fix in edit & listbox control. 165 Looks like the same bug is in the scrollbar code. 166 Preliminary listbox fixes (scrollbar related) 167 Don't show scrollbars when window is created. 168 169 - USER32: Added support for extra messages in default window handler. 170 Partial support for WM_SYSCOMMAND in default window handler. 171 MDI child bugfix (window now displayed correctly) 172 Only subclass frame when it has a 3d border OR *only* the 173 WS_BORDER borderstyle. 174 Fixed y mapping bug in OSLibMapWINDOWPOStoSWP (converted 175 twice (win32 -> os2 -> win32)) 173 176 - USER32: Set focus to edit control when receiving WM_LBUTTONDOWN 174 177 175 - USER32: Don't send WM_COMMAND during WM_SETFOCUS in edit control when176 dialog hasn't been completely created. (crashes VPBuddy; can't177 find dialog control that hasn't been created yet)178 NOTE: EXPERIMENTAL FIX. NEEDS TO BE CHANGED.178 - USER32: Don't send WM_COMMAND during WM_SETFOCUS in edit control when 179 dialog hasn't been completely created. (crashes VPBuddy; can't 180 find dialog control that hasn't been created yet) 181 NOTE: EXPERIMENTAL FIX. NEEDS TO BE CHANGED. 179 182 180 183 99-10-11: Christoph Bratschi <cbratschi@datacomm.ch> … … 183 186 99-10-11: Sander van Leeuwen <sandervl@xs4all.nl> 184 187 - USER32: Disabling the desktop window is a very bad idea. 185 (desktop no longer responds to mouse clicks)186 Enable method in desktop window class that does nothing.187 Added support for extra messages in msg printf code188 (desktop no longer responds to mouse clicks) 189 Enable method in desktop window class that does nothing. 190 Added support for extra messages in msg printf code 188 191 Ported almost all Wine code for CTLCOLOR messages. 189 Return -1 in DefWindowProc for WM_VKEYTOITEM & WM_CHARTOITEM190 Fix for MDI child window. They're now displayed, but it's191 still not right.192 Return -1 in DefWindowProc for WM_VKEYTOITEM & WM_CHARTOITEM 193 Fix for MDI child window. They're now displayed, but it's 194 still not right. 192 195 - SHELL32: Fixed Shell32 about dialog. 193 Compile Wine resource with WRC and link with dll.194 Added version resource195 Call Wine dll entrypoint in initterm.cpp.196 Compile Wine resource with WRC and link with dll. 197 Added version resource 198 Call Wine dll entrypoint in initterm.cpp. 196 199 - INCLUDE: Only include stdlib.h when wrc is not active 197 Extra definitions for compiling win32 apps in OS/2200 Extra definitions for compiling win32 apps in OS/2 198 201 199 202 99-10-11: Edgar Buerkle <Edgar.Buerkle@gmx.net> … … 201 204 - USER32: Init ownDC to 0 202 205 Create empty dialog in CreateWindowExA/W if class == dialog 203 Support for class atoms in CreateWindowExA/W204 Win32Dialog::getNextDlgGroupItem() bugfix206 Support for class atoms in CreateWindowExA/W 207 Win32Dialog::getNextDlgGroupItem() bugfix 205 208 206 209 99-10-11: Christoph Bratschi <cbratschi@datacomm.ch> … … 212 215 99-10-10: Sander van Leeuwen <sandervl@xs4all.nl> 213 216 - USER32: Ported GetNextDlgGroupItem & GetDlgItemInt from Wine 214 Window handle translation fix for MessageBoxW215 Don't create frame windows for windows with a 3d border.216 (fixes crash in VPBuddy; don't know why)217 Window handle translation fix for MessageBoxW 218 Don't create frame windows for windows with a 3d border. 219 (fixes crash in VPBuddy; don't know why) 217 220 - COMDLG32: Fix for most unicode functions (window handle translation 218 missing as reported by Edgar Buerkle)221 missing as reported by Edgar Buerkle) 219 222 220 223 99-10-10: Edgar Buerkle <Edgar.Buerkle@gmx.net> … … 223 226 99-10-09: Sander van Leeuwen <sandervl@xs4all.nl> 224 227 - USER32: Clipboard fixes (window handle translation) 225 Fixed button redraw when receiving a WM_ENABLE msg226 Use the supported Open32 system colors and only use227 those from Wine for the new (9x) colors228 - SHELL32: Moved old to current, current to old dir228 Fixed button redraw when receiving a WM_ENABLE msg 229 Use the supported Open32 system colors and only use 230 those from Wine for the new (9x) colors 231 - SHELL32: Moved old to current, current to old dir 229 232 - KERNEL32: Don't switch FS selectors for Odin32 OS/2 apps (win32 230 apps compiled in OS/2).231 Fixed reversed stack top & bottom in TEB structure.233 apps compiled in OS/2). 234 Fixed reversed stack top & bottom in TEB structure. 232 235 - KERNEL32 Added code to dispatch OS exceptions to win32 apps. 233 Doesn't seem to be necessary though, so it's inactive for now.236 Doesn't seem to be necessary though, so it's inactive for now. 234 237 - USER32: Fixed resizing in winhlp32. Doesn't seem to break anything 235 else. (needs more testing though)236 Only increase y position of window if it's initial y <> 0.237 Fixed desktop window lookup (GetWindowFromHandle)238 Set dummy desktop window handler;239 Mdi client bugfix (reported by Yuri Dario)238 else. (needs more testing though) 239 Only increase y position of window if it's initial y <> 0. 240 Fixed desktop window lookup (GetWindowFromHandle) 241 Set dummy desktop window handler; 242 Mdi client bugfix (reported by Yuri Dario) 240 243 241 244 99-10-09: Jens Wiessner <wiessnej@rfi.de> … … 243 246 244 247 99-10-09: Edgar Buerkle <Edgar.Buerkle@gmx.net> 245 - USER32: Enabled accelerator WM_COMMANDs248 - USER32: Enabled accelerator WM_COMMANDs 246 249 - COMDLG32: Fix for GetOpenFileNameW (owner hwnd translation) 247 250 … … 262 265 263 266 99-10-08: Sander van Leeuwen <sandervl@xs4all.nl> 264 - USER32: Bugfix for SetWindowPos; take frame size into account265 Removed WM_MOVE notification class flag for Odin PM windows266 Removed SetWindowPos frame size bugfix267 Removed WM_WINDOWPOSCHANGED cy bugfix268 Set WS_DISABLED window style bit when receiving PM WM_ENABLE269 GetClassInfoA bugfix270 Window property bugfixes (no handle translation)271 Set last error when window creation fails.272 In DefDlgProcA/W, call DefWindowProcA/W if window is not273 a dialog. Fixed problems in VPBuddy.274 Unknown if that's a bug in the app or something else goes wrong.275 - KERNEL32: Bugfix for loading winspool276 Ported latest Wine exception code (RtlRaiseException/RtlUnwind)267 - USER32: Bugfix for SetWindowPos; take frame size into account 268 Removed WM_MOVE notification class flag for Odin PM windows 269 Removed SetWindowPos frame size bugfix 270 Removed WM_WINDOWPOSCHANGED cy bugfix 271 Set WS_DISABLED window style bit when receiving PM WM_ENABLE 272 GetClassInfoA bugfix 273 Window property bugfixes (no handle translation) 274 Set last error when window creation fails. 275 In DefDlgProcA/W, call DefWindowProcA/W if window is not 276 a dialog. Fixed problems in VPBuddy. 277 Unknown if that's a bug in the app or something else goes wrong. 278 - KERNEL32: Bugfix for loading winspool 279 Ported latest Wine exception code (RtlRaiseException/RtlUnwind) 277 280 278 281 99-10-07: Christoph Bratschi <cbratschi@datacomm.ch>  - 
      
trunk/src/user32/pmwindow.cpp
r1342 r1354 1 /* $Id: pmwindow.cpp,v 1.3 5 1999-10-17 18:09:22 sandervlExp $ */1 /* $Id: pmwindow.cpp,v 1.36 1999-10-19 12:32:13 dengert Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 605 605 //OS/2 Window coordinates -> Win32 Window coordinates 606 606 if(win32wnd->MsgMouseMove(keystate, SHORT1FROMMP(mp1), MapOS2ToWin32Y(win32wnd, SHORT2FROMMP(mp1)))) 607 {608 //Changes mouse cursor to default609 goto RunDefWndProc;610 }607 { 608 //Changes mouse cursor to default 609 goto RunDefWndProc; 610 } 611 611 break; 612 612 } … … 849 849 { 850 850 dprintf(("OS2: WM_ERASEBACKGROUND %x", win32wnd->getWindowHandle())); 851 if ( !win32wnd->isSupressErase()) {851 if (WinQueryUpdateRect (hwnd, NULL) && !win32wnd->isSupressErase()) { 852 852 BOOL erased = sendEraseBkgnd (win32wnd); 853 853 win32wnd->setEraseBkgnd (!erased, !erased); … … 860 860 861 861 if (WinQueryUpdateRect (hwnd, NULL)) { 862 if ( !win32wnd->isSupressErase()) {862 if (win32wnd->isEraseBkgnd() && !win32wnd->isSupressErase()) { 863 863 BOOL erased = sendEraseBkgnd (win32wnd); 864 864 win32wnd->setEraseBkgnd (!erased, !erased);  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  