Changeset 3426 for trunk/tools/wrc/genres.c
- Timestamp:
- Apr 19, 2000, 4:46:07 PM (26 years ago)
- File:
-
- 1 edited
-
trunk/tools/wrc/genres.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/wrc/genres.c
r882 r3426 19 19 #include "genres.h" 20 20 #include "utils.h" 21 #include "windef.h" 22 #include "wingdi.h" 21 23 #include "winuser.h" 22 24 … … 416 418 restag = put_res_header(res, WRC_RT_DIALOG, NULL, name, dlg->memopt, &(dlg->lvc)); 417 419 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); 420 422 tag_nctrl = res->size; 421 423 put_word(res, 0); /* Number of controls */ … … 446 448 { 447 449 /* 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); 450 452 put_word(res, ctrl->x); 451 453 put_word(res, ctrl->y); … … 482 484 restag = put_res_header(res, WRC_RT_DIALOG, NULL, name, dlg->memopt, NULL); 483 485 484 put_dword(res, dlg->gotstyle ? dlg->style : WS_POPUPWINDOW);486 put_dword(res, dlg->gotstyle ? dlg->style->or_mask : WS_POPUPWINDOW); 485 487 tag_nctrl = res->size; 486 488 put_byte(res, 0); /* Number of controls */ … … 514 516 put_word(res, ctrl->height); 515 517 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); 517 519 if(ctrl->ctlclass) 518 520 { … … 584 586 put_word(res, 0xffff); /* DlgVer */ 585 587 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); 588 590 tag_nctrl = res->size; 589 591 put_word(res, 0); /* Number of controls */ … … 620 622 { 621 623 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); 623 625 /* 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); 625 627 put_word(res, ctrl->x); 626 628 put_word(res, ctrl->y);
Note:
See TracChangeset
for help on using the changeset viewer.
