Click here to Skip to main content
16,004,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: showing the preview of an image Pin
vijay_aroli15-Feb-07 3:26
vijay_aroli15-Feb-07 3:26 
GeneralRe: showing the preview of an image Pin
Hamid_RT15-Feb-07 3:34
Hamid_RT15-Feb-07 3:34 
GeneralRe: showing the preview of an image Pin
David Crow15-Feb-07 3:43
David Crow15-Feb-07 3:43 
GeneralRe: showing the preview of an image Pin
Hamid_RT15-Feb-07 3:08
Hamid_RT15-Feb-07 3:08 
GeneralRe: showing the preview of an image Pin
vijay_aroli15-Feb-07 3:19
vijay_aroli15-Feb-07 3:19 
GeneralRe: showing the preview of an image Pin
Hamid_RT15-Feb-07 3:37
Hamid_RT15-Feb-07 3:37 
GeneralRe: showing the preview of an image Pin
Hamid_RT15-Feb-07 18:16
Hamid_RT15-Feb-07 18:16 
QuestionRe: showing the preview of an image Pin
vijay_aroli15-Feb-07 20:22
vijay_aroli15-Feb-07 20:22 
still cant get it work. Frown | :( below is the sample code snippet that isnt working for me.

 <br />
CStatic m_ImagstBox[5];<br />
<br />
m_ImagstBox[i].Create(_T("BMP"),WS_CHILD|WS_VISIBLE|SS_ICON|SS_CENTERIMAGE|SS_SUNKEN,CRect(l,50,r,100), this,1001+i); <br />
<br />
m_ImagstBox[i].SetIcon(::LoadIcon(NULL,MAKEINTRESOURCE(IDI_BMP)));<br />


in the above code, IDI_BMP is the id of the icon that i want to display. but i dont know why it is not working. if i specify something like IDI_INFORMATION, then it displays the information icon in the static control.

i even tried the SetBitnap function, to display a bitmap instead of an icon. but could not get it work. below is the sample code that i had written.

 <br />
m_st[i].SetBitmap(::LoadBitmap(NULL,MAKEINTRESOURCE(IDB_BITMAP_HOME)));<br />


i am new to MFC and i am sure that i am doing a mistake some where in the code. can u please point out where i am doing the mistake?


vijay.

AnswerRe: showing the preview of an image Pin
Hamid_RT15-Feb-07 21:28
Hamid_RT15-Feb-07 21:28 
GeneralRe: showing the preview of an image Pin
vijay_aroli15-Feb-07 22:31
vijay_aroli15-Feb-07 22:31 
GeneralRe: showing the preview of an image Pin
Hamid_RT16-Feb-07 0:15
Hamid_RT16-Feb-07 0:15 
QuestionSocket can't bind Pin
Maddack15-Feb-07 0:57
Maddack15-Feb-07 0:57 
QuestionRe: Socket can't bind Pin
prasad_som15-Feb-07 1:01
prasad_som15-Feb-07 1:01 
AnswerRe: Socket can't bind [modified] Pin
Maddack15-Feb-07 2:57
Maddack15-Feb-07 2:57 
GeneralRe: Socket can't bind Pin
Mark Salsbery15-Feb-07 6:48
Mark Salsbery15-Feb-07 6:48 
QuestionSetFocus... Pin
Joan M15-Feb-07 0:49
professionalJoan M15-Feb-07 0:49 
AnswerRe: SetFocus... Pin
Michael Dunn15-Feb-07 20:58
sitebuilderMichael Dunn15-Feb-07 20:58 
GeneralRe: SetFocus... Pin
Joan M15-Feb-07 21:23
professionalJoan M15-Feb-07 21:23 
Questionhow to get physical address of a file after loading it to memory to use for DMA tarnsfer thro NIC Pin
arun kumar spk15-Feb-07 0:10
arun kumar spk15-Feb-07 0:10 
AnswerRe: how to get physical address of a file after loading it to memory to use for DMA tarnsfer thro NIC Pin
toxcct15-Feb-07 0:11
toxcct15-Feb-07 0:11 
GeneralRe: how to get physical address of a file after loading it to memory to use for DMA tarnsfer thro NIC Pin
arun kumar spk15-Feb-07 0:17
arun kumar spk15-Feb-07 0:17 
AnswerRe: how to get physical address of a file after loading it to memory to use for DMA tarnsfer thro NIC Pin
Michael Dunn15-Feb-07 20:59
sitebuilderMichael Dunn15-Feb-07 20:59 
QuestionCalling GlobalLock inside an DLL has problem? Pin
Stan the man14-Feb-07 23:56
Stan the man14-Feb-07 23:56 
QuestionRe: Calling GlobalLock inside an DLL has problem? Pin
prasad_som15-Feb-07 0:59
prasad_som15-Feb-07 0:59 
QuestionPictute in Visual C++ Pin
gigel00714-Feb-07 23:55
gigel00714-Feb-07 23: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.