CreateWindowEx (
0, /* Extended possibilites for variation */
szClassName, /* Classname */
"Windows App", /* Title Text */
WS_CAPTION, /* default window */
CW_USEDEFAULT, /* Windows decides the position */
CW_USEDEFAULT, /* where the window ends up on the screen */
800, /* The programs width */
600, /* and height in pixels */
HWND_DESKTOP, /* The window is a child-window to desktop */
NULL, /* No menu */
hThisInstance, /* Program Instance handler */
NULL /* No Window Creation data */
);
=====================
重點在於第四個函數的設定,
不過只有設定WS_CAPTION的話,視窗上面所有的按鍵都會消失不見。
如果只有設定WS_CAPTION,記得先產生一個可以關閉視窗的按鍵。
本文详细解析了在Windows应用程序中使用CreateWindowEx函数创建窗口的过程。重点在于如何设置窗口样式,例如仅设置WS_CAPTION时,窗口上的所有按钮将消失,需额外添加关闭按钮。文章来源于https://www.cnblogs.com/dforce/articles/1733766.html。
580

被折叠的 条评论
为什么被折叠?



