Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to draw a bitmap on top of button? Pin
Igor Jerosimic26-Feb-07 0:24
Igor Jerosimic26-Feb-07 0:24 
GeneralRe: How to draw a bitmap on top of button? Pin
Naveen26-Feb-07 2:08
Naveen26-Feb-07 2:08 
GeneralRe: How to draw a bitmap on top of button? Pin
Igor Jerosimic26-Feb-07 2:16
Igor Jerosimic26-Feb-07 2:16 
GeneralRe: How to draw a bitmap on top of button? Pin
Naveen26-Feb-07 2:24
Naveen26-Feb-07 2:24 
GeneralRe: How to draw a bitmap on top of button? Pin
Igor Jerosimic26-Feb-07 2:27
Igor Jerosimic26-Feb-07 2:27 
GeneralRe: How to draw a bitmap on top of button? Pin
Igor Jerosimic28-Feb-07 1:41
Igor Jerosimic28-Feb-07 1:41 
GeneralRe: How to draw a bitmap on top of button? Pin
Naveen28-Feb-07 1:50
Naveen28-Feb-07 1:50 
AnswerRe: How to draw a bitmap on top of button? Pin
prasad_som22-Feb-07 2:37
prasad_som22-Feb-07 2:37 
Naveen R wrote:
I never said to create another CPaintDC below the CButton::OnPaint();


Yes, but it is what should be used in OnPaint messages.
CClientDC associated with whole client area of window, as opposed to CPaintDC which is associated to invalidated rect only.
So consider how logical is it to use CClientDC there.

BTW,havn't you come across this line whenever added WM_PAINT message handler throught class wizard ?
// Do not call CButton::OnPaint() for painting messages


AnswerRe: How to draw a bitmap on top of button? Pin
prasad_som21-Feb-07 1:53
prasad_som21-Feb-07 1:53 
QuestionRe: How to draw a bitmap on top of button? Pin
David Crow21-Feb-07 3:23
David Crow21-Feb-07 3:23 
AnswerRe: How to draw a bitmap on top of button? Pin
Hamid_RT21-Feb-07 5:27
Hamid_RT21-Feb-07 5:27 
GeneralRe: How to draw a bitmap on top of button? Pin
ThatsAlok21-Feb-07 6:24
ThatsAlok21-Feb-07 6:24 
AnswerRe: How to draw a bitmap on top of button? Pin
Igor Jerosimic21-Feb-07 23:42
Igor Jerosimic21-Feb-07 23:42 
AnswerRe: How to draw a bitmap on top of button? Pin
Igor Jerosimic26-Feb-07 0:28
Igor Jerosimic26-Feb-07 0:28 
Questionnegative values for char Pin
micutzu21-Feb-07 0:34
micutzu21-Feb-07 0:34 
AnswerRe: negative values for char Pin
James R. Twine21-Feb-07 1:21
James R. Twine21-Feb-07 1:21 
GeneralRe: negative values for char Pin
micutzu21-Feb-07 1:28
micutzu21-Feb-07 1:28 
GeneralRe: negative values for char Pin
Naveen21-Feb-07 2:13
Naveen21-Feb-07 2:13 
GeneralRe: negative values for char Pin
micutzu21-Feb-07 2:32
micutzu21-Feb-07 2:32 
GeneralRe: negative values for char Pin
Naveen21-Feb-07 2:43
Naveen21-Feb-07 2:43 
GeneralRe: negative values for char Pin
micutzu21-Feb-07 3:00
micutzu21-Feb-07 3:00 
GeneralRe: negative values for char Pin
Naveen21-Feb-07 16:14
Naveen21-Feb-07 16:14 
GeneralRe: negative values for char Pin
Nemanja Trifunovic21-Feb-07 4:00
Nemanja Trifunovic21-Feb-07 4:00 
GeneralRe: negative values for char Pin
toxcct21-Feb-07 2:33
toxcct21-Feb-07 2:33 
GeneralRe: negative values for char Pin
Naveen21-Feb-07 2:45
Naveen21-Feb-07 2:45 

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.