Click here to Skip to main content
15,889,116 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHWND typecast ? Pin
Thomas Andersen18-Mar-02 21:00
Thomas Andersen18-Mar-02 21:00 
AnswerRe: HWND typecast ? Pin
alex.barylski18-Mar-02 21:16
alex.barylski18-Mar-02 21:16 
GeneralRe: HWND typecast ? Pin
Thomas Andersen18-Mar-02 21:41
Thomas Andersen18-Mar-02 21:41 
GeneralRe: HWND typecast ? Pin
alex.barylski18-Mar-02 22:00
alex.barylski18-Mar-02 22:00 
GeneralRe: HWND typecast ? Pin
Thomas Andersen18-Mar-02 22:15
Thomas Andersen18-Mar-02 22:15 
GeneralRe: HWND typecast ? Pin
alex.barylski19-Mar-02 10:01
alex.barylski19-Mar-02 10:01 
GeneralRe: HWND typecast ? Pin
Thomas Andersen20-Mar-02 3:41
Thomas Andersen20-Mar-02 3:41 
GeneralCBitmapButton & LoadImage (help) Pin
kvgraphiti18-Mar-02 20:49
kvgraphiti18-Mar-02 20:49 
I'm trying to set up an application that uses MFC's CBitmapButton. I've managed to get them to work provided that the bitmaps are already present within the resources available to the application. What I would like to do is give the users the oppurtunity to customize the look of the app by allowing them to change the images that the CBitmapButtons use to one of their own images and have the change done at runtime. I've managed to load a bitmap from a file using the LoadImage() function, which returns a handle that can be casted into a HBITMAP. What I'm stuck on is how to take that HBITMAP and tie it into the CBitmapButton, . The CBitmapButton::LoadBitmaps member function takes only two types of paramaters a "LPCTSTR lpszBitmapResource" or a "UINT nIDBitmapResource". Is there a way to cast an HBITMAP or a CBitmap into a datatype that the CBitmapButton::LoadBitmaps function will take?

Thanks for you help.
GeneralRe: CBitmapButton & LoadImage (help) Pin
alex.barylski18-Mar-02 21:20
alex.barylski18-Mar-02 21:20 
GeneralRe: CBitmapButton & LoadImage (help) Pin
kvgraphiti19-Mar-02 6:34
kvgraphiti19-Mar-02 6:34 
Generalnoob advice Pin
18-Mar-02 20:05
suss18-Mar-02 20:05 
GeneralRe: noob advice Pin
alex.barylski18-Mar-02 21:24
alex.barylski18-Mar-02 21:24 
GeneralRe: noob advice Pin
Todd Smith19-Mar-02 7:09
Todd Smith19-Mar-02 7:09 
GeneralRe: noob advice Pin
Michael P Butler18-Mar-02 22:05
Michael P Butler18-Mar-02 22:05 
Generalnetwork speed Pin
18-Mar-02 19:38
suss18-Mar-02 19:38 
GeneralCommon linker errors LNK:2001/1120 Pin
Coremn18-Mar-02 19:32
Coremn18-Mar-02 19:32 
GeneralRe: Common linker errors LNK:2001/1120 Pin
Paul M Watt18-Mar-02 19:56
mentorPaul M Watt18-Mar-02 19:56 
GeneralDisabled edit control with colored text Pin
Jack Handy18-Mar-02 18:46
Jack Handy18-Mar-02 18:46 
GeneralRe: Disabled edit control with colored text Pin
Paul M Watt18-Mar-02 19:53
mentorPaul M Watt18-Mar-02 19:53 
GeneralRe: Disabled edit control with colored text Pin
Jack Handy18-Mar-02 20:03
Jack Handy18-Mar-02 20:03 
GeneralRe: Disabled edit control with colored text Pin
Jack Handy18-Mar-02 22:41
Jack Handy18-Mar-02 22:41 
GeneralRe: Disabled edit control with colored text Pin
Tomasz Sowinski18-Mar-02 23:29
Tomasz Sowinski18-Mar-02 23:29 
GeneralCancelling ESC in dialogs Pin
alex.barylski18-Mar-02 17:36
alex.barylski18-Mar-02 17:36 
GeneralRe: Cancelling ESC in dialogs Pin
Paul M Watt18-Mar-02 17:45
mentorPaul M Watt18-Mar-02 17:45 
GeneralRe: Cancelling ESC in dialogs Pin
alex.barylski18-Mar-02 18:21
alex.barylski18-Mar-02 18:21 

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.