Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File Empty status Pin
Nish Nishant23-Jun-02 0:18
sitebuilderNish Nishant23-Jun-02 0:18 
GeneralEnable/Disable Frame Buttons :: MFC Pin
valikac22-Jun-02 21:30
valikac22-Jun-02 21:30 
GeneralRe: Enable/Disable Frame Buttons :: MFC Pin
Nish Nishant22-Jun-02 22:12
sitebuilderNish Nishant22-Jun-02 22:12 
GeneralRe: Enable/Disable Frame Buttons :: MFC Pin
valikac23-Jun-02 6:39
valikac23-Jun-02 6:39 
GeneralRe: Enable/Disable Frame Buttons :: MFC Pin
Sonu Kapoor23-Jun-02 7:30
Sonu Kapoor23-Jun-02 7:30 
GeneralRe: Enable/Disable Frame Buttons :: MFC Pin
valikac23-Jun-02 7:38
valikac23-Jun-02 7:38 
GeneralRe: Enable/Disable Frame Buttons :: MFC Pin
Nish Nishant23-Jun-02 15:25
sitebuilderNish Nishant23-Jun-02 15:25 
GeneralRe: Enable/Disable Frame Buttons :: MFC Pin
valikac23-Jun-02 16:16
valikac23-Jun-02 16:16 
Nice!!! Thanks!

I tried our solution. I was able to disable the "X," but could not recover it. Through looking up some other functions via help, I found another solution.

-----
// Disable the "X"
GetSystemMenu(FALSE)->EnableMenuItem(SC_CLOSE,MF_DISABLED);

// Enable the "X"
GetSystemMenu(FALSE)->EnableMenuItem(SC_CLOSE,MF_ENABLED);
-----

Furthermore, SC_CLOSE is just one of a series of menu items that can be used.

GetSystemMenu() is very powerful. Thanks!

Kuphryn

GeneralProblem with GetDIBits under XP/NT Pin
yarp22-Jun-02 21:00
yarp22-Jun-02 21:00 
GeneralRe: Problem with GetDIBits under XP/NT Pin
Joel Lucsy23-Jun-02 16:26
Joel Lucsy23-Jun-02 16:26 
GeneralRe: Problem with GetDIBits under XP/NT Pin
yarp23-Jun-02 18:59
yarp23-Jun-02 18:59 
GeneralRe: Problem with GetDIBits under XP/NT Pin
yarp24-Jun-02 8:03
yarp24-Jun-02 8:03 
GeneralRe: Problem with GetDIBits under XP/NT Pin
Mike Nordell23-Jun-02 17:22
Mike Nordell23-Jun-02 17:22 
GeneralRe: Problem with GetDIBits under XP/NT Pin
yarp23-Jun-02 18:56
yarp23-Jun-02 18:56 
QuestionHow to remove the "Help" button on property sheet? Pin
Abin22-Jun-02 16:39
Abin22-Jun-02 16:39 
AnswerRe: How to remove the "Help" button on property sheet? Pin
Michael Dunn22-Jun-02 16:58
sitebuilderMichael Dunn22-Jun-02 16:58 
GeneralRe: How to remove the "Help" button on property sheet? Pin
Abin22-Jun-02 17:12
Abin22-Jun-02 17:12 
GeneralGetting text from MFC status-bar (subclassed msctls_statusbar32) Pin
Vitaly Belman22-Jun-02 14:31
Vitaly Belman22-Jun-02 14:31 
GeneralQuestion about MS Script Control Pin
22-Jun-02 14:17
suss22-Jun-02 14:17 
GeneralTerminal Services Client API Pin
StefanM22-Jun-02 14:06
StefanM22-Jun-02 14:06 
GeneralReBar toolbar chevron drop-down menu no icon Pin
Hiusing22-Jun-02 10:11
Hiusing22-Jun-02 10:11 
General_beginthread Pin
22-Jun-02 9:45
suss22-Jun-02 9:45 
GeneralRe: _beginthread Pin
Michael Dunn22-Jun-02 9:55
sitebuilderMichael Dunn22-Jun-02 9:55 
GeneralRe: _beginthread Pin
22-Jun-02 9:56
suss22-Jun-02 9:56 
GeneralShell Extension problem Pin
Hiusing22-Jun-02 9:03
Hiusing22-Jun-02 9:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.