Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Release OK,Debug Error! Pin
Mark Salsbery20-Jun-07 8:55
Mark Salsbery20-Jun-07 8:55 
GeneralRe: Release OK,Debug Error! Pin
kingliub20-Jun-07 20:28
kingliub20-Jun-07 20:28 
AnswerRe: Release OK,Debug Error! Pin
shivditya28-Jun-07 3:44
shivditya28-Jun-07 3:44 
QuestionMENU xp theme Pin
shiraztk20-Jun-07 5:31
shiraztk20-Jun-07 5:31 
QuestionIs it possible to draw on dialog Pin
shivditya20-Jun-07 5:10
shivditya20-Jun-07 5:10 
AnswerRe: Is it possible to draw on dialog Pin
led mike20-Jun-07 5:12
led mike20-Jun-07 5:12 
GeneralRe: Is it possible to draw on dialog Pin
shivditya20-Jun-07 5:16
shivditya20-Jun-07 5:16 
AnswerRe: Is it possible to draw on dialog Pin
Mark Salsbery20-Jun-07 5:19
Mark Salsbery20-Jun-07 5:19 
shivditya wrote:
I am not getting device context
of dialog window properly


You can draw on the dialog just like any other window.

GetDC() gets a DC to the client area of the window

GetWindowDC() gets a DC to the entire window

If you draw in response to WM_PAINT, BeginPaint()/EndPaint() can be used to acquuire a DC
or you can use the above APIs and handle the invalid region yourself.

If you draw in response to WM_ERASEBKGND, a DC is provided.

There's no threadsafe GDI - all drawing must be synchronized (and flushed) if you're using
multiple threads for drawing.

shivditya wrote:
and it crashes at ::GetWindowRect Of groupbox


Crashes how and why?

Mark


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

GeneralRe: Is it possible to draw on dialog Pin
shivditya20-Jun-07 5:25
shivditya20-Jun-07 5:25 
QuestionRe: Is it possible to draw on dialog Pin
Mark Salsbery20-Jun-07 5:29
Mark Salsbery20-Jun-07 5:29 
AnswerRe: Is it possible to draw on dialog Pin
shivditya20-Jun-07 5:37
shivditya20-Jun-07 5:37 
GeneralRe: Is it possible to draw on dialog Pin
Mark Salsbery20-Jun-07 5:45
Mark Salsbery20-Jun-07 5:45 
GeneralRe: Is it possible to draw on dialog Pin
led mike20-Jun-07 5:38
led mike20-Jun-07 5:38 
GeneralRe: Is it possible to draw on dialog Pin
Mark Salsbery20-Jun-07 5:44
Mark Salsbery20-Jun-07 5:44 
JokeRe: Is it possible to draw on dialog Pin
shivditya20-Jun-07 5:45
shivditya20-Jun-07 5:45 
QuestionRe: Is it possible to draw on dialog Pin
shivditya20-Jun-07 5:51
shivditya20-Jun-07 5:51 
AnswerRe: Is it possible to draw on dialog Pin
led mike20-Jun-07 5:53
led mike20-Jun-07 5:53 
GeneralRe: Is it possible to draw on dialog Pin
shivditya20-Jun-07 5:56
shivditya20-Jun-07 5:56 
GeneralRe: Is it possible to draw on dialog Pin
led mike20-Jun-07 6:13
led mike20-Jun-07 6:13 
GeneralRe: Is it possible to draw on dialog Pin
shivditya20-Jun-07 6:22
shivditya20-Jun-07 6:22 
GeneralRe: Is it possible to draw on dialog Pin
led mike20-Jun-07 6:35
led mike20-Jun-07 6:35 
GeneralRe: Is it possible to draw on dialog Pin
Mark Salsbery20-Jun-07 7:18
Mark Salsbery20-Jun-07 7:18 
GeneralThank you very much Pin
shivditya22-Jun-07 7:57
shivditya22-Jun-07 7:57 
QuestionA beginer's qustion Pin
Xiaoming Qian20-Jun-07 3:10
Xiaoming Qian20-Jun-07 3:10 
AnswerRe: A beginer's qustion Pin
xyecloudy20-Jun-07 3:16
xyecloudy20-Jun-07 3:16 

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.