TopWindow::NoCloseBox

git-svn-id: svn://ultimatepp.org/upp/trunk@1353 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-07-03 06:47:22 +00:00
parent 531b18675a
commit 4a3ee5449b
3 changed files with 6 additions and 3 deletions

View file

@ -105,10 +105,11 @@ void TopWindow::SyncCaption0()
if(frameless)
style = (style & ~WS_CAPTION) | WS_POPUP;
else
if(IsNull(icon) && !maximizebox && !minimizebox) {
if(IsNull(icon) && !maximizebox && !minimizebox || noclosebox) {
style |= WS_POPUPWINDOW|WS_DLGFRAME;
exstyle |= WS_EX_DLGMODALFRAME;
style &= ~WS_SYSMENU;
if(noclosebox)
style &= ~WS_SYSMENU;
}
else
#endif