Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
abc8765-Jan-04 6:44
abc8765-Jan-04 6:44 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
Chris Meech5-Jan-04 7:36
Chris Meech5-Jan-04 7:36 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
abc8765-Jan-04 7:55
abc8765-Jan-04 7:55 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
Chris Meech5-Jan-04 8:15
Chris Meech5-Jan-04 8:15 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
Nick Hodapp5-Jan-04 7:25
sitebuilderNick Hodapp5-Jan-04 7:25 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
Nick Hodapp5-Jan-04 7:28
sitebuilderNick Hodapp5-Jan-04 7:28 
GeneralRe: VC++ .NET 2002 and 2003 Pro Pin
jdgonko5-Jan-04 7:43
jdgonko5-Jan-04 7:43 
QuestionBitmaps on Static Controls, How to ? Pin
rpadrela5-Jan-04 6:05
rpadrela5-Jan-04 6:05 
// Load Process
HANDLE hBitmap;
hBitmap = ::LoadImage( GetModuleHandle( rvl_null ), pathFileName, IMAGE_BITMAP, 0, 0, LR_DEFAULTSIZE | LR_LOADFROMFILE );

m_pBitmaps[ i ].Attach( hBitmap ); // m_pBitmaps is an array of CBitmap

//////////////////////
CStatic* pImageCtrl = rvl_null;
pImageCtrl = ( CStatic* ) GetDlgItem( IDC_NEWMAP_DIALOG_IMAGE );

pImageCtrl->SetBitmap( HBITMAP( m_pBitmaps[ 0 ] ) );

I'm using this piece of code to place a bitmap inside a static control but it's not working as it should. What i'm doing wrong ?

PS: Bitmaps are loaded from file.

Thanks
AnswerRe: Bitmaps on Static Controls, How to ? Pin
twing5-Jan-04 17:15
twing5-Jan-04 17:15 
Generalprinting question Pin
ns5-Jan-04 5:16
ns5-Jan-04 5:16 
GeneralRe: printing question Pin
David Crow5-Jan-04 7:32
David Crow5-Jan-04 7:32 
GeneralRe: printing question Pin
ns6-Jan-04 2:07
ns6-Jan-04 2:07 
GeneralSearching for a good screen saver tutorial Pin
Cactus Joe015-Jan-04 4:48
sussCactus Joe015-Jan-04 4:48 
GeneralRe: Searching for a good screen saver tutorial Pin
Prakash Nadar5-Jan-04 5:00
Prakash Nadar5-Jan-04 5:00 
GeneralRe: Searching for a good screen saver tutorial Pin
Cactus Joe015-Jan-04 8:28
sussCactus Joe015-Jan-04 8:28 
GeneralHello!Dialog! Pin
skylonely5-Jan-04 2:51
skylonely5-Jan-04 2:51 
GeneralRe: Hello!Dialog! Pin
Iain Clarke, Warrior Programmer5-Jan-04 6:06
Iain Clarke, Warrior Programmer5-Jan-04 6:06 
GeneralRe: Hello!Dialog! Pin
Prakash Nadar5-Jan-04 16:13
Prakash Nadar5-Jan-04 16:13 
GeneralCreating Evaluation copy Pin
Abhi Lahare5-Jan-04 2:00
Abhi Lahare5-Jan-04 2:00 
GeneralRe: Creating Evaluation copy Pin
jhwurmbach5-Jan-04 2:12
jhwurmbach5-Jan-04 2:12 
GeneralRe: Creating Evaluation copy Pin
David Crow5-Jan-04 7:36
David Crow5-Jan-04 7:36 
GeneralRe: Creating Evaluation copy Pin
Abhi Lahare5-Jan-04 17:17
Abhi Lahare5-Jan-04 17:17 
GeneralRe: Creating Evaluation copy Pin
jhwurmbach5-Jan-04 22:13
jhwurmbach5-Jan-04 22:13 
GeneralWhy a pointer has no relavence outside the process Pin
Omar Alvi5-Jan-04 1:43
Omar Alvi5-Jan-04 1:43 
GeneralRe: Why a pointer has no relavence outside the process Pin
Duncan Edwards Jones5-Jan-04 1:55
professionalDuncan Edwards Jones5-Jan-04 1:55 

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.