[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: Question about ToolbarWindowProc
From:       "Guy L. Albertelli" <galberte () neo ! lrun ! com>
Date:       2002-02-28 4:18:25
[Download RAW message or body]


----- Original Message -----
From: "Guy L. Albertelli" <galberte@neo.lrun.com>
To: "Jeremy Shaw" <jeremy@lindows.com>; "Wine Devel" <wine-devel@winehq.com>
Sent: Wednesday, February 27, 2002 9:20 PM
Subject: Re: Question about ToolbarWindowProc


[snip]

> case 0x0463:
>     {
>           LPDWORD hoho = (LPDWORD)lParam;
>           ERR("[0463] lParam 0x%08lx -> 0x%08lx 0x%08lx\n",
>                  lParam, *hoho, *(hoho+1));
>           /* guess  -  level 1 */
>           if (!*(hoho+1)) {
>               *(hoho+1) = *hoho;  /* set second word to first */
>           }
>           return 0;   /* really should be 1 */
>      }
>

After more thought (this is still supposition), I think that lParam is a
LPSIZE. Also that the code (at least partially) could be:

case 0x0463:
    {
          LPSIZE hoho = (LPDWORD)lParam;
          ERR("[0463] lParam 0x%08lx -> 0x%08lx 0x%08lx\n",
                 lParam, hoho->cx, hoho->cy);
          /* guess  -  level 2 */
          if (!hoho->cy) {
              hoho->cy = infoPtr->rcBound.bottom - infoPtr->rcBound.top;
          }
          return 1;
     }

Note that there has to be some difference between [0463] and TB_GETMAXSIZE.
Also I have seen some of the values being -1 or other small values.

Making the changes to spy.c and seeing what the natvie control does will be
the key.

Guy





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic