Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to extract string from where mouse has pointed to? Pin
Christian Graus21-Mar-02 15:14
protectorChristian Graus21-Mar-02 15:14 
GeneralRe: How to extract string from where mouse has pointed to? Pin
Li-kai Liu (Angus)21-Mar-02 15:38
Li-kai Liu (Angus)21-Mar-02 15:38 
GeneralRe: How to extract string from where mouse has pointed to? Pin
moliate21-Mar-02 16:23
moliate21-Mar-02 16:23 
GeneralRe: How to extract string from where mouse has pointed to? Pin
Li-kai Liu (Angus)21-Mar-02 17:52
Li-kai Liu (Angus)21-Mar-02 17:52 
GeneralUrgent- Need ur assistance Pin
binnu21-Mar-02 13:18
binnu21-Mar-02 13:18 
GeneralRe: Urgent- Need ur assistance Pin
Christian Graus21-Mar-02 13:31
protectorChristian Graus21-Mar-02 13:31 
GeneralRe: Urgent- Need ur assistance Pin
binnu21-Mar-02 13:52
binnu21-Mar-02 13:52 
GeneralRe: Urgent- Need ur assistance Pin
Christian Graus21-Mar-02 14:21
protectorChristian Graus21-Mar-02 14:21 
jas - I need to load up the msdn. It's msdn.microsoft.com for your future reference.

HBITMAP MyBitmap = ::LoadImage(
MyhInst, // Assuming you're not using MFC, you'll need to store your instance handle and put it in here, or try NULL
"c:\mybitmap.bmp", // I presume you have this in a variable already....
IMAGE_BITMAP,
0, // These can be set to the x and y values desired if you wish.
0,
LR_CREATEDIBSECTION | LR_LOADFROMFILE);

this will load the bitmap file from disk into a HBITMAP. Now you can create a DC, select it in, and draw it onto the screen.


Christian

The tragedy of cyberspace - that so much can travel so far, and yet mean so little.

"I'm thinking of getting married for companionship and so I have someone to cook and clean." - Martin Marvinski, 6/3/2002
GeneralSetting a windows parent Pin
David Wengier21-Mar-02 13:11
David Wengier21-Mar-02 13:11 
GeneralRe: Setting a windows parent Pin
Nish Nishant21-Mar-02 14:10
sitebuilderNish Nishant21-Mar-02 14:10 
GeneralRe: Setting a windows parent Pin
David Wengier21-Mar-02 14:14
David Wengier21-Mar-02 14:14 
GeneralRe: Setting a windows parent Pin
Tomasz Sowinski21-Mar-02 23:19
Tomasz Sowinski21-Mar-02 23:19 
GeneralRe: Setting a windows parent Pin
David Wengier22-Mar-02 12:11
David Wengier22-Mar-02 12:11 
GeneralUnderstanding MFC Pin
21-Mar-02 12:55
suss21-Mar-02 12:55 
GeneralRe: Understanding MFC Pin
Christian Graus21-Mar-02 13:36
protectorChristian Graus21-Mar-02 13:36 
GeneralCDO and header files (cdosyserr.h) Pin
albean21-Mar-02 12:40
albean21-Mar-02 12:40 
GeneralSet system time in VC Pin
aldeba21-Mar-02 12:01
aldeba21-Mar-02 12:01 
GeneralRe: Set system time in VC Pin
Joaquín M López Muñoz21-Mar-02 12:12
Joaquín M López Muñoz21-Mar-02 12:12 
GeneralRe: Set system time in VC Pin
aldeba21-Mar-02 12:15
aldeba21-Mar-02 12:15 
GeneralDocuments, Views, and Splitters oh My! Pin
dazinith21-Mar-02 11:29
dazinith21-Mar-02 11:29 
GeneralRe: Documents, Views, and Splitters oh My! Pin
Joaquín M López Muñoz21-Mar-02 12:23
Joaquín M López Muñoz21-Mar-02 12:23 
GeneralRe: Documents, Views, and Splitters oh My! Pin
dazinith22-Mar-02 8:59
dazinith22-Mar-02 8:59 
GeneralSystem image list for CListView Pin
alex.barylski21-Mar-02 10:58
alex.barylski21-Mar-02 10:58 
GeneralRe: System image list for CListView Pin
Prem Kumar21-Mar-02 11:04
Prem Kumar21-Mar-02 11:04 
GeneralRe: System image list for CListView Pin
alex.barylski21-Mar-02 11:20
alex.barylski21-Mar-02 11:20 

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.