Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalchanging CView styles Pin
19-Feb-02 10:45
suss19-Feb-02 10:45 
GeneralRe: changing CView styles Pin
Joaquín M López Muñoz19-Feb-02 10:58
Joaquín M López Muñoz19-Feb-02 10:58 
GeneralRe: changing CView styles Pin
19-Feb-02 11:32
suss19-Feb-02 11:32 
GeneralAn icon recieving a file Pin
Optic19-Feb-02 10:10
Optic19-Feb-02 10:10 
GeneralA bit miffed about the doc/view architecture... Pin
funbag19-Feb-02 10:10
funbag19-Feb-02 10:10 
GeneralRe: A bit miffed about the doc/view architecture... Pin
Michael P Butler19-Feb-02 10:33
Michael P Butler19-Feb-02 10:33 
QuestionLoading a resource bitmap in GDI+ ? Pin
19-Feb-02 9:40
suss19-Feb-02 9:40 
AnswerRe: Loading a resource bitmap in GDI+ ? Pin
Jay Beckert19-Feb-02 10:24
Jay Beckert19-Feb-02 10:24 
Hello Nicolas!
I just had the same question about bitmap and icon resources the other day. Try this, you need to include the MAKEINTRESOURCEW macro:

HICON hIcon = LoadIcon(NULL, MAKEINTRESOURCEW(IDI_APPLICATION));


Straight from the SDK documentation:

Pointer to a null-terminated string that contains the name of the icon resource to be loaded.

^^^^^ That is what confused me. If your loading the icon from file then use the pointer to a string identifying the icon.


Alternatively, this parameter can contain the resource identifier in the low-order word and zero in the high-order word. Use the MAKEINTRESOURCE macro to create this value.

^^^^ This is what you need.

Cheers.
Jay Beckert
GeneralRe: Loading a resource bitmap in GDI+ ? Pin
19-Feb-02 11:59
suss19-Feb-02 11:59 
GeneralRe: Loading a resource bitmap in GDI+ ? Pin
Jay Beckert19-Feb-02 17:02
Jay Beckert19-Feb-02 17:02 
GeneralRe: Loading a resource bitmap in GDI+ ? Pin
20-Feb-02 1:02
suss20-Feb-02 1:02 
GeneralRe: Loading a resource bitmap in GDI+ ? Pin
20-Feb-02 6:15
suss20-Feb-02 6:15 
Questionstring help whats wrong with this code? Pin
Steven Richardson19-Feb-02 8:12
Steven Richardson19-Feb-02 8:12 
AnswerRe: string help whats wrong with this code? Pin
Nish Nishant19-Feb-02 8:24
sitebuilderNish Nishant19-Feb-02 8:24 
GeneralRe: string help whats wrong with this code? Pin
Steven Richardson19-Feb-02 8:28
Steven Richardson19-Feb-02 8:28 
GeneralRe: string help whats wrong with this code? Pin
Nish Nishant19-Feb-02 8:31
sitebuilderNish Nishant19-Feb-02 8:31 
GeneralRe: string help whats wrong with this code? Pin
Steven Richardson19-Feb-02 8:41
Steven Richardson19-Feb-02 8:41 
GeneralRe: string help whats wrong with this code? Pin
Nish Nishant19-Feb-02 8:44
sitebuilderNish Nishant19-Feb-02 8:44 
GeneralRe: string help whats wrong with this code? Pin
Steven Richardson19-Feb-02 8:45
Steven Richardson19-Feb-02 8:45 
GeneralRe: string help whats wrong with this code? Pin
Steven Richardson19-Feb-02 8:57
Steven Richardson19-Feb-02 8:57 
GeneralRe: string help whats wrong with this code? Pin
Nish Nishant19-Feb-02 9:14
sitebuilderNish Nishant19-Feb-02 9:14 
GeneralRe: string help whats wrong with this code? Pin
Steven Richardson19-Feb-02 9:20
Steven Richardson19-Feb-02 9:20 
GeneralRe: string help whats wrong with this code? Pin
Nish Nishant19-Feb-02 9:27
sitebuilderNish Nishant19-Feb-02 9:27 
GeneralRe: string help whats wrong with this code? Pin
Steven Richardson19-Feb-02 9:34
Steven Richardson19-Feb-02 9:34 
GeneralRe: string help whats wrong with this code? Pin
Steven Richardson19-Feb-02 9:36
Steven Richardson19-Feb-02 9:36 

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.