salobj.cxx (fc9fd3f1) salobj.cxx (dcefce6c)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 184 unchanged lines hidden (view full) ---

193// -----------------------------------------------------------------------
194
195MRESULT EXPENTRY SalSysObjChildWndProc( HWND hWnd, ULONG nMsg,
196 MPARAM nMP1, MPARAM nMP2 )
197{
198 MRESULT nRet = 0;
199 int bDef = TRUE;
200
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 184 unchanged lines hidden (view full) ---

193// -----------------------------------------------------------------------
194
195MRESULT EXPENTRY SalSysObjChildWndProc( HWND hWnd, ULONG nMsg,
196 MPARAM nMP1, MPARAM nMP2 )
197{
198 MRESULT nRet = 0;
199 int bDef = TRUE;
200
201#if OSL_DEBUG_LEVEL>0
201 debug_printf( "SalSysObjChildWndProc hWnd 0x%x nMsg %d\n", hWnd, nMsg);
202 debug_printf( "SalSysObjChildWndProc hWnd 0x%x nMsg %d\n", hWnd, nMsg);
203#endif
202
203 switch( nMsg )
204 {
205 case WM_ERASEBACKGROUND:
206 // Wegen PlugIn's loeschen wir erstmal den Hintergrund
207/*
208 nRet = (MRESULT)FALSE;
209 bDef = FALSE;

--- 18 unchanged lines hidden (view full) ---

228// -----------------------------------------------------------------------
229
230MRESULT EXPENTRY SalSysObjClipWndProc( HWND hWnd, ULONG nMsg,
231 MPARAM nMP1, MPARAM nMP2 )
232{
233 MRESULT nRet = 0;
234 int bDef = TRUE;
235
204
205 switch( nMsg )
206 {
207 case WM_ERASEBACKGROUND:
208 // Wegen PlugIn's loeschen wir erstmal den Hintergrund
209/*
210 nRet = (MRESULT)FALSE;
211 bDef = FALSE;

--- 18 unchanged lines hidden (view full) ---

230// -----------------------------------------------------------------------
231
232MRESULT EXPENTRY SalSysObjClipWndProc( HWND hWnd, ULONG nMsg,
233 MPARAM nMP1, MPARAM nMP2 )
234{
235 MRESULT nRet = 0;
236 int bDef = TRUE;
237
238#if OSL_DEBUG_LEVEL>0
236 debug_printf( "SalSysObjClipWndProc hWnd 0x%x nMsg %d\n", hWnd, nMsg);
239 debug_printf( "SalSysObjClipWndProc hWnd 0x%x nMsg %d\n", hWnd, nMsg);
240#endif
237
238 switch( nMsg )
239 {
240 case WM_MOUSEMOVE:
241 case WM_BUTTON1DOWN:
242 case WM_BUTTON2DOWN:
243 case WM_BUTTON3DOWN:
244 case WM_BUTTON1DBLCLK:

--- 110 unchanged lines hidden (view full) ---

355 if ( hWnd )
356 WinDestroyWindow( hWnd );
357 delete pObject;
358 return NULL;
359 }
360
361 if ( hWnd )
362 {
241
242 switch( nMsg )
243 {
244 case WM_MOUSEMOVE:
245 case WM_BUTTON1DOWN:
246 case WM_BUTTON2DOWN:
247 case WM_BUTTON3DOWN:
248 case WM_BUTTON1DBLCLK:

--- 110 unchanged lines hidden (view full) ---

359 if ( hWnd )
360 WinDestroyWindow( hWnd );
361 delete pObject;
362 return NULL;
363 }
364
365 if ( hWnd )
366 {
367#if OSL_DEBUG_LEVEL>0
363 debug_printf("ImplSalCreateObject hWndChild %x\n", hWndChild);
364 debug_printf("ImplSalCreateObject hWnd %x\n", hWnd);
368 debug_printf("ImplSalCreateObject hWndChild %x\n", hWndChild);
369 debug_printf("ImplSalCreateObject hWnd %x\n", hWnd);
370#endif
365 pObject->mhWnd = hWnd;
366 pObject->mhWndChild = hWndChild;
367 pObject->maSysData.hWnd = hWndChild;
368 return pObject;
369 }
370 }
371
372 return NULL;

--- 96 unchanged lines hidden (view full) ---

469
470void Os2SalObject::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
471{
472 HWND hClipWnd = WinCreateWindow( mhWnd, SAL_OBJECT_CLIPCLASSNAME, "",
473 WS_VISIBLE,
474 nX, mnHeight-(nY+nHeight), nWidth, nHeight,
475 mhWnd, mhLastClipWnd,
476 0, NULL, NULL );
371 pObject->mhWnd = hWnd;
372 pObject->mhWndChild = hWndChild;
373 pObject->maSysData.hWnd = hWndChild;
374 return pObject;
375 }
376 }
377
378 return NULL;

--- 96 unchanged lines hidden (view full) ---

475
476void Os2SalObject::UnionClipRegion( long nX, long nY, long nWidth, long nHeight )
477{
478 HWND hClipWnd = WinCreateWindow( mhWnd, SAL_OBJECT_CLIPCLASSNAME, "",
479 WS_VISIBLE,
480 nX, mnHeight-(nY+nHeight), nWidth, nHeight,
481 mhWnd, mhLastClipWnd,
482 0, NULL, NULL );
483#if OSL_DEBUG_LEVEL>0
477 debug_printf("Os2SalObject::UnionClipRegion hClipWnd %x\n", hClipWnd);
484 debug_printf("Os2SalObject::UnionClipRegion hClipWnd %x\n", hClipWnd);
485#endif
478 mhLastClipWnd = hClipWnd;
479}
480
481// -----------------------------------------------------------------------
482
483void Os2SalObject::EndSetClipRegion()
484{
485 ImplDestroyAllClipWindows( mhOldLastClipWnd );

--- 91 unchanged lines hidden ---
486 mhLastClipWnd = hClipWnd;
487}
488
489// -----------------------------------------------------------------------
490
491void Os2SalObject::EndSetClipRegion()
492{
493 ImplDestroyAllClipWindows( mhOldLastClipWnd );

--- 91 unchanged lines hidden ---