Click here to Skip to main content
15,899,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionclearing a CDC Pin
ns9-Jun-06 9:34
ns9-Jun-06 9:34 
AnswerRe: clearing a CDC Pin
Cedric Moonen9-Jun-06 10:04
Cedric Moonen9-Jun-06 10:04 
GeneralRe: clearing a CDC Pin
bob169729-Jun-06 17:13
bob169729-Jun-06 17:13 
Questionstack question? Pin
G_S9-Jun-06 9:22
G_S9-Jun-06 9:22 
AnswerRe: stack question? Pin
David Crow9-Jun-06 10:26
David Crow9-Jun-06 10:26 
QuestionDefining my own escape sequences? Pin
CoffeeAddict199-Jun-06 7:26
CoffeeAddict199-Jun-06 7:26 
QuestionRe: Defining my own escape sequences? Pin
David Crow9-Jun-06 7:53
David Crow9-Jun-06 7:53 
AnswerRe: Defining my own escape sequences? [modified] Pin
CoffeeAddict199-Jun-06 8:15
CoffeeAddict199-Jun-06 8:15 
There would be maybe 3 classes defined and 4 involved. 2 classes (one for each buffer, and duplicates of each other) do the actual low level Win32 function calls for their respective buffers. They would use this function to change the font, change the buffer size, the cursor position, and the window size:

void SetBufferInfo(int NewXCord, int NewYCord, PrintColorType ForeColor, PrintColorType BackColor, SetBufferType BufferAction); //sets buffer info

Another class which contains both of those buffer classes as private members acts as an interface between the client and the other two low-level buffer classes. It uses a set of of functions to change the title, change the font color, clear the screen, switch the active buffer so I can do double buffering, etc.

Another class (the client in this case) would set it up so that certain escape sequences, when read from a stream, would invoke the functions in the interface class described above.

-- modified at 14:18 Friday 9th June, 2006
GeneralRe: Defining my own escape sequences? Pin
Zac Howland9-Jun-06 8:18
Zac Howland9-Jun-06 8:18 
GeneralRe: Defining my own escape sequences? Pin
David Crow9-Jun-06 8:31
David Crow9-Jun-06 8:31 
GeneralRe: Defining my own escape sequences? Pin
CoffeeAddict1910-Jun-06 7:13
CoffeeAddict1910-Jun-06 7:13 
GeneralRe: Defining my own escape sequences? Pin
David Crow12-Jun-06 2:32
David Crow12-Jun-06 2:32 
AnswerRe: Defining my own escape sequences? Pin
Zac Howland9-Jun-06 8:03
Zac Howland9-Jun-06 8:03 
QuestionRefresh/update Dialogs in TabCtrl ??? Pin
embeddedDude9-Jun-06 5:59
embeddedDude9-Jun-06 5:59 
QuestionNT Services with ADO Pin
almc9-Jun-06 5:22
almc9-Jun-06 5:22 
QuestionLinker Error 2001, yet again Pin
Fariborz_579-Jun-06 5:13
Fariborz_579-Jun-06 5:13 
AnswerRe: Linker Error 2001, yet again Pin
Zac Howland9-Jun-06 5:44
Zac Howland9-Jun-06 5:44 
Question_Iterator_base sometimes struct, sometimes class Pin
Federico Milano9-Jun-06 4:51
Federico Milano9-Jun-06 4:51 
Questionproblem with dialog procedure Pin
fury 849-Jun-06 4:47
fury 849-Jun-06 4:47 
AnswerRe: problem with dialog procedure Pin
David Crow9-Jun-06 5:28
David Crow9-Jun-06 5:28 
GeneralRe: problem with dialog procedure Pin
fury 849-Jun-06 10:41
fury 849-Jun-06 10:41 
GeneralRe: problem with dialog procedure Pin
David Crow9-Jun-06 10:46
David Crow9-Jun-06 10:46 
AnswerRe: problem with dialog procedure Pin
Viorel.9-Jun-06 5:38
Viorel.9-Jun-06 5:38 
GeneralRe: problem with dialog procedure Pin
fury 849-Jun-06 10:48
fury 849-Jun-06 10:48 
Questioncontrol Pin
yogendra kaushik9-Jun-06 4:22
yogendra kaushik9-Jun-06 4:22 

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.