Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Any situation where a program will fail to compile before coming to main in C++.? Pin
Richard MacCutchan3-May-13 0:54
mveRichard MacCutchan3-May-13 0:54 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pin
pasztorpisti3-May-13 4:25
pasztorpisti3-May-13 4:25 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pin
solookin3-May-13 4:48
professionalsolookin3-May-13 4:48 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pin
Amarnath S3-May-13 5:04
professionalAmarnath S3-May-13 5:04 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pin
Vijjuuu.7-May-13 2:33
Vijjuuu.7-May-13 2:33 
QuestionQuerries about DXF file Pin
hrishtech2-May-13 19:29
hrishtech2-May-13 19:29 
AnswerRe: Querries about DXF file Pin
Jonathan Davies3-May-13 1:41
Jonathan Davies3-May-13 1:41 
QuestionHow to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
002comp2-May-13 19:04
002comp2-May-13 19:04 
Hello Friends

I am drawing Owner Draw Menu Icons.
For that I want to use Toolbar bmp images as Menu Item icons.

I used LoadImage to Find the Icons from Resources Like this

C++
hIcon = (HICON)::LoadImage(::AfxGetResourceHandle(), resName, IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR | LR_SHARED);

And it is working fine. But for this I need to Define All new Icons with same name as MenuItem in resources.
That's, why I want to Load it from Toolbar bmp resources inspite of Icon Resources.
How can I load Image in same manner by name from Toolbar bmp ?


Any Help will be Appreciated.
Regards
Yogesh
AnswerRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
Coder Block2-May-13 19:31
Coder Block2-May-13 19:31 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
002comp2-May-13 19:45
002comp2-May-13 19:45 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
Coder Block2-May-13 19:51
Coder Block2-May-13 19:51 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
002comp2-May-13 20:38
002comp2-May-13 20:38 
AnswerRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
«_Superman_»2-May-13 19:53
professional«_Superman_»2-May-13 19:53 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
002comp2-May-13 20:34
002comp2-May-13 20:34 
AnswerRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
_Flaviu2-May-13 20:19
_Flaviu2-May-13 20:19 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
002comp2-May-13 20:36
002comp2-May-13 20:36 
QuestionResizing dialog doesn't work if display changes Pin
Donguy19762-May-13 11:16
Donguy19762-May-13 11:16 
AnswerRe: Resizing dialog doesn't work if display changes Pin
«_Superman_»2-May-13 19:00
professional«_Superman_»2-May-13 19:00 
GeneralRe: Resizing dialog doesn't work if display changes Pin
Donguy19763-May-13 4:13
Donguy19763-May-13 4:13 
GeneralRe: Resizing dialog doesn't work if display changes Pin
«_Superman_»5-May-13 19:50
professional«_Superman_»5-May-13 19:50 
QuestionMFC: DIALOG_WIDE question Pin
econy2-May-13 6:52
econy2-May-13 6:52 
GeneralRe: MFC: DIALOG_WIDE question Pin
David Crow2-May-13 8:07
David Crow2-May-13 8:07 
QuestionStore pointers into CListCtrl Pin
_Flaviu2-May-13 2:33
_Flaviu2-May-13 2:33 
AnswerRe: Store pointers into CListCtrl Pin
David Crow2-May-13 3:06
David Crow2-May-13 3:06 
AnswerRe: Store pointers into CListCtrl Pin
«_Superman_»2-May-13 19:05
professional«_Superman_»2-May-13 19:05 

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.