Click here to Skip to main content
16,006,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Novice Programmer here: Linking Pin
Jay Minor27-Apr-07 13:45
Jay Minor27-Apr-07 13:45 
GeneralRe: Novice Programmer here: Linking Pin
Hamid_RT28-Apr-07 8:33
Hamid_RT28-Apr-07 8:33 
Questionset back ground color for main frame in SDI Pin
gurucplusplus24-Apr-07 7:00
gurucplusplus24-Apr-07 7:00 
AnswerRe: set back ground color for main frame in SDI Pin
Mark Salsbery24-Apr-07 7:47
Mark Salsbery24-Apr-07 7:47 
GeneralRe: set back ground color for main frame in SDI Pin
gurucplusplus24-Apr-07 8:48
gurucplusplus24-Apr-07 8:48 
GeneralRe: set back ground color for main frame in SDI Pin
Mark Salsbery24-Apr-07 8:56
Mark Salsbery24-Apr-07 8:56 
GeneralRe: set back ground color for main frame in SDI Pin
gurucplusplus24-Apr-07 9:09
gurucplusplus24-Apr-07 9:09 
GeneralRe: set back ground color for main frame in SDI Pin
Mark Salsbery24-Apr-07 9:30
Mark Salsbery24-Apr-07 9:30 
As with the background, if you have a view in the frame then you do your drawing there instead of
on the frame window - otherwise it will be "covered" by the view window like when you saw the
frame background window flash.

Typically, you'd do your drawing in response to a WM_PAINT message, after the image has been
drawn. If it's a CView-derived class, overriding OnDraw() may be a more appropriate place,
especially if the base class draws the image in OnDraw().
Either way, this means you need to store the coordinates (or whatever info is necessary) to redraw
everything every time repainting is necessary (when WM_PAINT is received).

How is the image being rendered in your case?

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: set back ground color for main frame in SDI Pin
gurucplusplus24-Apr-07 12:25
gurucplusplus24-Apr-07 12:25 
GeneralRe: set back ground color for main frame in SDI Pin
Mark Salsbery24-Apr-07 12:42
Mark Salsbery24-Apr-07 12:42 
GeneralRe: set back ground color for main frame in SDI Pin
gurucplusplus24-Apr-07 13:25
gurucplusplus24-Apr-07 13:25 
QuestionThe big leap to Vista and Visual Studio 2005 Pin
hcatech24-Apr-07 6:07
hcatech24-Apr-07 6:07 
AnswerRe: The big leap to Vista and Visual Studio 2005 Pin
David Crow24-Apr-07 6:18
David Crow24-Apr-07 6:18 
AnswerRe: The big leap to Vista and Visual Studio 2005 Pin
Michael Dunn24-Apr-07 8:35
sitebuilderMichael Dunn24-Apr-07 8:35 
GeneralRe: The big leap to Vista and Visual Studio 2005 Pin
hcatech25-Apr-07 3:48
hcatech25-Apr-07 3:48 
GeneralRe: The big leap to Vista and Visual Studio 2005 Pin
Michael Dunn25-Apr-07 13:52
sitebuilderMichael Dunn25-Apr-07 13:52 
AnswerRe: The big leap to Vista and Visual Studio 2005 Pin
cp987624-Apr-07 17:51
cp987624-Apr-07 17:51 
QuestionDLL CRuntimeClass Pointers Differ From App [modified] Pin
Peter Saint24-Apr-07 6:04
Peter Saint24-Apr-07 6:04 
AnswerRe: DLL CRuntimeClass Pointers Differ From App Pin
Mark Salsbery24-Apr-07 7:59
Mark Salsbery24-Apr-07 7:59 
AnswerRe: DLL CRuntimeClass Pointers Differ From App [modified] Pin
Peter Saint24-Apr-07 8:32
Peter Saint24-Apr-07 8:32 
GeneralRe: DLL CRuntimeClass Pointers Differ From App Pin
Mark Salsbery24-Apr-07 8:55
Mark Salsbery24-Apr-07 8:55 
Questionplease help me(Networking)?!!! Pin
dSolariuM24-Apr-07 4:42
dSolariuM24-Apr-07 4:42 
QuestionRe: please help me(Networking)?!!! Pin
David Crow24-Apr-07 4:52
David Crow24-Apr-07 4:52 
QuestionAppropriate file buffer size Pin
Dustin Henry24-Apr-07 4:30
Dustin Henry24-Apr-07 4:30 
QuestionRe: Appropriate file buffer size Pin
David Crow24-Apr-07 4:32
David Crow24-Apr-07 4:32 

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.