Click here to Skip to main content
12,247,928 members (47,149 online)

C / C++ / MFC

 
GeneralRe: Any situation where a program will fail to compile before coming to main in C++.? Pin
Richard MacCutchan3-May-13 1:54
mvpRichard MacCutchan3-May-13 1:54 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pin
pasztorpisti3-May-13 5:25
memberpasztorpisti3-May-13 5:25 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pin
Member 100095883-May-13 5:48
memberMember 100095883-May-13 5:48 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pin
Amarnath S3-May-13 6:04
memberAmarnath S3-May-13 6:04 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pin
Vijjuuu.7-May-13 3:33
memberVijjuuu.7-May-13 3:33 
QuestionQuerries about DXF file Pin
hrishtech2-May-13 20:29
memberhrishtech2-May-13 20:29 
AnswerRe: Querries about DXF file Pin
Jonathan Davies3-May-13 2:41
memberJonathan Davies3-May-13 2:41 
QuestionHow to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
yogeshs2-May-13 20:04
memberyogeshs2-May-13 20: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

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 20:31
memberCoder Block2-May-13 20:31 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
yogeshs2-May-13 20:45
memberyogeshs2-May-13 20:45 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
Coder Block2-May-13 20:51
memberCoder Block2-May-13 20:51 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
yogeshs2-May-13 21:38
memberyogeshs2-May-13 21:38 
AnswerRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
«_Superman_»2-May-13 20:53
member«_Superman_»2-May-13 20:53 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
yogeshs2-May-13 21:34
memberyogeshs2-May-13 21:34 
AnswerRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
Flaviu22-May-13 21:19
memberFlaviu22-May-13 21:19 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pin
yogeshs2-May-13 21:36
memberyogeshs2-May-13 21:36 
QuestionResizing dialog doesn't work if display changes Pin
Donguy19762-May-13 12:16
memberDonguy19762-May-13 12:16 
AnswerRe: Resizing dialog doesn't work if display changes Pin
«_Superman_»2-May-13 20:00
member«_Superman_»2-May-13 20:00 
GeneralRe: Resizing dialog doesn't work if display changes Pin
Donguy19763-May-13 5:13
memberDonguy19763-May-13 5:13 
GeneralRe: Resizing dialog doesn't work if display changes Pin
«_Superman_»5-May-13 20:50
member«_Superman_»5-May-13 20:50 
QuestionMFC: DIALOG_WIDE question Pin
econy2-May-13 7:52
memberecony2-May-13 7:52 
GeneralRe: MFC: DIALOG_WIDE question Pin
DavidCrow2-May-13 9:07
memberDavidCrow2-May-13 9:07 
QuestionStore pointers into CListCtrl Pin
Flaviu22-May-13 3:33
memberFlaviu22-May-13 3:33 
AnswerRe: Store pointers into CListCtrl Pin
DavidCrow2-May-13 4:06
memberDavidCrow2-May-13 4:06 
AnswerRe: Store pointers into CListCtrl Pin
«_Superman_»2-May-13 20:05
member«_Superman_»2-May-13 20: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.


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 3 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid