Click here to Skip to main content
15,919,931 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to ignore the Redraw message Pin
Rajkumar R1-Jun-08 0:04
Rajkumar R1-Jun-08 0:04 
GeneralRe: How to ignore the Redraw message [modified] Pin
Schehaider_Aymen1-Jun-08 0:38
Schehaider_Aymen1-Jun-08 0:38 
GeneralRe: How to ignore the Redraw message Pin
Rajkumar R1-Jun-08 1:03
Rajkumar R1-Jun-08 1:03 
GeneralRe: How to ignore the Redraw message Pin
Schehaider_Aymen1-Jun-08 1:28
Schehaider_Aymen1-Jun-08 1:28 
GeneralRe: How to ignore the Redraw message Pin
Rajkumar R1-Jun-08 2:16
Rajkumar R1-Jun-08 2:16 
GeneralRe: How to ignore the Redraw message Pin
Bram van Kampen1-Jun-08 1:47
Bram van Kampen1-Jun-08 1:47 
QuestionReset the interface Pin
Schehaider_Aymen31-May-08 22:48
Schehaider_Aymen31-May-08 22:48 
AnswerRe: Reset the interface Pin
Nelek1-Jun-08 6:46
protectorNelek1-Jun-08 6:46 
If you are drawing directly from the button a call to UpdateDiialog or UpdateWindow will do it.

But the problem is that on this way (drawing directly from the button code) if you minimize and restore the elipse will be away as well.

I would make it:

Button "Draw" -> Set a bool, bPaintEll = TRUE;
Button "Erase" -> Reset the bool, bPainEll = FALSE;

and then in your OnDraw (for Views) or your OnPaint (for dialogs)

if (bPaintEll)
{
function or direct code to draw the ellipse
}

With it, every time you call Invalidate and UpdateWindow it will be erased and repainted (if needed), and when you have it on the screen and you go to another app or minimize, it will be repainted (if needed) alone.

Greetings.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.

QuestionString Table bug? Pin
followait31-May-08 21:44
followait31-May-08 21:44 
AnswerRe: String Table bug? Pin
Rajesh R Subramanian31-May-08 22:17
professionalRajesh R Subramanian31-May-08 22:17 
GeneralRe: String Table bug? Pin
followait1-Jun-08 0:31
followait1-Jun-08 0:31 
GeneralRe: String Table bug? Pin
Rajesh R Subramanian1-Jun-08 1:06
professionalRajesh R Subramanian1-Jun-08 1:06 
AnswerRe: String Table bug? Pin
Joe Woodbury1-Jun-08 12:24
professionalJoe Woodbury1-Jun-08 12:24 
Questioncustom control Pin
subramanyeswari31-May-08 21:03
subramanyeswari31-May-08 21:03 
AnswerRe: custom control Pin
Rajkumar R1-Jun-08 0:26
Rajkumar R1-Jun-08 0:26 
GeneralRe: custom control Pin
subramanyeswari1-Jun-08 0:42
subramanyeswari1-Jun-08 0:42 
GeneralRe: custom control Pin
Rajkumar R1-Jun-08 2:20
Rajkumar R1-Jun-08 2:20 
QuestionProblem about shared list by MDI child views Pin
followait31-May-08 20:44
followait31-May-08 20:44 
AnswerRe: Problem about shared list by MDI child views Pin
Rajkumar R1-Jun-08 1:09
Rajkumar R1-Jun-08 1:09 
AnswerRe: Problem about shared list by MDI child views Pin
Nelek1-Jun-08 6:38
protectorNelek1-Jun-08 6:38 
QuestionTime Bomb in VS5.00 Pin
Bram van Kampen31-May-08 17:25
Bram van Kampen31-May-08 17:25 
AnswerRe: Time Bomb in VS5.00 Pin
Gary R. Wheeler1-Jun-08 1:05
Gary R. Wheeler1-Jun-08 1:05 
GeneralRe: Time Bomb in VS5.00 Pin
Bram van Kampen2-Jun-08 15:36
Bram van Kampen2-Jun-08 15:36 
QuestionUsing Help Workshop in MFC VS2008 Pin
Larry Mills Sr31-May-08 15:40
Larry Mills Sr31-May-08 15:40 
QuestionInstallShield and non English languages Pin
Joseph Marzbani31-May-08 9:31
Joseph Marzbani31-May-08 9:31 

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.