Click here to Skip to main content
15,881,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to use #pragma data_seq() Pin
ernst2002053020-Mar-09 7:48
ernst2002053020-Mar-09 7:48 
AnswerRe: how to use #pragma data_seq() Pin
David Crow20-Mar-09 7:55
David Crow20-Mar-09 7:55 
GeneralRe: how to use #pragma data_seq() Pin
ernst2002053020-Mar-09 8:04
ernst2002053020-Mar-09 8:04 
GeneralRe: how to use #pragma data_seq() Pin
David Crow20-Mar-09 8:09
David Crow20-Mar-09 8:09 
GeneralRe: how to use #pragma data_seq() Pin
ernst2002053020-Mar-09 8:18
ernst2002053020-Mar-09 8:18 
GeneralRe: how to use #pragma data_seq() Pin
David Crow20-Mar-09 8:29
David Crow20-Mar-09 8:29 
AnswerRe: how to use #pragma data_seq() Pin
cmk20-Mar-09 10:38
cmk20-Mar-09 10:38 
QuestionErase previous drawings Pin
llp00na20-Mar-09 6:53
llp00na20-Mar-09 6:53 
Hi
I have got the following code:

Code:

drawDATA(Shapes shapes, CDC& cd){
// select pen ... ect
// draw shapes
cd.TextOut(X, Y, "DRAW1");
}

I am calling drawDATA from two methods drawA, drawB with: CClientDC dc(this) as parameter.

drawA(shapesA, dc); --> if user invokes action A
Invalidate()
drawB(shapesB, dc); --> if user invokes action B
Invalidate();

both methods draw the shapes, but I only want to show the latest shapes not both shapes of A and B.

If user clicks button A then i should show him shapes A
If he clicks Button B then I should show him shapes B.

If he clicks A , I should show shapes A first, and he continues and clicks B, I should erase shapes A and show shapes B only

SO iI need a way of erasing previous shapes
thank

llp00na

AnswerRe: Erase previous drawings Pin
Chris Losinger20-Mar-09 7:09
professionalChris Losinger20-Mar-09 7:09 
GeneralRe: Erase previous drawings Pin
llp00na20-Mar-09 7:27
llp00na20-Mar-09 7:27 
GeneralRe: Erase previous drawings Pin
Chris Losinger20-Mar-09 7:35
professionalChris Losinger20-Mar-09 7:35 
GeneralRe: Erase previous drawings Pin
David Crow20-Mar-09 9:25
David Crow20-Mar-09 9:25 
AnswerRe: Erase previous drawings Pin
Code-o-mat20-Mar-09 7:30
Code-o-mat20-Mar-09 7:30 
GeneralRe: Erase previous drawings Pin
llp00na20-Mar-09 8:17
llp00na20-Mar-09 8:17 
GeneralRe: Erase previous drawings Pin
llp00na20-Mar-09 8:23
llp00na20-Mar-09 8:23 
QuestionRe: Erase previous drawings Pin
David Crow20-Mar-09 8:31
David Crow20-Mar-09 8:31 
AnswerRe: Erase previous drawings Pin
llp00na20-Mar-09 9:04
llp00na20-Mar-09 9:04 
QuestionRe: Erase previous drawings Pin
David Crow20-Mar-09 9:06
David Crow20-Mar-09 9:06 
AnswerRe: Erase previous drawings Pin
llp00na20-Mar-09 9:12
llp00na20-Mar-09 9:12 
QuestionRe: Erase previous drawings Pin
David Crow20-Mar-09 9:15
David Crow20-Mar-09 9:15 
AnswerRe: Erase previous drawings Pin
llp00na20-Mar-09 9:21
llp00na20-Mar-09 9:21 
QuestionMessage Removed Pin
20-Mar-09 6:21
professionalAndre' Gardiner20-Mar-09 6:21 
AnswerRe: Why are my articles been deleted? Pin
jeron120-Mar-09 7:26
jeron120-Mar-09 7:26 
AnswerRe: Why are my articles been deleted? Pin
Anna-Jayne Metcalfe20-Mar-09 7:30
Anna-Jayne Metcalfe20-Mar-09 7:30 
AnswerRe: Why are my articles been deleted? Pin
Cedric Moonen20-Mar-09 8:18
Cedric Moonen20-Mar-09 8:18 

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.