BOOL SetWindowPos( HWND hWnd, // handle to window you want to adjust HWND hWndInsertAfter, // placement-order handle int X, // horizontal position int Y, // vertical position int cx, // width int cy, // height UINT uFlags // window-positioning options ); hWndInsertAfter=HWND_TOPMOST; uFlags=SWP_NOSIZE|SWP_SHOWWINDOW; x=0; y=0;
HWND hWnd, // handle to window you want to adjust
HWND hWndInsertAfter, // placement-order handle
int X, // horizontal position
int Y, // vertical position
int cx, // width
int cy, // height
UINT uFlags // window-positioning options
);
hWndInsertAfter=HWND_TOPMOST;
uFlags=SWP_NOSIZE|SWP_SHOWWINDOW;
x=0;
y=0;
CMenu* pTopMenu = GetSystemMenu(FALSE);
pTopMenu -> RemoveMenu(4,MF_BYPOSITION); //Maximize
pTopMenu -> RemoveMenu(2,MF_BYPOSITION); //Size
pTopMenu -> RemoveMenu(1,MF_BYPOSITION); //Move
2.总是在最上
SetWindowPos(&CWnd::wndTopMost ,
0, 0, 0, 0,
SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE);
是BOOL CDemoDlg::OnInitDialog()
下面玛?