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

C / C++ / MFC

 
AnswerRe: How to change background color of selected row in list control Pin
ThatsAlok14-Mar-07 20:10
ThatsAlok14-Mar-07 20:10 
QuestionVista like look Pin
Anup Ashok Kulkarni14-Mar-07 0:41
Anup Ashok Kulkarni14-Mar-07 0:41 
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 
Thanx for your response ... but,
getchar() : Read a character from a stream.

If one thats the following into consideration:
#include <stdio.h>

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 );
}


So if I wat to click on the "Close" button in the top right hand corner of the window, the getchar() would stop this event from taking place ?
Confused | :confused: Confused | :confused: 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: ^_^

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 
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 

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.