MCPcopy Create free account
hub / github.com/TortoiseGit/TortoiseGit / ReplaceControlInfo

Method ReplaceControlInfo

src/ResText/ResModule.cpp:1648–1780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1646}
1647
1648const WORD* CResModule::ReplaceControlInfo(const WORD * res, size_t * wordcount, WORD * newDialog, BOOL bEx)
1649{
1650 if (bEx)
1651 {
1652 if (newDialog)
1653 {
1654 newDialog[(*wordcount)++] = GET_WORD(res++); //helpid
1655 newDialog[(*wordcount)++] = GET_WORD(res++); //helpid
1656 }
1657 else
1658 {
1659 res += 2;
1660 (*wordcount) += 2;
1661 }
1662 }
1663 if (newDialog)
1664 {
1665 auto exStyle = reinterpret_cast<LONG*>(&newDialog[(*wordcount)]);
1666 newDialog[(*wordcount)++] = GET_WORD(res++); //exStyle
1667 newDialog[(*wordcount)++] = GET_WORD(res++); //exStyle
1668 if (m_bRTL)
1669 *exStyle |= WS_EX_RTLREADING;
1670 }
1671 else
1672 {
1673 res += 2;
1674 (*wordcount) += 2;
1675 }
1676
1677 if (newDialog)
1678 {
1679 newDialog[(*wordcount)++] = GET_WORD(res++); //style
1680 newDialog[(*wordcount)++] = GET_WORD(res++); //style
1681 }
1682 else
1683 {
1684 res += 2;
1685 (*wordcount) += 2;
1686 }
1687
1688 if (newDialog)
1689 newDialog[(*wordcount)] = GET_WORD(res); //x
1690 res++;
1691 (*wordcount)++;
1692
1693 if (newDialog)
1694 newDialog[(*wordcount)] = GET_WORD(res); //y
1695 res++;
1696 (*wordcount)++;
1697
1698 if (newDialog)
1699 newDialog[(*wordcount)] = GET_WORD(res); //cx
1700 res++;
1701 (*wordcount)++;
1702
1703 if (newDialog)
1704 newDialog[(*wordcount)] = GET_WORD(res); //cy
1705 res++;

Callers

nothing calls this directly

Calls 1

AlignWORDFunction · 0.85

Tested by

no test coverage detected