Lines Matching refs:pFrame

77 static void SetMaximizedFrameGeometry( HWND hWnd, Os2SalFrame* pFrame );
78 static void UpdateFrameGeometry( HWND hWnd, Os2SalFrame* pFrame );
81 static void ImplSalCalcFrameSize( const Os2SalFrame* pFrame,
119 sal_Bool APIENTRY _WinQueryWindowPos( Os2SalFrame* pFrame, PSWP pswp) in _WinQueryWindowPos() argument
122 sal_Bool rc = WinQueryWindowPos( pFrame->mhWndFrame, pswp); in _WinQueryWindowPos()
126 pFrame->mhWndFrame, pswp->x, pswp->y, pswp->cx, pswp->cy); in _WinQueryWindowPos()
129 Os2SalFrame* pParentFrame = pFrame->mpParentFrame; in _WinQueryWindowPos()
156 pFrame->mhWndFrame, pswp->x, pswp->y, pswp->cx, pswp->cy); in _WinQueryWindowPos()
161 sal_Bool APIENTRY _WinSetWindowPos( Os2SalFrame* pFrame, HWND hwndInsertBehind, LONG x, LONG y, in _WinSetWindowPos() argument
170 pFrame->mhWndFrame, x, y, cx, cy, fl); in _WinSetWindowPos()
179 ImplSalCalcFrameSize( pFrame, frameFrameX, frameFrameY, frameCaptionY ); in _WinSetWindowPos()
182 if (pFrame->maGeometry.nHeight != cy) { in _WinSetWindowPos()
184 WinQueryWindowPos( pFrame->mhWndFrame, &aSWP); in _WinSetWindowPos()
189 WinSetWindowPos( pFrame->mhWndFrame, NULL, nX, nY, in _WinSetWindowPos()
196 WinQueryWindowPos( pFrame->mhWndClient, &swp); in _WinSetWindowPos()
202 Os2SalFrame* pParentFrame = pFrame->mpParentFrame; in _WinSetWindowPos()
248 pFrame->mhWndFrame, x, y, cx, cy, fl); in _WinSetWindowPos()
250 return WinSetWindowPos( pFrame->mhWndFrame, hwndInsertBehind, x, y, 0, 0, fl); in _WinSetWindowPos()
367 static void ImplSaveFrameState( Os2SalFrame* pFrame ) in ImplSaveFrameState() argument
370 if ( !pFrame->mbFullScreen ) in ImplSaveFrameState()
373 sal_Bool bVisible = WinIsWindowVisible( pFrame->mhWndFrame); in ImplSaveFrameState()
376 WinQueryWindowPos( pFrame->mhWndFrame, &aSWP ); in ImplSaveFrameState()
382 pFrame->mhWndFrame); in ImplSaveFrameState()
384 pFrame->maState.mnState |= SAL_FRAMESTATE_MINIMIZED; in ImplSaveFrameState()
386 pFrame->mnShowState = SWP_SHOWMAXIMIZED; in ImplSaveFrameState()
392 pFrame->mhWndFrame); in ImplSaveFrameState()
394 pFrame->maState.mnState &= ~SAL_FRAMESTATE_MINIMIZED; in ImplSaveFrameState()
395 pFrame->maState.mnState |= SAL_FRAMESTATE_MAXIMIZED; in ImplSaveFrameState()
397 pFrame->mnShowState = SWP_SHOWMINIMIZED; in ImplSaveFrameState()
398 pFrame->mbRestoreMaximize = TRUE; in ImplSaveFrameState()
403 ImplSalCalcFrameSize( pFrame, nFrameX, nFrameY, nCaptionY ); in ImplSaveFrameState()
410 pFrame->maState.mnState &= ~(SAL_FRAMESTATE_MINIMIZED | SAL_FRAMESTATE_MAXIMIZED); in ImplSaveFrameState()
412 pFrame->maState.mnX = aSWP.x+nLeftDeco; in ImplSaveFrameState()
413 pFrame->maState.mnY = nScreenHeight - (aSWP.y+aSWP.cy)+nTopDeco; in ImplSaveFrameState()
414 pFrame->maState.mnWidth = aSWP.cx-nLeftDeco-nRightDeco; in ImplSaveFrameState()
415 pFrame->maState.mnHeight = aSWP.cy-nTopDeco-nBottomDeco; in ImplSaveFrameState()
418 pFrame->mhWndFrame, in ImplSaveFrameState()
419 pFrame->maState.mnWidth,pFrame->maState.mnHeight,pFrame->maState.mnX,pFrame->maState.mnY); in ImplSaveFrameState()
422 pFrame->mnShowState = SWP_SHOWNORMAL; in ImplSaveFrameState()
423 pFrame->mbRestoreMaximize = FALSE; in ImplSaveFrameState()
443 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplSalCalcFrameSize() local
444 if ( !pFrame ) in ImplSalCalcFrameSize()
446 return ImplSalCalcFrameSize( pFrame, nFrameX, nFrameY, nCaptionY ); in ImplSalCalcFrameSize()
449 static void ImplSalCalcFrameSize( const Os2SalFrame* pFrame, in ImplSalCalcFrameSize() argument
452 if ( pFrame->mbSizeBorder ) in ImplSalCalcFrameSize()
457 else if ( pFrame->mbFixBorder ) in ImplSalCalcFrameSize()
462 else if ( pFrame->mbBorder ) in ImplSalCalcFrameSize()
472 if ( pFrame->mbCaption ) in ImplSalCalcFrameSize()
479 …debug_printf("ImplSalCalcFrameSize 0x%08x x=%d y=%d t=%d\n", pFrame->mhWndFrame, nFrameX, nFrameY,… in ImplSalCalcFrameSize()
485 static void ImplSalCalcFullScreenSize( const Os2SalFrame* pFrame, in ImplSalCalcFullScreenSize() argument
494 ImplSalCalcFrameSize( pFrame, nFrameX, nFrameY, nCaptionY ); in ImplSalCalcFullScreenSize()
504 static void ImplSalFrameFullScreenPos( Os2SalFrame* pFrame, sal_Bool bAlways = FALSE ) in ImplSalFrameFullScreenPos() argument
507 _WinQueryWindowPos( pFrame, &aSWP ); in ImplSalFrameFullScreenPos()
515 ImplSalCalcFullScreenSize( pFrame, nX, nY, nWidth, nHeight ); in ImplSalFrameFullScreenPos()
516 _WinSetWindowPos( pFrame, 0, in ImplSalFrameFullScreenPos()
594 Os2SalFrame* pFrame = new Os2SalFrame; in ImplSalCreateFrame() local
609 pFrame->mbNoIcon = TRUE; in ImplSalCreateFrame()
618 pFrame->mbCaption = TRUE; in ImplSalCreateFrame()
626 pFrame->mbSizeBorder = TRUE; in ImplSalCreateFrame()
632 pFrame->mbFixBorder = TRUE; in ImplSalCreateFrame()
642 pFrame->mbNoIcon = TRUE; in ImplSalCreateFrame()
649 pFrame->mbFloatWin = TRUE; in ImplSalCreateFrame()
655 pFrame->mnStyle = nSalFrameStyle; in ImplSalCreateFrame()
658 pFrame->mnShowState = SWP_SHOWNORMAL; in ImplSalCreateFrame()
664 pSalData->mpCreateFrame = pFrame; in ImplSalCreateFrame()
674 delete pFrame; in ImplSalCreateFrame()
684 pFrame->mpParentFrame = pParentFrame; in ImplSalCreateFrame()
719 pFrame->mhAB = pInst->mhAB; in ImplSalCreateFrame()
734 pFrame->mhIMEContext = 0; in ImplSalCreateFrame()
735 … if ( 0 != pIMEData->mpAssocIME( hWndClient, pFrame->mhIMEContext, &pFrame->mhDefIMEContext ) ) in ImplSalCreateFrame()
736 pFrame->mhDefIMEContext = 0; in ImplSalCreateFrame()
740 pFrame->mhIMEContext = 0; in ImplSalCreateFrame()
741 pFrame->mhDefIMEContext = 0; in ImplSalCreateFrame()
747 pFrame->mnWidth = rectl.xRight; in ImplSalCreateFrame()
748 pFrame->mnHeight = rectl.yBottom; in ImplSalCreateFrame()
749 debug_printf( "ImplSalCreateFrame %dx%d\n", pFrame->mnWidth, pFrame->mnHeight); in ImplSalCreateFrame()
750 ImplSaveFrameState( pFrame ); in ImplSalCreateFrame()
751 pFrame->mbDefPos = TRUE; in ImplSalCreateFrame()
753 UpdateFrameGeometry( hWndFrame, pFrame ); in ImplSalCreateFrame()
755 if( pFrame->mnShowState == SWP_SHOWMAXIMIZED ) in ImplSalCreateFrame()
759 SetMaximizedFrameGeometry( hWndFrame, pFrame ); in ImplSalCreateFrame()
766 return pFrame; in ImplSalCreateFrame()
965 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplSalShow() local
966 if ( !pFrame ) in ImplSalShow()
971 pFrame->mbDefPos = FALSE; in ImplSalShow()
972 pFrame->mbOverwriteState = TRUE; in ImplSalShow()
973 pFrame->mbInShow = TRUE; in ImplSalShow()
982 WinSetWindowPos(hWnd, NULL, 0, 0, 0, 0, pFrame->mnShowState); in ImplSalShow()
984 pFrame->mbInShow = FALSE; in ImplSalShow()
1490 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplSalToTop() local
1502 WinSetWindowPos( pFrame->mhWndFrame, HWND_TOP, 0, 0, 0, 0, SWP_ACTIVATE | SWP_ZORDER); in ImplSalToTop()
1507 if ( pFrame->mbRestoreMaximize ) in ImplSalToTop()
1512 WinSetWindowPos( pFrame->mhWndFrame, NULL, 0, 0, 0, 0, nStyle ); in ImplSalToTop()
1514 WinSetFocus( HWND_DESKTOP, pFrame->mhWndClient ); in ImplSalToTop()
2376 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleMouseMsg() local
2377 if ( !pFrame ) in ImplHandleMouseMsg()
2381 aMouseEvt.mnY = pFrame->mnHeight - (short)SHORT2FROMMP( nMP1 ) - 1; in ImplHandleMouseMsg()
2383 aMouseEvt.mnTime = WinQueryMsgTime( pFrame->mhAB ); in ImplHandleMouseMsg()
2413 pFrame->mhWndClient, in ImplHandleMouseMsg()
2424 (pSalData->mhWantLeaveMsg != pFrame->mhWndClient) ) in ImplHandleMouseMsg()
2427 WinQueryMsgPos( pFrame->mhAB, &aMousePoint ); in ImplHandleMouseMsg()
2432 pSalData->mhWantLeaveMsg = pFrame->mhWndClient; in ImplHandleMouseMsg()
2450 if ( pSalData->mhWantLeaveMsg == pFrame->mhWndClient ) in ImplHandleMouseMsg()
2463 WinMapWindowPoints( HWND_DESKTOP, pFrame->mhWndClient, &aPt, 1 ); in ImplHandleMouseMsg()
2464 aPt.y = pFrame->mnHeight - aPt.y - 1; in ImplHandleMouseMsg()
2511 if( !WinIsWindow( pFrame->mhAB, hWnd ) ) in ImplHandleMouseMsg()
2522 WinUpdateWindow( pFrame->mhWndClient ); in ImplHandleMouseMsg()
2528 nRet = pFrame->CallCallback( nEvent, &aMouseEvt ); in ImplHandleMouseMsg()
2531 WinSetPointer( HWND_DESKTOP, pFrame->mhPointer ); in ImplHandleMouseMsg()
2549 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleWheelMsg() local
2550 if ( pFrame ) in ImplHandleWheelMsg()
2555 WinQueryMsgPos( pFrame->mhAB, &aPt ); in ImplHandleWheelMsg()
2556 WinMapWindowPoints( HWND_DESKTOP, pFrame->mhWndClient, &aPt, 1 ); in ImplHandleWheelMsg()
2557 aPt.y = pFrame->mnHeight - aPt.y - 1; in ImplHandleWheelMsg()
2560 aWheelEvt.mnTime = WinQueryMsgTime( pFrame->mhAB ); in ImplHandleWheelMsg()
2583 nRet = pFrame->CallCallback( SALEVENT_WHEELMOUSE, &aWheelEvt ); in ImplHandleWheelMsg()
2594 static USHORT ImplSalGetKeyCode( Os2SalFrame* pFrame, MPARAM aMP1, MPARAM aMP2 ) in ImplSalGetKeyCode() argument
2666 static void ImplUpdateInputLang( Os2SalFrame* pFrame ) in ImplUpdateInputLang() argument
2677 if (pFrame->mnInputLang) in ImplUpdateInputLang()
2701 pFrame, pFrame->mnInputLang, nLang); in ImplUpdateInputLang()
2703 pFrame->mnInputLang = nLang; in ImplUpdateInputLang()
2707 static sal_Unicode ImplGetCharCode( Os2SalFrame* pFrame, USHORT nKeyFlags, in ImplGetCharCode() argument
2710 ImplUpdateInputLang( pFrame ); in ImplGetCharCode()
2740 static sal_Unicode ImplConvertKey( Os2SalFrame* pFrame, MPARAM aMP1, MPARAM aMP2 ) in ImplConvertKey() argument
2753 rSVCharCode = ImplGetCharCode( pFrame, nKeyFlags, nCharCode, nScanCode); in ImplConvertKey()
2774 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleKeyMsg() local
2775 if ( !pFrame ) in ImplHandleKeyMsg()
2791 aModEvt.mnTime = WinQueryMsgTime( pFrame->mhAB ); in ImplHandleKeyMsg()
2796 nRet = pFrame->CallCallback( SALEVENT_KEYMODCHANGE, &aModEvt ); in ImplHandleKeyMsg()
2800 nSVCode = ImplSalGetKeyCode( pFrame, nMP1, nMP2 ); in ImplHandleKeyMsg()
2801 nSVCharCode = ImplConvertKey( pFrame, nMP1, nMP2 ); in ImplHandleKeyMsg()
2834 aKeyEvt.mnTime = WinQueryMsgTime( pFrame->mhAB ); in ImplHandleKeyMsg()
2842 nRet = pFrame->CallCallback( (nFlags & KC_KEYUP) ? SALEVENT_KEYUP : SALEVENT_KEYINPUT, in ImplHandleKeyMsg()
2863 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandlePaintMsg() local
2864 if ( pFrame ) in ImplHandlePaintMsg()
2880 …SalPaintEvent aPEvt( aUpdateRect.xLeft, pFrame->mnHeight - aUpdateRect.yTop, aUpdateRect.xRight- a… in ImplHandlePaintMsg()
2882 pFrame->CallCallback( SALEVENT_PAINT, &aPEvt ); in ImplHandlePaintMsg()
2887 WinCopyRect( pFrame->mhAB, pRect, &aUpdateRect ); in ImplHandlePaintMsg()
2906 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandlePaintMsg2() local
2907 if ( pFrame ) in ImplHandlePaintMsg2()
2909 …SalPaintEvent aPEvt( pRect->xLeft, pFrame->mnHeight - pRect->yTop, pRect->xRight - pRect->xLeft, p… in ImplHandlePaintMsg2()
2910 pFrame->CallCallback( SALEVENT_PAINT, &aPEvt ); in ImplHandlePaintMsg2()
2921 static void SetMaximizedFrameGeometry( HWND hWnd, Os2SalFrame* pFrame ) in SetMaximizedFrameGeometry() argument
2926 pFrame->GetWorkArea( aRect); in SetMaximizedFrameGeometry()
2929pFrame->maGeometry.nLeftDecoration = pFrame->maGeometry.nRightDecoration = pFrame->maGeometry.nBot… in SetMaximizedFrameGeometry()
2930pFrame->maGeometry.nTopDecoration = pFrame->mbCaption ? WinQuerySysValue( HWND_DESKTOP, SV_CYTITLE… in SetMaximizedFrameGeometry()
2932 aRect.yTop += pFrame->maGeometry.nTopDecoration; in SetMaximizedFrameGeometry()
2933 pFrame->maGeometry.nX = aRect.xLeft; in SetMaximizedFrameGeometry()
2934 pFrame->maGeometry.nY = aRect.yBottom; in SetMaximizedFrameGeometry()
2935 pFrame->maGeometry.nWidth = aRect.xRight - aRect.xLeft + 1; in SetMaximizedFrameGeometry()
2936 pFrame->maGeometry.nHeight = aRect.yBottom - aRect.yTop + 1; in SetMaximizedFrameGeometry()
2939 static void UpdateFrameGeometry( HWND hWnd, Os2SalFrame* pFrame ) in UpdateFrameGeometry() argument
2941 if( !pFrame ) in UpdateFrameGeometry()
2949 memset(&pFrame->maGeometry, 0, sizeof(SalFrameGeometry) ); in UpdateFrameGeometry()
2955 WinQueryWindowPos(pFrame->mhWndFrame, &swp); in UpdateFrameGeometry()
2960 ImplSalCalcFrameSize( pFrame, nFrameX, nFrameY, nCaptionY); in UpdateFrameGeometry()
2961 pFrame->maGeometry.nTopDecoration = nFrameY + nCaptionY; in UpdateFrameGeometry()
2962 pFrame->maGeometry.nLeftDecoration = nFrameX; in UpdateFrameGeometry()
2963 pFrame->maGeometry.nRightDecoration = nFrameX; in UpdateFrameGeometry()
2964 pFrame->maGeometry.nBottomDecoration = nFrameY; in UpdateFrameGeometry()
2967 pFrame->maGeometry.nX = swp.x + nFrameX; in UpdateFrameGeometry()
2968 pFrame->maGeometry.nY = nScreenHeight - (swp.y + swp.cy) + nFrameY + nCaptionY; in UpdateFrameGeometry()
2970 int nWidth = swp.cx - pFrame->maGeometry.nRightDecoration - pFrame->maGeometry.nLeftDecoration; in UpdateFrameGeometry()
2971 int nHeight = swp.cy - pFrame->maGeometry.nBottomDecoration - pFrame->maGeometry.nTopDecoration; in UpdateFrameGeometry()
2974 pFrame->maGeometry.nHeight = nHeight < 0 ? 0 : nHeight; in UpdateFrameGeometry()
2975 pFrame->maGeometry.nWidth = nWidth < 0 ? 0 : nWidth; in UpdateFrameGeometry()
2978 hWnd, pFrame->mhWndFrame, in UpdateFrameGeometry()
2979 pFrame->maGeometry.nX, pFrame->maGeometry.nY, in UpdateFrameGeometry()
2980 pFrame->maGeometry.nWidth,pFrame->maGeometry.nHeight); in UpdateFrameGeometry()
2990 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleMoveMsg() local
2991 if ( pFrame ) in ImplHandleMoveMsg()
2993 UpdateFrameGeometry( hWnd, pFrame ); in ImplHandleMoveMsg()
2996 pFrame->mbDefPos = FALSE; in ImplHandleMoveMsg()
2999 if ( !pFrame->mbInMoveMsg ) in ImplHandleMoveMsg()
3002 pFrame->mbInMoveMsg = TRUE; in ImplHandleMoveMsg()
3003 if ( pFrame->mbFullScreen ) in ImplHandleMoveMsg()
3004 ImplSalFrameFullScreenPos( pFrame ); in ImplHandleMoveMsg()
3005 pFrame->mbInMoveMsg = FALSE; in ImplHandleMoveMsg()
3009 ImplSaveFrameState( pFrame ); in ImplHandleMoveMsg()
3027 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleSizeMsg() local
3028 if ( pFrame ) in ImplHandleSizeMsg()
3030 UpdateFrameGeometry( hWnd, pFrame ); in ImplHandleSizeMsg()
3031 pFrame->mbDefPos = FALSE; in ImplHandleSizeMsg()
3032 pFrame->mnWidth = (short)SHORT1FROMMP( nMP2 ); in ImplHandleSizeMsg()
3033 pFrame->mnHeight = (short)SHORT2FROMMP( nMP2 ); in ImplHandleSizeMsg()
3034 if ( pFrame->mpGraphics ) in ImplHandleSizeMsg()
3035 pFrame->mpGraphics->mnHeight = (int)SHORT2FROMMP(nMP2); in ImplHandleSizeMsg()
3037 ImplSaveFrameState( pFrame ); in ImplHandleSizeMsg()
3038 pFrame->CallCallback( SALEVENT_RESIZE, 0 ); in ImplHandleSizeMsg()
3039 if ( WinIsWindowVisible( pFrame->mhWndFrame ) && !pFrame->mbInShow ) in ImplHandleSizeMsg()
3040 WinUpdateWindow( pFrame->mhWndClient ); in ImplHandleSizeMsg()
3046 static long ImplHandleFocusMsg( Os2SalFrame* pFrame, MPARAM nMP2 ) in ImplHandleFocusMsg() argument
3048 if ( pFrame && !Os2SalFrame::mbInReparent ) in ImplHandleFocusMsg()
3052 if ( WinIsWindowVisible( pFrame->mhWndFrame ) && !pFrame->mbInShow ) in ImplHandleFocusMsg()
3053 WinUpdateWindow( pFrame->mhWndClient ); in ImplHandleFocusMsg()
3054 return pFrame->CallCallback( SALEVENT_GETFOCUS, 0 ); in ImplHandleFocusMsg()
3058 return pFrame->CallCallback( SALEVENT_LOSEFOCUS, 0 ); in ImplHandleFocusMsg()
3069 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleCloseMsg() local
3070 if ( pFrame ) in ImplHandleCloseMsg()
3072 pFrame->CallCallback( SALEVENT_CLOSE, 0 ); in ImplHandleCloseMsg()
3086 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleUserEvent() local
3087 if ( pFrame ) in ImplHandleUserEvent()
3089 pFrame->CallCallback( SALEVENT_USEREVENT, (void*)nMP2 ); in ImplHandleUserEvent()
3096 static int SalImplHandleProcessMenu( Os2SalFrame* pFrame, ULONG nMsg, MPARAM nMP1, MPARAM nMP2) in SalImplHandleProcessMenu() argument
3110 WinSalMenuItem *pSalMenuItem = ImplGetSalMenuItem( pFrame->mSelectedhMenu, nId, FALSE ); in SalImplHandleProcessMenu()
3116 nRet = pFrame->CallCallback( SALEVENT_MENUCOMMAND, &aMenuEvt ); in SalImplHandleProcessMenu()
3131 Os2SalFrame* pFrame = GetWindowPtr( hWnd ); in ImplHandleInputLangChange() local
3133 if ( pFrame && pFrame->mbIME && pFrame->mhDefIMEContext ) in ImplHandleInputLangChange()
3135 HWND hWnd = pFrame->mhWnd; in ImplHandleInputLangChange()
3139 pFrame->mbSpezIME = (nImeProps & IME_PROP_SPECIAL_UI) != 0; in ImplHandleInputLangChange()
3140 pFrame->mbAtCursorIME = (nImeProps & IME_PROP_AT_CARET) != 0; in ImplHandleInputLangChange()
3141 pFrame->mbHandleIME = !pFrame->mbSpezIME; in ImplHandleInputLangChange()
3146 UINT nLang = pFrame->mnInputLang; in ImplHandleInputLangChange()
3147 ImplUpdateInputLang( pFrame ); in ImplHandleInputLangChange()
3148 debug_printf("ImplHandleInputLangChange new language 0x%04x\n",pFrame->mnInputLang); in ImplHandleInputLangChange()
3151 if( nLang != pFrame->mnInputLang ) in ImplHandleInputLangChange()
3152 pFrame->CallCallback( SALEVENT_INPUTLANGUAGECHANGE, 0 ); in ImplHandleInputLangChange()
3161 static long ImplHandleIMEStartConversion( Os2SalFrame* pFrame ) in ImplHandleIMEStartConversion() argument
3167 HWND hWnd = pFrame->mhWndClient; in ImplHandleIMEStartConversion()
3174 pFrame->mbHandleIME = FALSE; in ImplHandleIMEStartConversion()
3177 pFrame->mbHandleIME = !(nProp & PRP_SPECIALUI); in ImplHandleIMEStartConversion()
3180 if ( pFrame->mbHandleIME ) in ImplHandleIMEStartConversion()
3204 pFrame->mbConversionMode = TRUE; in ImplHandleIMEStartConversion()
3205 pFrame->CallCallback( SALEVENT_STARTEXTTEXTINPUT, (void*)NULL ); in ImplHandleIMEStartConversion()
3218 static long ImplHandleIMEConversion( Os2SalFrame* pFrame, MPARAM nMP2Param ) in ImplHandleIMEConversion() argument
3224 HWND hWnd = pFrame->mhWndClient; in ImplHandleIMEConversion()
3235 aEvt.mnTime = WinQueryMsgTime( pFrame->mhAB ); in ImplHandleIMEConversion()
3343 pFrame->CallCallback( SALEVENT_EXTTEXTINPUT, (void*)&aEvt ); in ImplHandleIMEConversion()
3359 inline long ImplHandleIMEEndConversion( Os2SalFrame* pFrame ) in ImplHandleIMEEndConversion() argument
3361 pFrame->mbConversionMode = FALSE; in ImplHandleIMEEndConversion()
3362 pFrame->CallCallback( SALEVENT_ENDEXTTEXTINPUT, (void*)NULL ); in ImplHandleIMEEndConversion()
3368 static void ImplHandleIMEOpenCandidate( Os2SalFrame* pFrame ) in ImplHandleIMEOpenCandidate() argument
3370 pFrame->mbCandidateMode = TRUE; in ImplHandleIMEOpenCandidate()
3376 HWND hWnd = pFrame->mhWndClient; in ImplHandleIMEOpenCandidate()
3393 aEvt.mnTime = WinQueryMsgTime( pFrame->mhAB ); in ImplHandleIMEOpenCandidate()
3399 pFrame->CallCallback( SALEVENT_EXTTEXTINPUTPOS, (void*)&aEvt ); in ImplHandleIMEOpenCandidate()
3429 aForm.ptCurrentPos.y = pFrame->mnHeight - (nMaxBottom+1) - 1; in ImplHandleIMEOpenCandidate()
3431 aForm.rcArea.yBottom = pFrame->mnHeight - nMaxBottom - 1; in ImplHandleIMEOpenCandidate()
3433 aForm.rcArea.yTop = pFrame->mnHeight - nMinTop - 1; in ImplHandleIMEOpenCandidate()
3446 inline void ImplHandleIMECloseCandidate( Os2SalFrame* pFrame ) in ImplHandleIMECloseCandidate() argument
3448 pFrame->mbCandidateMode = FALSE; in ImplHandleIMECloseCandidate()
3458 Os2SalFrame* pFrame = (Os2SalFrame*)GetWindowPtr( hWnd ); in SalFrameWndProc() local
3489 if ( pFrame->mbConversionMode ) in SalFrameWndProc()
3545 ImplHandleFocusMsg( pFrame, nMP2 ); in SalFrameWndProc()
3552 ImplHandleFocusMsg( pFrame, nMP2 ); in SalFrameWndProc()
3579 pFrame = pSalData->mpCreateFrame; in SalFrameWndProc()
3581 SetWindowPtr( hWnd, pFrame ); in SalFrameWndProc()
3582 SetWindowPtr( hWndFrame, pFrame); in SalFrameWndProc()
3586 pFrame->mhWndClient = hWnd; in SalFrameWndProc()
3587 pFrame->mhWndFrame = hWndFrame; in SalFrameWndProc()
3588 pFrame->maSysData.hWnd = hWnd; in SalFrameWndProc()
3598 if ( pFrame->mbFullScreen ) in SalFrameWndProc()
3599 ImplSalFrameFullScreenPos( pFrame ); in SalFrameWndProc()
3604 pFrame->CallCallback( SALEVENT_SETTINGSCHANGED, 0 ); in SalFrameWndProc()
3634 if ( SalImplHandleProcessMenu( pFrame, nMsg, nMP1, nMP2 ) ) in SalFrameWndProc()
3645 if ( pFrame->mbHandleIME ) in SalFrameWndProc()
3648 if ( pFrame->mbConversionMode ) in SalFrameWndProc()
3651 if ( ImplHandleIMEConversion( pFrame, nMP2 ) ) in SalFrameWndProc()
3662 if ( pFrame->mbHandleIME ) in SalFrameWndProc()
3666 ImplHandleIMEOpenCandidate( pFrame ); in SalFrameWndProc()
3668 ImplHandleIMECloseCandidate( pFrame ); in SalFrameWndProc()
3678 if ( ImplHandleIMEStartConversion( pFrame ) ) in SalFrameWndProc()
3687 if ( pFrame->mbHandleIME ) in SalFrameWndProc()
3690 if ( ImplHandleIMEEndConversion( pFrame ) ) in SalFrameWndProc()
3712 if (!WinPeekMsg( pFrame->mhAB, &aMsg, 0, WM_PAINT, WM_PAINT, PM_NOREMOVE ) ) in SalFrameWndProc()