Click here to Skip to main content
       

C / C++ / MFC

 
GeneralRe: Any situation where a program will fail to compile before coming to main in C++.? PinmvpRichard MacCutchan3-May-13 0:54 
AnswerRe: Is there any way a C/C++ program can crash before main()? Pinmemberpasztorpisti3-May-13 4:25 
AnswerRe: Is there any way a C/C++ program can crash before main()? PinmemberMember 100095883-May-13 4:48 
AnswerRe: Is there any way a C/C++ program can crash before main()? [modified] PinmemberAmarnath S3-May-13 5:04 
AnswerRe: Is there any way a C/C++ program can crash before main()? PinmemberVijjuuu.7-May-13 2:33 
QuestionQuerries about DXF file Pinmemberhrishtech2-May-13 19:29 
AnswerRe: Querries about DXF file PinmemberJonathan Davies3-May-13 1:41 
QuestionHow to Load Image from Toolbar BMP resources for MenuItem icons ? Pinmemberyogeshs2-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
 
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 ? PinmemberCoder Block2-May-13 19:31 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pinmemberyogeshs2-May-13 19:45 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? PinmemberCoder Block2-May-13 19:51 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pinmemberyogeshs2-May-13 20:38 
AnswerRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pinmember«_Superman_»2-May-13 19:53 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pinmemberyogeshs2-May-13 20:34 
AnswerRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? PinmemberFlaviu22-May-13 20:19 
GeneralRe: How to Load Image from Toolbar BMP resources for MenuItem icons ? Pinmemberyogeshs2-May-13 20:36 
QuestionResizing dialog doesn't work if display changes PinmemberDonguy19762-May-13 11:16 
AnswerRe: Resizing dialog doesn't work if display changes Pinmember«_Superman_»2-May-13 19:00 
GeneralRe: Resizing dialog doesn't work if display changes PinmemberDonguy19763-May-13 4:13 
GeneralRe: Resizing dialog doesn't work if display changes Pinmember«_Superman_»5-May-13 19:50 
QuestionMFC: DIALOG_WIDE question Pinmemberecony2-May-13 6:52 
GeneralRe: MFC: DIALOG_WIDE question PinmemberDavidCrow2-May-13 8:07 
QuestionStore pointers into CListCtrl [modified] PinmemberFlaviu22-May-13 2:33 
AnswerRe: Store pointers into CListCtrl PinmemberDavidCrow2-May-13 3:06 
AnswerRe: Store pointers into CListCtrl Pinmember«_Superman_»2-May-13 19:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.140916.1 | Last Updated 19 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid