Click here to Skip to main content
15,912,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralControls Pin
Drake Elsari8-Apr-01 19:23
Drake Elsari8-Apr-01 19:23 
GeneralRe: Controls Pin
Christian Graus8-Apr-01 19:36
protectorChristian Graus8-Apr-01 19:36 
GeneralRe: Controls Pin
Erik Funkenbusch8-Apr-01 19:51
Erik Funkenbusch8-Apr-01 19:51 
GeneralDialog box prohibits subsequent MessageBox Pin
KeithW8-Apr-01 17:31
KeithW8-Apr-01 17:31 
GeneralRe: Dialog box prohibits subsequent MessageBox Pin
Christian Graus8-Apr-01 18:48
protectorChristian Graus8-Apr-01 18:48 
GeneralRe: Dialog box prohibits subsequent MessageBox Pin
Masaaki Onishi9-Apr-01 6:53
Masaaki Onishi9-Apr-01 6:53 
GeneralDialog Editor Picture Control Pin
Michael Martin8-Apr-01 17:02
professionalMichael Martin8-Apr-01 17:02 
GeneralRe: Dialog Editor Picture Control Pin
Christian Graus8-Apr-01 18:12
protectorChristian Graus8-Apr-01 18:12 
You can use ::LoadImage to load an image from disk if it's a .bmp or .ico ( which is a bmp with a bit of extra info ).

If you have an image as a resource and are using MFC, you can do this

CBitmap bmp;
bmp.LoadImage(IDB_BITMAP);

a CBitmap will cast to HBITMAP, if not it has a m_hbitmap member variable and a GetSafeHandle() method ( which needs casting ).

You can also set the bitmap from resources in the dialog editor.

Christian

The content of this post is not necessarily the opinion of my yadda yadda yadda.

To understand recursion, we must first understand recursion.
GeneralCComboBox(Ex) & CListBox Question Pin
Julien8-Apr-01 13:43
Julien8-Apr-01 13:43 
GeneralRe: CComboBox(Ex) & CListBox Question Pin
PJ Arends8-Apr-01 15:22
professionalPJ Arends8-Apr-01 15:22 
GeneralWierd WTL compiling question.... Pin
Christian Graus8-Apr-01 13:08
protectorChristian Graus8-Apr-01 13:08 
GeneralRe: Wierd WTL compiling question.... Pin
Michael Dunn8-Apr-01 15:39
sitebuilderMichael Dunn8-Apr-01 15:39 
GeneralMonitoring audio recording level Pin
Anders Molin8-Apr-01 4:52
professionalAnders Molin8-Apr-01 4:52 
GeneralRe: Monitoring audio recording level Pin
Erik Funkenbusch8-Apr-01 19:56
Erik Funkenbusch8-Apr-01 19:56 
GeneralRe: Monitoring audio recording level Pin
Anders Molin8-Apr-01 21:29
professionalAnders Molin8-Apr-01 21:29 
GeneralRead from file question ... Pin
Hadi Rezaee8-Apr-01 1:40
Hadi Rezaee8-Apr-01 1:40 
GeneralRe: Read from file question ... Pin
AlexMarbus8-Apr-01 3:31
AlexMarbus8-Apr-01 3:31 
GeneralRe: Read from file question ... Pin
Hadi Rezaee8-Apr-01 3:48
Hadi Rezaee8-Apr-01 3:48 
GeneralRe: Read from file question ... Pin
AlexMarbus8-Apr-01 6:08
AlexMarbus8-Apr-01 6:08 
GeneralRe: Read from file question ... Pin
Hadi Rezaee8-Apr-01 6:52
Hadi Rezaee8-Apr-01 6:52 
GeneralRe: Read from file question ... Pin
Dharne Atul8-Apr-01 8:33
Dharne Atul8-Apr-01 8:33 
QuestionCListCtrl - Delete Selected Items??? Pin
Ryan Baillargeon7-Apr-01 22:04
Ryan Baillargeon7-Apr-01 22:04 
AnswerRe: CListCtrl - Delete Selected Items??? Pin
AlexMarbus8-Apr-01 3:37
AlexMarbus8-Apr-01 3:37 
GeneralRe: CListCtrl - Still Not Working... Pin
Ryan Baillargeon8-Apr-01 6:24
Ryan Baillargeon8-Apr-01 6:24 
GeneralRe: CListCtrl - Still Not Working... Pin
Michael Dunn8-Apr-01 8:24
sitebuilderMichael Dunn8-Apr-01 8:24 

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.