Skip to main content
Email Password   helpLost your password?

Introduction

This program is a VERY simple one to demostrate how to disable the close button on a Windows Console App. When I was looking up how to do this, I failed to find anything to help me on the site save the forums.

In reality we simply need to call two separate functions GetSystemMenu() and DeleteMenu(). This same algorithm can be used to disable/enable ANY of the system menu buttons.

The entry point for YOUR code is in the else block after testing for MFC failure.

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
Question#include "DisableCloseBtn.h" Pin
000dreamsound000
6:37 18 Jul '07  
AnswerRe: #include "DisableCloseBtn.h" Pin
John L. DeVito
16:49 18 Jul '07  
GeneralEasier way Pin
sgtawol
6:01 7 Aug '06  
Generalhow to add item to windows explorer popUp menue Pin
wow_tato
7:29 24 Dec '03  
GeneralThis one is really easy Pin
Jesterka
3:55 9 Dec '03  
GeneralRe: This one is really easy Pin
kha0s
9:22 9 Dec '03  
GeneralWhy? Pin
dog_spawn
13:42 7 Dec '03  
GeneralRe: Why? Pin
hrabe
23:22 7 Dec '03  
GeneralRe: Why? Pin
dog_spawn
5:33 8 Dec '03  
GeneralRe: Why? Pin
The___Dude
10:02 6 Sep '07  
GeneralRe: Why? Pin
kha0s
6:20 8 Dec '03  
GeneralRe: Why? Pin
Anthony_Yio
17:03 10 Dec '03  


Last Updated 6 Dec 2003 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2009