Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting coordinates between two points(CPoint) Pin
1-Jun-01 7:41
suss1-Jun-01 7:41 
GeneralRe: Getting coordinates between two points(CPoint) Pin
1-Jun-01 9:46
suss1-Jun-01 9:46 
GeneralRe: Getting coordinates between two points(CPoint) Pin
1-Jun-01 18:38
suss1-Jun-01 18:38 
GeneralMFC & Thread Pin
Muslim1-Jun-01 6:49
Muslim1-Jun-01 6:49 
GeneralRe: MFC & Thread Pin
1-Jun-01 13:23
suss1-Jun-01 13:23 
GeneralGetting a blank document by clicking OnNewDocument Pin
mr20031-Jun-01 6:45
mr20031-Jun-01 6:45 
GeneralRe: Getting a blank document by clicking OnNewDocument Pin
2-Jun-01 5:11
suss2-Jun-01 5:11 
GeneralLoad CBitmap with LoadBitmap(); Pin
Paul Goodyear1-Jun-01 6:12
Paul Goodyear1-Jun-01 6:12 
I am grabbing some Bitmaps from an external source and need to and them to the current module to build a menu.

I can add perfectly okay if the Bitmap / Icon in addedd to the current project using LoadBitmap(IDB_MYBITMAP);

but I have a CBitmap object and can't get it to display.

The Bitmap that I am recieving from the external source is a HBITMAP, example:

HBITMAP bm = res2.LoadResourceBitmap(....); /this returns a HBITMAP


The code below is how I set my Menu Bitmaps

SetIcon(1, IDB_EXIT); // the first parameter being the Menu Id Command.
SetIcon(35789, IDB_ABOUT); // the second being the ResourceID for the Icon/Bitmap

Whats the easiest, or should I say, what is any way of being about to add this loaded Bitmap e.i.

SetIcon(ResourceID, CBitmap);


regards,

pgudge
Question"Printing" to a bitmap? - How? Pin
Jim Howard1-Jun-01 6:10
Jim Howard1-Jun-01 6:10 
AnswerRe: Pin
Tomasz Sowinski1-Jun-01 7:54
Tomasz Sowinski1-Jun-01 7:54 
Generaluse a C function from a C++ program Pin
hearties1-Jun-01 5:55
hearties1-Jun-01 5:55 
GeneralRe: use a C function from a C++ program Pin
Stephen Kellett1-Jun-01 6:24
Stephen Kellett1-Jun-01 6:24 
GeneralRe: use a C function from a C++ program Pin
Jim Howard1-Jun-01 6:28
Jim Howard1-Jun-01 6:28 
GeneralCatching ESCape key in a CDialog window Pin
1-Jun-01 4:58
suss1-Jun-01 4:58 
GeneralRe: Catching ESCape key in a CDialog window Pin
Tim Deveaux1-Jun-01 5:38
Tim Deveaux1-Jun-01 5:38 
GeneralCComboBox problem Pin
David Burrows1-Jun-01 4:55
David Burrows1-Jun-01 4:55 
GeneralRe: CComboBox problem Pin
Tomasz Sowinski1-Jun-01 7:42
Tomasz Sowinski1-Jun-01 7:42 
GeneralPlease help : problem with distributing ActifveX control Pin
Bartek1-Jun-01 4:55
Bartek1-Jun-01 4:55 
General#pramga startup equivilent Pin
Steve Thresher1-Jun-01 4:41
Steve Thresher1-Jun-01 4:41 
GeneralRe: #pramga startup equivilent Pin
Tim Deveaux1-Jun-01 5:30
Tim Deveaux1-Jun-01 5:30 
GeneralRe: #pramga startup equivilent Pin
Tomasz Sowinski1-Jun-01 7:36
Tomasz Sowinski1-Jun-01 7:36 
GeneralRe: #pramga startup equivilent Pin
Steve Thresher2-Jun-01 1:39
Steve Thresher2-Jun-01 1:39 
Generallinking error: library conflict Pin
hearties1-Jun-01 3:29
hearties1-Jun-01 3:29 
GeneralRe: linking error: library conflict Pin
Dave Carkeet1-Jun-01 4:32
Dave Carkeet1-Jun-01 4:32 
GeneralMsComm example ... Pin
Hadi Rezaee1-Jun-01 1:09
Hadi Rezaee1-Jun-01 1:09 

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.