1. <small id='Fm7Pn'></small><noframes id='Fm7Pn'>

    <tfoot id='Fm7Pn'></tfoot>

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

      使用 CreateWindowEx 制作仅消息窗口

      时间:2023-08-01
      <tfoot id='6pff6'></tfoot>
      1. <legend id='6pff6'><style id='6pff6'><dir id='6pff6'><q id='6pff6'></q></dir></style></legend>

            <tbody id='6pff6'></tbody>

              <small id='6pff6'></small><noframes id='6pff6'>

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

              • 本文介绍了使用 CreateWindowEx 制作仅消息窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我正在尝试使用 CreateWindowEx 来生成仅消息窗口:

                I'm trying to use CreateWindowEx to generate a message-only window:

                _hWnd = CreateWindowEx( 0, NULL, NULL, 0, 0, 0, 0, 0, HWND_MESSAGE, NULL, NULL, NULL );
                

                当我的应用程序执行这一行时,它总是返回 _hWnd = 0.我做错了什么?

                When my application executes this line it always returns _hWnd = 0. What am I doing wrong?

                推荐答案

                lpClassName 不应为 NULL.使用RegisterClassEx 函数注册类并将其传递给CreateWindowEx.

                lpClassName shouldn't be NULL. Register class using RegisterClassEx function and pass it to CreateWindowEx.

                static const char* class_name = "DUMMY_CLASS";
                WNDCLASSEX wx = {};
                wx.cbSize = sizeof(WNDCLASSEX);
                wx.lpfnWndProc = pWndProc;        // function which will handle messages
                wx.hInstance = current_instance;
                wx.lpszClassName = class_name;
                if ( RegisterClassEx(&wx) ) {
                  CreateWindowEx( 0, class_name, "dummy_name", 0, 0, 0, 0, 0, HWND_MESSAGE, NULL, NULL, NULL );
                }
                

                这篇关于使用 CreateWindowEx 制作仅消息窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:如何有效地杀死 C++ (Win32) 中的进程? 下一篇:Win32:将窗口置于顶部

                相关文章

                最新文章

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

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

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