Click here to Skip to main content
15,920,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Vista like look Pin
Sameer_Thakur14-Mar-07 1:19
Sameer_Thakur14-Mar-07 1:19 
Questiondeclaring object of type CFormView in class derived from CWinThread Pin
sulabh_expert@rediffmail.com14-Mar-07 0:24
sulabh_expert@rediffmail.com14-Mar-07 0:24 
AnswerRe: declaring object of type CFormView in class derived from CWinThread Pin
Parthi_Appu14-Mar-07 0:28
Parthi_Appu14-Mar-07 0:28 
QuestionHow to intercept Console Window Close Event Pin
Programm3r13-Mar-07 23:42
Programm3r13-Mar-07 23:42 
AnswerRe: How to intercept Console Window Close Event Pin
david bagaturia14-Mar-07 0:08
david bagaturia14-Mar-07 0:08 
QuestionRe: How to intercept Console Window Close Event Pin
Programm3r14-Mar-07 0:18
Programm3r14-Mar-07 0:18 
AnswerRe: How to intercept Console Window Close Event Pin
david bagaturia14-Mar-07 0:41
david bagaturia14-Mar-07 0:41 
QuestionRe: How to intercept Console Window Close Event Pin
Programm3r14-Mar-07 0:49
Programm3r14-Mar-07 0:49 
Ok, so maybe I not saying it correctly, so I'll try again.
I want to intercept the Close Button event of a Win32 Console Window. In other words, the Close ( X ) button in the top right hand corner of any window, I want to intercept that.

If one runs this piece of code:
void main( void )
{ 
char buffer[81]; 
int i, ch; 

printf( "Enter a line: " ); /* Read in single line from "stdin": */ 

for( i = 0; (i < 80) && ((ch = getchar()) != EOF) && (ch != '\n'); i++ )
buffer[i] = (char)ch; /* Terminate string with null character: */ 
buffer[i] = '\0'; 
printf( "%s\n", buffer );

Sleep(7000);
}


It will not stop the closing of the window, when pressing the close button of the window.

Am I making sense??? WTF | :WTF: WTF | :WTF:


The only programmers that are better than C programmers are those who code in 1's and 0's..... Smile | :)

Smile | :) Programm3r

My Blog: ^_^

Question[Message Deleted] Pin
kakan14-Mar-07 0:56
professionalkakan14-Mar-07 0:56 
AnswerRe: How to intercept Console Window Close Event Pin
Cedric Moonen14-Mar-07 1:08
Cedric Moonen14-Mar-07 1:08 
GeneralRe: How to intercept Console Window Close Event Pin
kakan14-Mar-07 1:11
professionalkakan14-Mar-07 1:11 
AnswerRe: How to intercept Console Window Close Event Pin
Stephen Hewitt14-Mar-07 3:47
Stephen Hewitt14-Mar-07 3:47 
AnswerRe: How to intercept Console Window Close Event Pin
Stephen Hewitt14-Mar-07 3:53
Stephen Hewitt14-Mar-07 3:53 
GeneralRe: How to intercept Console Window Close Event Pin
Programm3r15-Mar-07 19:49
Programm3r15-Mar-07 19:49 
AnswerRe: How to intercept Console Window Close Event Pin
prasad_som14-Mar-07 7:49
prasad_som14-Mar-07 7:49 
GeneralRe: How to intercept Console Window Close Event Pin
Stephen Hewitt14-Mar-07 12:54
Stephen Hewitt14-Mar-07 12:54 
GeneralRe: How to intercept Console Window Close Event Pin
prasad_som14-Mar-07 18:08
prasad_som14-Mar-07 18:08 
GeneralRe: How to intercept Console Window Close Event Pin
Programm3r15-Mar-07 19:49
Programm3r15-Mar-07 19:49 
GeneralRe: How to intercept Console Window Close Event Pin
prasad_som15-Mar-07 19:56
prasad_som15-Mar-07 19:56 
QuestionCursor help Pin
rushiraj.jhala13-Mar-07 23:28
rushiraj.jhala13-Mar-07 23:28 
AnswerRe: Cursor help Pin
Parthi_Appu14-Mar-07 0:36
Parthi_Appu14-Mar-07 0:36 
GeneralRe: Cursor help Pin
rushiraj.jhala14-Mar-07 0:58
rushiraj.jhala14-Mar-07 0:58 
GeneralRe: Cursor help Pin
_AnsHUMAN_ 14-Mar-07 1:10
_AnsHUMAN_ 14-Mar-07 1:10 
GeneralRe: Cursor help Pin
rushiraj.jhala14-Mar-07 1:56
rushiraj.jhala14-Mar-07 1:56 
AnswerRe: Cursor help Pin
Parthi_Appu14-Mar-07 2:30
Parthi_Appu14-Mar-07 2: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.