Click here to Skip to main content
15,926,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hdc in shared mem Pin
Mark Salsbery26-Sep-07 17:02
Mark Salsbery26-Sep-07 17:02 
GeneralRe: hdc in shared mem Pin
Force Code26-Sep-07 17:23
Force Code26-Sep-07 17:23 
GeneralRe: hdc in shared mem Pin
Waldermort26-Sep-07 18:50
Waldermort26-Sep-07 18:50 
GeneralRe: hdc in shared mem Pin
Mark Salsbery27-Sep-07 5:09
Mark Salsbery27-Sep-07 5:09 
QuestionCStatic Image Painting problem Pin
shivrajbhosale26-Sep-07 7:14
shivrajbhosale26-Sep-07 7:14 
AnswerRe: CStatic Image Painting problem Pin
Mark Salsbery26-Sep-07 7:55
Mark Salsbery26-Sep-07 7:55 
GeneralRe: CStatic Image Painting problem Pin
shivrajbhosale27-Sep-07 7:27
shivrajbhosale27-Sep-07 7:27 
GeneralRe: CStatic Image Painting problem Pin
Mark Salsbery27-Sep-07 7:39
Mark Salsbery27-Sep-07 7:39 
That was my point.  The static control, depending on it's style, may only draw a frame.
It may not draw anything at all.

As suggested on another post here, you need to invalidate the appropriate window.
Yes, flicker is an issue - you should only invalidate the areas you want "erased",
not the entire dialog.

Static controls were not meant for imaging.  If you want this behavior then you need to
make the control owner-drawn and implement this yourself.  Better yet, implement your
own control class.

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

AnswerRe: CStatic Image Painting problem Pin
Hamid_RT26-Sep-07 18:55
Hamid_RT26-Sep-07 18:55 
GeneralRe: CStatic Image Painting problem Pin
shivrajbhosale27-Sep-07 7:29
shivrajbhosale27-Sep-07 7:29 
AnswerRe: CStatic Image Painting problem Pin
zakkas248327-Sep-07 0:20
zakkas248327-Sep-07 0:20 
GeneralRe: CStatic Image Painting problem Pin
shivrajbhosale27-Sep-07 7:24
shivrajbhosale27-Sep-07 7:24 
GeneralRe: CStatic Image Painting problem Pin
Shog927-Sep-07 8:10
sitebuilderShog927-Sep-07 8:10 
QuestionTab Control -- dialog resource question Pin
Izk26-Sep-07 7:01
Izk26-Sep-07 7:01 
AnswerRe: Tab Control -- dialog resource question Pin
Maximilien26-Sep-07 7:13
Maximilien26-Sep-07 7:13 
GeneralRe: Tab Control -- dialog resource question Pin
Izk26-Sep-07 9:09
Izk26-Sep-07 9:09 
GeneralRe: Tab Control -- dialog resource question -- Update solution Pin
Izk27-Sep-07 8:38
Izk27-Sep-07 8:38 
GeneralRe: Tab Control -- dialog resource question -- Updated further Pin
Izk27-Sep-07 10:59
Izk27-Sep-07 10:59 
QuestionGood C site for C++ programmer Pin
Mark J. Miller26-Sep-07 5:48
Mark J. Miller26-Sep-07 5:48 
AnswerRe: Good C site for C++ programmer Pin
Jeremy Falcon26-Sep-07 5:57
professionalJeremy Falcon26-Sep-07 5:57 
GeneralRe: Good C site for C++ programmer Pin
Mark J. Miller26-Sep-07 6:19
Mark J. Miller26-Sep-07 6:19 
GeneralRe: Good C site for C++ programmer Pin
Matthew Faithfull26-Sep-07 6:32
Matthew Faithfull26-Sep-07 6:32 
GeneralRe: Good C site for C++ programmer Pin
Jeremy Falcon26-Sep-07 7:32
professionalJeremy Falcon26-Sep-07 7:32 
GeneralRe: Good C site for C++ programmer Pin
John R. Shaw26-Sep-07 22:10
John R. Shaw26-Sep-07 22:10 
QuestionRe: Good C site for C++ programmer Pin
David Crow26-Sep-07 6:04
David Crow26-Sep-07 6:04 

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.