use MFC?
if is.BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{ if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
cs.style &= ~WS_MAXIMIZEBOX;
return true;
}
if not , use
dwstyle = getwindowslong(hwnd, GWL_STYLE) -> to get windows style.
dwstyle &= ~GWL_STYLE ->change style disp
setwindowlong(hwnd, GWL_STYLE, dwtyle) -> modify window use new disp
if is.BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{ if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
cs.style &= ~WS_MAXIMIZEBOX;
return true;
}
if not , use
dwstyle = getwindowslong(hwnd, GWL_STYLE) -> to get windows style.
dwstyle &= ~GWL_STYLE ->change style disp
setwindowlong(hwnd, GWL_STYLE, dwtyle) -> modify window use new disp
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货