<small id='RH0rM'></small><noframes id='RH0rM'>

  • <i id='RH0rM'><tr id='RH0rM'><dt id='RH0rM'><q id='RH0rM'><span id='RH0rM'><b id='RH0rM'><form id='RH0rM'><ins id='RH0rM'></ins><ul id='RH0rM'></ul><sub id='RH0rM'></sub></form><legend id='RH0rM'></legend><bdo id='RH0rM'><pre id='RH0rM'><center id='RH0rM'></center></pre></bdo></b><th id='RH0rM'></th></span></q></dt></tr></i><div id='RH0rM'><tfoot id='RH0rM'></tfoot><dl id='RH0rM'><fieldset id='RH0rM'></fieldset></dl></div>

    <legend id='RH0rM'><style id='RH0rM'><dir id='RH0rM'><q id='RH0rM'></q></dir></style></legend>

    • <bdo id='RH0rM'></bdo><ul id='RH0rM'></ul>
    <tfoot id='RH0rM'></tfoot>

        如何获得复选框的大小和间隙?

        时间:2023-08-01

              <tbody id='vbu1c'></tbody>
              <legend id='vbu1c'><style id='vbu1c'><dir id='vbu1c'><q id='vbu1c'></q></dir></style></legend>

              • <bdo id='vbu1c'></bdo><ul id='vbu1c'></ul>

                <i id='vbu1c'><tr id='vbu1c'><dt id='vbu1c'><q id='vbu1c'><span id='vbu1c'><b id='vbu1c'><form id='vbu1c'><ins id='vbu1c'></ins><ul id='vbu1c'></ul><sub id='vbu1c'></sub></form><legend id='vbu1c'></legend><bdo id='vbu1c'><pre id='vbu1c'><center id='vbu1c'></center></pre></bdo></b><th id='vbu1c'></th></span></q></dt></tr></i><div id='vbu1c'><tfoot id='vbu1c'></tfoot><dl id='vbu1c'><fieldset id='vbu1c'></fieldset></dl></div>

                  <small id='vbu1c'></small><noframes id='vbu1c'>

                  <tfoot id='vbu1c'></tfoot>

                1. 本文介绍了如何获得复选框的大小和间隙?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我有一个复选框,我想对其进行准确测量,以便我可以在对话框上正确定位控件.我可以轻松测量控件上文本的大小 - 但我不知道计算复选框大小和文本之前(或之后)间隙的官方"方法.

                  I have a check box that I want to accurately measure so I can position controls on a dialog correctly. I can easily measure the size of the text on the control - but I don't know the "official" way of calculating the size of the check box and the gap before (or after) the text.

                  推荐答案

                  我很确定复选框的宽度等于

                  I'm pretty sure the width of the checkbox is equal to

                  int x = GetSystemMetrics( SM_CXMENUCHECK );
                  int y = GetSystemMetrics( SM_CYMENUCHECK );
                  

                  然后您可以通过减去以下内容来计算内部区域......

                  You can then work out the area inside by subtracting the following ...

                     int xInner = GetSystemMetrics( SM_CXEDGE );
                     int yInner = GetSystemMetrics( SM_CYEDGE );
                  

                  我在我的代码中使用它,到目前为止还没有出现问题......

                  I use that in my code and haven't had a problem thus far ...

                  这篇关于如何获得复选框的大小和间隙?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 MinGW 中使用 Windows API? 下一篇:C++:如何捕捉鼠标点击发生的任何地方

                  相关文章

                  最新文章

                2. <i id='NK6S4'><tr id='NK6S4'><dt id='NK6S4'><q id='NK6S4'><span id='NK6S4'><b id='NK6S4'><form id='NK6S4'><ins id='NK6S4'></ins><ul id='NK6S4'></ul><sub id='NK6S4'></sub></form><legend id='NK6S4'></legend><bdo id='NK6S4'><pre id='NK6S4'><center id='NK6S4'></center></pre></bdo></b><th id='NK6S4'></th></span></q></dt></tr></i><div id='NK6S4'><tfoot id='NK6S4'></tfoot><dl id='NK6S4'><fieldset id='NK6S4'></fieldset></dl></div>
                    <bdo id='NK6S4'></bdo><ul id='NK6S4'></ul>

                    <small id='NK6S4'></small><noframes id='NK6S4'>

                  1. <tfoot id='NK6S4'></tfoot>
                    <legend id='NK6S4'><style id='NK6S4'><dir id='NK6S4'><q id='NK6S4'></q></dir></style></legend>