Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStuid Question Pin
The_Server24-Dec-01 21:58
The_Server24-Dec-01 21:58 
GeneralRe: Stuid Question Pin
l a u r e n25-Dec-01 1:33
l a u r e n25-Dec-01 1:33 
GeneralRe: Stuid Question Pin
The_Server25-Dec-01 23:03
The_Server25-Dec-01 23:03 
GeneralRe: Stuid Question Pin
Tim Smith25-Dec-01 2:32
Tim Smith25-Dec-01 2:32 
GeneralRe: Stuid Question Pin
The_Server25-Dec-01 23:07
The_Server25-Dec-01 23:07 
GeneralRe: Stuid Question Pin
The_Server25-Dec-01 23:17
The_Server25-Dec-01 23:17 
GeneralRe: Stuid Question Pin
Fazlul Kabir25-Dec-01 23:26
Fazlul Kabir25-Dec-01 23:26 
GeneralRe: Stuid Question Pin
Ravi Bhavnani25-Dec-01 6:13
professionalRavi Bhavnani25-Dec-01 6:13 
Sagiv wrote:
Is it because I must draw everything under WM_PAINT ???

Yes. Imho, the right approach is to:
  1. Maintain a list of objects drawn by your program. When the user clicks Button1, create a new "MyRectangle" object and add it to your list. Then call Invalidate(). This will instruct Windows to send your window a WM_PAINT message.

  2. In your OnPaint() handler, walk the list of objects and draw each one.
/ravi

"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
GeneralUsing typedef with classes Pin
24-Dec-01 16:20
suss24-Dec-01 16:20 
GeneralRe: Using typedef with classes -- I got it !! Pin
24-Dec-01 18:57
suss24-Dec-01 18:57 
GeneralRe: Using typedef with classes -- I got it !! Pin
Michael Dunn24-Dec-01 20:36
sitebuilderMichael Dunn24-Dec-01 20:36 
GeneralRe: Using typedef with classes -- I got it !! Pin
25-Dec-01 3:45
suss25-Dec-01 3:45 
QuestionHow to use VBScript and ASP in an application? Pin
Fred Ackers24-Dec-01 12:46
Fred Ackers24-Dec-01 12:46 
Answerwww.octogroup.net Pin
Uwe Keim24-Dec-01 12:54
sitebuilderUwe Keim24-Dec-01 12:54 
QuestionHow to redirect paint messages? Pin
Fred Ackers24-Dec-01 12:37
Fred Ackers24-Dec-01 12:37 
AnswerRe: How to redirect paint messages? Pin
Diarrhio25-Dec-01 6:57
Diarrhio25-Dec-01 6:57 
GeneralRe: How to redirect paint messages? Pin
Fred Ackers25-Dec-01 11:05
Fred Ackers25-Dec-01 11:05 
GeneralRe: How to redirect paint messages? Pin
Jim A. Johnson25-Dec-01 12:35
Jim A. Johnson25-Dec-01 12:35 
GeneralRe: How to redirect paint messages? Pin
Diarrhio25-Dec-01 13:49
Diarrhio25-Dec-01 13:49 
GeneralRe: How to redirect paint messages? Pin
Fred Ackers26-Dec-01 22:30
Fred Ackers26-Dec-01 22:30 
GeneralRe: How to redirect paint messages? Pin
Joel Lucsy27-Dec-01 5:41
Joel Lucsy27-Dec-01 5:41 
GeneralRe: How to redirect paint messages? Pin
Diarrhio27-Dec-01 18:58
Diarrhio27-Dec-01 18:58 
AnswerRe: How to redirect paint messages? Pin
567890123426-Dec-01 0:48
567890123426-Dec-01 0:48 
GeneralAuto Disconnect Pin
Brian C Hart24-Dec-01 10:57
professionalBrian C Hart24-Dec-01 10:57 
GeneralRe: Auto Disconnect Pin
Masaaki Onishi25-Dec-01 6:33
Masaaki Onishi25-Dec-01 6:33 

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.