先使用GetSystemMenu 看下面一段关于GetSystemMenu的说明,注意SC_CLOSE 然后可以使用EnableMenuItem//////////////////////////// ResAny window that does not use the GetSystemMenu function to make its own copy of the window menu receives the standard window menu. The window menu initially contains items with various identifier values, such as SC_CLOSE, SC_MOVE, and SC_SIZE. Menu items on the window menu send WM_SYSCOMMAND messages.
看下面一段关于GetSystemMenu的说明,注意SC_CLOSE
然后可以使用EnableMenuItem////////////////////////////
ResAny window that does not use the GetSystemMenu function to make its own copy of the window menu receives the standard
window menu.
The window menu initially contains items with various identifier values, such as SC_CLOSE, SC_MOVE, and SC_SIZE.
Menu items on the window menu send WM_SYSCOMMAND messages.
this->RecreateWnd();