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

C / C++ / MFC

 
GeneralRe: Default debugger Pin
Jason Henderson13-Aug-02 16:07
Jason Henderson13-Aug-02 16:07 
General2 simple problem, guys, gotta help me! Pin
BlackSmith13-Aug-02 14:18
BlackSmith13-Aug-02 14:18 
GeneralRe: 2 simple problem, guys, gotta help me! Pin
Ravi Bhavnani13-Aug-02 14:36
professionalRavi Bhavnani13-Aug-02 14:36 
GeneralRe: 2 simple problem, guys, gotta help me! Pin
Roman Fadeyev13-Aug-02 20:14
Roman Fadeyev13-Aug-02 20:14 
Generalmerging STL sets Pin
moredip13-Aug-02 13:32
moredip13-Aug-02 13:32 
GeneralRe: merging STL sets Pin
Christian Graus13-Aug-02 14:42
protectorChristian Graus13-Aug-02 14:42 
GeneralRe: merging STL sets Pin
moredip14-Aug-02 9:18
moredip14-Aug-02 9:18 
GeneralAdd a Bitmap to a Button. Pin
WREY13-Aug-02 13:30
WREY13-Aug-02 13:30 
The standard, (and perhaps, the most common) way seems to be that if you want to create a bitmap button, you'd embed a CMyBitmap class object inside the view or the dialog, and from inside the definition of CMyBitmap you'd use LoadBitmapEx to load the bitmap, followed by using the SetBitmap function from CButton. (At least that's how I have been doing it.)

Then, I discover this book where the author totally seemed to avoid that path, and instead, embedded a CBitmapButton object inside the dialog, called Autoload from inside OnInitDialog to load his bitmap, and that was it. It worked!

However when I tried to emulate his technique, I have no success story to deliver. I didn't work for me.

Does anybody know what the author may have done to make his technique work, but didn't for me?

His name is Keith Bugg, and the book is, "Building Better Interfaces with MFC." His sample was part of Example 1.

Thanks.

William
GeneralRe: Add a Bitmap to a Button. Pin
Chris Losinger13-Aug-02 14:12
professionalChris Losinger13-Aug-02 14:12 
GeneralRe: Add a Bitmap to a Button. Pin
Ravi Bhavnani13-Aug-02 14:38
professionalRavi Bhavnani13-Aug-02 14:38 
GeneralRe: Add a Bitmap to a Button. Pin
WREY14-Aug-02 1:04
WREY14-Aug-02 1:04 
Generalapp fails to load double-clicked file Pin
Jake Palmer13-Aug-02 13:10
Jake Palmer13-Aug-02 13:10 
GeneralRe: app fails to load double-clicked file Pin
jmkhael13-Aug-02 13:48
jmkhael13-Aug-02 13:48 
GeneralRe: app fails to load double-clicked file Pin
Jake Palmer13-Aug-02 14:01
Jake Palmer13-Aug-02 14:01 
GeneralRe: app fails to load double-clicked file Pin
jmkhael13-Aug-02 14:11
jmkhael13-Aug-02 14:11 
GeneralExporting Data Pin
Peter Liddle13-Aug-02 13:06
Peter Liddle13-Aug-02 13:06 
GeneralRe: Exporting Data Pin
Ancient Dragon13-Aug-02 14:39
Ancient Dragon13-Aug-02 14:39 
GeneralRe: Exporting Data Pin
Peter Liddle13-Aug-02 22:32
Peter Liddle13-Aug-02 22:32 
GeneralRe: Exporting Data Pin
Ancient Dragon14-Aug-02 0:26
Ancient Dragon14-Aug-02 0:26 
GeneralDynamic memory allocation - Best Practices. Pin
djrisc13-Aug-02 12:43
djrisc13-Aug-02 12:43 
GeneralRe: Dynamic memory allocation - Best Practices. Pin
Bill Wilson13-Aug-02 13:03
Bill Wilson13-Aug-02 13:03 
GeneralRe: Dynamic memory allocation - Best Practices. Pin
Christian Graus13-Aug-02 13:12
protectorChristian Graus13-Aug-02 13:12 
GeneralRe: Dynamic memory allocation - Best Practices. Pin
Todd Smith13-Aug-02 19:01
Todd Smith13-Aug-02 19:01 
GeneralMS Q167296 Pin
Rainer Mangold13-Aug-02 11:47
Rainer Mangold13-Aug-02 11:47 
GeneralRe: MS Q167296 Pin
Chris Losinger13-Aug-02 11:58
professionalChris Losinger13-Aug-02 11:58 

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.