SetWindowLong(FormX.Handle, GWL_EXSTYLE, not (GetWindowLong(FormX.handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW AND NOT WS_EX_APPWINDOW)); 好像不好控制,Form里的东西都显示不出???
你在 Form 的 onCreate, onShow 事件中寫, 不行嗎??
直接在你要設置的form的onCreate中加入:SetWindowLong(Handle, GWL_EXSTYLE, (GetWindowLong(handle, GWL_EXSTYLE) or WS_EX_APPWINDOW));我測試是沒問題的
http://community.csdn.net/Expert/topic/3636/3636112.xml?temp=.1073419
not (GetWindowLong(FormX.handle, GWL_EXSTYLE)
or WS_EX_TOOLWINDOW AND NOT WS_EX_APPWINDOW));FormX 就是你要設置的Form
not (GetWindowLong(FormX.handle, GWL_EXSTYLE)
or WS_EX_TOOLWINDOW AND NOT WS_EX_APPWINDOW));
好像不好控制,Form里的东西都显示不出???
(GetWindowLong(handle, GWL_EXSTYLE)
or WS_EX_APPWINDOW));我測試是沒問題的