Ignore:
Timestamp:
Apr 19, 2000, 4:46:07 PM (26 years ago)
Author:
sandervl
Message:

update with latest wine code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/wrc/genres.c

    r882 r3426  
    1919#include "genres.h"
    2020#include "utils.h"
     21#include "windef.h"
     22#include "wingdi.h"
    2123#include "winuser.h"
    2224
     
    416418                restag = put_res_header(res, WRC_RT_DIALOG, NULL, name, dlg->memopt, &(dlg->lvc));
    417419
    418                 put_dword(res, dlg->style);
    419                 put_dword(res, dlg->gotexstyle ? dlg->exstyle : 0);
     420                put_dword(res, dlg->style->or_mask);
     421                put_dword(res, dlg->gotexstyle ? dlg->exstyle->or_mask : 0);
    420422                tag_nctrl = res->size;
    421423                put_word(res, 0);               /* Number of controls */
     
    446448                {
    447449                        /* FIXME: what is default control style? */
    448                         put_dword(res, ctrl->gotstyle ? ctrl->style : WS_CHILD);
    449                         put_dword(res, ctrl->gotexstyle ? ctrl->exstyle : 0);
     450                        put_dword(res, ctrl->gotstyle ? ctrl->style->or_mask: WS_CHILD);
     451                        put_dword(res, ctrl->gotexstyle ? ctrl->exstyle->or_mask : 0);
    450452                        put_word(res, ctrl->x);
    451453                        put_word(res, ctrl->y);
     
    482484                restag = put_res_header(res, WRC_RT_DIALOG, NULL, name, dlg->memopt, NULL);
    483485
    484                 put_dword(res, dlg->gotstyle ? dlg->style : WS_POPUPWINDOW);
     486                put_dword(res, dlg->gotstyle ? dlg->style->or_mask : WS_POPUPWINDOW);
    485487                tag_nctrl = res->size;
    486488                put_byte(res, 0);               /* Number of controls */
     
    514516                        put_word(res, ctrl->height);
    515517                        put_word(res, ctrl->id);
    516                         put_dword(res, ctrl->gotstyle ? ctrl->style : WS_CHILD);
     518                        put_dword(res, ctrl->gotstyle ? ctrl->style->or_mask: WS_CHILD);
    517519                        if(ctrl->ctlclass)
    518520                        {
     
    584586                put_word(res, 0xffff);          /* DlgVer */
    585587                put_dword(res, dlgex->gothelpid ? dlgex->helpid : 0);
    586                 put_dword(res, dlgex->gotexstyle ? dlgex->exstyle : 0);
    587                 put_dword(res, dlgex->gotstyle ? dlgex->style : WS_POPUPWINDOW);
     588                put_dword(res, dlgex->gotexstyle ? dlgex->exstyle->or_mask : 0);
     589                put_dword(res, dlgex->gotstyle ? dlgex->style->or_mask : WS_POPUPWINDOW);
    588590                tag_nctrl = res->size;
    589591                put_word(res, 0);               /* Number of controls */
     
    620622                {
    621623                        put_dword(res, ctrl->gothelpid ? ctrl->helpid : 0);
    622                         put_dword(res, ctrl->gotexstyle ? ctrl->exstyle : 0);
     624                        put_dword(res, ctrl->gotexstyle ? ctrl->exstyle->or_mask : 0);
    623625                        /* FIXME: what is default control style? */
    624                         put_dword(res, ctrl->gotstyle ? ctrl->style : WS_CHILD | WS_VISIBLE);
     626                        put_dword(res, ctrl->gotstyle ? ctrl->style->or_mask : WS_CHILD | WS_VISIBLE);
    625627                        put_word(res, ctrl->x);
    626628                        put_word(res, ctrl->y);
Note: See TracChangeset for help on using the changeset viewer.