Click here to Skip to main content
15,907,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CView class help Pin
toxcct18-Oct-07 6:59
toxcct18-Oct-07 6:59 
GeneralRe: CView class help Pin
ThatsAlok18-Oct-07 23:12
ThatsAlok18-Oct-07 23:12 
GeneralRe: CView class help Pin
toxcct18-Oct-07 23:16
toxcct18-Oct-07 23:16 
GeneralRe: CView class help Pin
ThatsAlok19-Oct-07 0:55
ThatsAlok19-Oct-07 0:55 
AnswerRe: CView class help Pin
JudyL_MD18-Oct-07 7:08
JudyL_MD18-Oct-07 7:08 
AnswerRe: CView class help Pin
Nelek18-Oct-07 20:08
protectorNelek18-Oct-07 20:08 
GeneralRe: CView class help Pin
Hakan Bulut19-Oct-07 9:39
Hakan Bulut19-Oct-07 9:39 
GeneralRe: CView class help Pin
JudyL_MD19-Oct-07 10:29
JudyL_MD19-Oct-07 10:29 
If it's never enabled, I'd still suggest you don't bother to create it in the first place.

However, if it's both enabled and disabled at different times, I can think of two things to try.

1) Catch the WM_SYSCOMMAND message and if the command id is SC_MAXIMIZE, ignore the message - don't pass it to your default windows procedure. This means the window doesn't maximize. However, it does not cause the button nor system menu item to be shown in grayed disabled state.

2) I haven't tried this to know if it works. It's worth you trying if you want the button and menu item to be disabled. Get a handle to the system menu and disable the menu item for maximized. That will definitely cause the entry in the system menu to be disabled, but I don't know if it will percolate over and cause the maximize button to also disable. Let us know how it goes.

Judy

QuestionHow to capture form email and/or password with the web browser control ? Pin
ldaoust18-Oct-07 5:51
ldaoust18-Oct-07 5:51 
AnswerRe: How to capture form email and/or password with the web browser control ? Pin
ldaoust18-Oct-07 9:06
ldaoust18-Oct-07 9:06 
QuestionConvert a small .exe to an MFC DLL: Pin
wycoff18-Oct-07 4:43
wycoff18-Oct-07 4:43 
GeneralRe: Convert a small .exe to an MFC DLL: Pin
Matthew Faithfull18-Oct-07 5:52
Matthew Faithfull18-Oct-07 5:52 
AnswerRe: Convert a small .exe to an MFC DLL: Pin
Nelek18-Oct-07 20:14
protectorNelek18-Oct-07 20:14 
QuestionHow read from file *.ini ? Pin
hoangtungoc18-Oct-07 4:06
hoangtungoc18-Oct-07 4:06 
JokeRe: How read from file *.ini ? [modified] Pin
toxcct18-Oct-07 4:16
toxcct18-Oct-07 4:16 
GeneralRe: How read from file *.ini ? Pin
David Crow18-Oct-07 4:28
David Crow18-Oct-07 4:28 
GeneralRe: How read from file *.ini ? Pin
ThatsAlok18-Oct-07 23:15
ThatsAlok18-Oct-07 23:15 
AnswerRe: How read from file *.ini ? Pin
led mike18-Oct-07 4:17
led mike18-Oct-07 4:17 
GeneralCuriosity Pin
Nelek18-Oct-07 20:20
protectorNelek18-Oct-07 20:20 
GeneralRe: Curiosity Pin
led mike19-Oct-07 5:22
led mike19-Oct-07 5:22 
AnswerRe: How read from file *.ini ? Pin
Hamid_RT18-Oct-07 7:31
Hamid_RT18-Oct-07 7:31 
AnswerRe: How read from file *.ini ? Pin
ThatsAlok18-Oct-07 23:10
ThatsAlok18-Oct-07 23:10 
QuestionError while compiling Pin
staticplus18-Oct-07 4:00
staticplus18-Oct-07 4:00 
AnswerRe: Error while compiling Pin
led mike18-Oct-07 4:20
led mike18-Oct-07 4:20 
GeneralRe: Error while compiling Pin
staticplus18-Oct-07 4:30
staticplus18-Oct-07 4:30 

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.