Ignore:
Timestamp:
Oct 2, 2023, 11:34:35 PM (23 months ago)
Author:
gyoung
Message:

Remaining changes from merge with Lars 2.9 branch

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/classes/mm-progs/MMPlayer/customprocs.c

    r2 r104  
    2121 * If you need another license for your project/product (commercial,
    2222 * noncommercial, whatever) contact me at
    23  * 
     23 *
    2424 * http://www.os2world.com/cdwriting
    2525 * http://www.geocities.com/SiliconValley/Sector/5785/
     
    4343#include <stdio.h>
    4444#include <stdlib.h>
     45#include <string.h>
    4546
    4647
     
    7071      {
    7172        PDRAGINFO pdi=PVOIDFROMMP(mp1);
    72        
     73
    7374        return handleDrag0ver( pdi, WinQueryWindow(hwnd, QW_PARENT));
    7475      }
     
    7677      {
    7778        PDRAGINFO pdi=PVOIDFROMMP(mp1);
    78        
     79
    7980        return handleDrop( pdi, WinQueryWindow(hwnd, QW_PARENT));
    8081      }
     
    104105        if(swp.fl & SWP_MINIMIZE)
    105106          break;
    106  
     107
    107108        hps=WinBeginPaint(hwnd, NULLHANDLE, NULLHANDLE);
    108109        WinQueryWindowRect(hwnd, &rcl);
    109110        WinDrawBitmap(hps, allBMPs[MAIN_BMP_IDX].hbm,
    110                       NULLHANDLE, 
     111                      NULLHANDLE,
    111112                      (PPOINTL)&rcl,
    112113                      0, 0,
    113                       DBM_IMAGEATTRS);   
     114                      DBM_IMAGEATTRS);
    114115        WinEndPaint(hps);
    115116        return MRFALSE;
     
    183184
    184185  WinDrawBitmap(ubPtr->hps, ci.hbmSource,
    185                 &ci.rclSource, 
     186                &ci.rclSource,
    186187                (PPOINTL)&rcl,
    187188                0, 0,
     
    211212  if(ulShowFeedback==2)
    212213    return 1;
    213  
     214
    214215  switch(usControl)
    215216    {
     
    237238  hps=WinGetPS(hwnd);
    238239  WinDrawBitmap(hps, ci.hbmSource,
    239                 &ci.rclSource, 
     240                &ci.rclSource,
    240241                (PPOINTL)&rcl,
    241242                0, 0,
     
    255256
    256257  switch (msg)
    257     {     
     258    {
    258259#if 0
    259260      /* Drag and drop of audio files */
     
    330331        USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH);
    331332
    332         if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 
     333        if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET &&
    333334           y<=WinQueryWindowUShort(hwnd, SLIDERY)+WinQueryWindowUShort(hwnd, SLIDERCY)
    334335           && y>=WinQueryWindowUShort(hwnd, SLIDERY)) {
     
    346347        if(SHORT1FROMMP(mp2)) {
    347348          hps=WinGetPS(hwnd);
    348           WinQueryWindowRect(hwnd, &rcl);       
     349          WinQueryWindowRect(hwnd, &rcl);
    349350          GpiSetLineType(hps, LINETYPE_DOT);
    350351          ptl.x=rcl.xLeft;
     
    369370      if(WinQueryFocus(HWND_DESKTOP)==hwnd) {
    370371        if(SHORT2FROMMP(mp2)==VK_TAB && (SHORT1FROMMP(mp1) & KC_VIRTUALKEY))
    371           if(SHORT1FROMMP(mp1) & (KC_KEYUP|KC_PREVDOWN)) 
     372          if(SHORT1FROMMP(mp1) & (KC_KEYUP|KC_PREVDOWN))
    372373            return (MRESULT)TRUE;
    373374
     
    486487        USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH);
    487488
    488         if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 
     489        if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET &&
    489490           y<=WinQueryWindowUShort(hwnd, SLIDERY)+WinQueryWindowUShort(hwnd, SLIDERCY)
    490491           && y>=WinQueryWindowUShort(hwnd, SLIDERY)){
     
    522523        USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH);
    523524
    524        
     525
    525526        lTemp=lPos;
    526      
     527
    527528        rcl.xLeft=WinQueryWindowULong(hwnd, SLIDERX);
    528529        rcl.yBottom=WinQueryWindowULong(hwnd, SLIDERY);
     
    624625          LONG  lPos=WinQueryWindowULong(hwnd, SLIDERARMPOS);
    625626          USHORT usWidth=WinQueryWindowUShort(hwnd, SLIDERARMWIDTH);
    626           if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET && 
     627          if(x<=lPos+usWidth+SLOFFSET && x>=lPos+SLOFFSET &&
    627628             y<=WinQueryWindowUShort(hwnd, SLIDERY)+WinQueryWindowUShort(hwnd, SLIDERCY)
    628629             && y>=WinQueryWindowUShort(hwnd, SLIDERY)) {
     
    689690        hps=WinBeginPaint(hwnd, NULLHANDLE, NULLHANDLE);
    690691        rcl3=rcl=rcl2;
    691         /* Arm pos */       
     692        /* Arm pos */
    692693        rcl2.xLeft+=lPos;
    693         /* Arm size */       
     694        /* Arm size */
    694695        rcl2.xRight=rcl2.xLeft+usWidth;
    695        
     696
    696697        /* Shaft */
    697698        /* Left part */
     
    742743        if(!rc)
    743744          {
    744             WinFillRect(hps,&rcl2, CLR_PALEGRAY);       
     745            WinFillRect(hps,&rcl2, CLR_PALEGRAY);
    745746            WinDrawBorder(hps, &rcl2, 2, 2, 0, 0 ,0x0400);
    746747          }
     
    779780      return (MRESULT)FALSE;
    780781    }
    781  
     782
    782783  switch(poi->idItem)
    783784    {
     
    786787        //DosBeep(5000, 50);
    787788      WinDrawBitmap(poi->hps, ciArm.hbmSource,
    788                     &ciArm.rclSource, 
     789                    &ciArm.rclSource,
    789790                    (PPOINTL)&poi->rclItem,
    790791                    0, 0,
     
    796797        WinDrawBitmap(poi->hps,
    797798                      ci.hbmSource,
    798                       &ci.rclSource, 
     799                      &ci.rclSource,
    799800                      (PPOINTL)&poi->rclItem,
    800801                      0, 0,
     
    815816        if(!WinDrawBitmap(poi->hps, ci.hbmSource,
    816817                          &rcl,
    817                           //&ci.rclSource, 
     818                          //&ci.rclSource,
    818819                          (PPOINTL)&poi->rclItem,
    819820                          0, 0,
     
    863864        char text[100];
    864865        CONTROLINFO ci;
    865        
     866
    866867        ci=ciControls[CTRLIDX_PLAYTIME];//ciVolSliderArm;
    867        
     868
    868869        hps=WinBeginPaint(hwnd, NULLHANDLE, NULL);
    869870        if(WinQueryWindowText(hwnd, sizeof(text), text))
     
    871872            POINTL ptl= {0};
    872873            WinDrawBitmap(hps, ci.hbmSource,
    873                           &ci.rclSource, 
     874                          &ci.rclSource,
    874875                          &ptl,
    875876                          0, 0,
Note: See TracChangeset for help on using the changeset viewer.