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,記得先產生一個可以關閉視窗的按鍵。