Click here to Skip to main content
15,891,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Aqiruse wrote:
Then when this window needs updating, I will call Render(...,...) and pass in the required parameters.

Why don't you make one of the required parameters for your Render(...,...) method be the HWND to the static box(or CWnd* if you are using MFC), or a memory device context? Maybe even a pointer to a bitmap which you have preacllocated. In your static box's WM_PAINT handler, just call the dll's Render function. Done.
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 
GeneralString Library & Appending Integer :: C++ Pin
valikac24-Dec-01 8:37
valikac24-Dec-01 8:37 
GeneralRe: String Library & Appending Integer :: C++ Pin
Michael Dunn24-Dec-01 13:58
sitebuilderMichael Dunn24-Dec-01 13:58 
GeneralRe: String Library & Appending Integer :: C++ Pin
valikac24-Dec-01 14:38
valikac24-Dec-01 14:38 
GeneralProblems with CString and fscanf Pin
José Luis Sogorb24-Dec-01 7:47
José Luis Sogorb24-Dec-01 7:47 
GeneralRe: Problems with CString and fscanf Pin
Michael Dunn24-Dec-01 14:00
sitebuilderMichael Dunn24-Dec-01 14:00 
GeneralRe: Problems with CString and fscanf Pin
José Luis Sogorb25-Dec-01 5:51
José Luis Sogorb25-Dec-01 5:51 
GeneralRe: Problems with CString and fscanf Pin
Michael Dunn25-Dec-01 6:05
sitebuilderMichael Dunn25-Dec-01 6:05 
GeneralLPT functions !!! Pin
Hadi Rezaee24-Dec-01 7:44
Hadi Rezaee24-Dec-01 7:44 
GeneralControl scrollbars in an owner draw ListView Pin
24-Dec-01 5:48
suss24-Dec-01 5:48 
GeneralRe: Control scrollbars in an owner draw ListView Pin
AnonymousBabe@usa.net24-Dec-01 15:31
AnonymousBabe@usa.net24-Dec-01 15:31 
GeneralLinux and visual c++ Pin
Jon Newman24-Dec-01 1:38
Jon Newman24-Dec-01 1:38 
GeneralRe: Linux and visual c++ Pin
Erik Funkenbusch25-Dec-01 21:07
Erik Funkenbusch25-Dec-01 21:07 
GeneralPb with updating my desktop Pin
23-Dec-01 22:23
suss23-Dec-01 22:23 
GeneralRe: Pb with updating my desktop Pin
Ravi Bhavnani25-Dec-01 6:19
professionalRavi Bhavnani25-Dec-01 6:19 

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.