Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmap 'editing' Pin
David Crow7-Apr-05 4:55
David Crow7-Apr-05 4:55 
GeneralRe: Bitmap 'editing' Pin
mcsherry7-Apr-05 21:48
mcsherry7-Apr-05 21:48 
GeneralPCA algorithm Pin
Rassul Yunussov7-Apr-05 1:37
Rassul Yunussov7-Apr-05 1:37 
GeneralRe: PCA algorithm Pin
jhwurmbach7-Apr-05 3:18
jhwurmbach7-Apr-05 3:18 
Generalmulti-column popup menu Pin
karmafx7-Apr-05 1:16
karmafx7-Apr-05 1:16 
GeneralRe: multi-column popup menu Pin
karmafx7-Apr-05 2:51
karmafx7-Apr-05 2:51 
GeneralHandles Pin
Balaji Krishna7-Apr-05 1:01
Balaji Krishna7-Apr-05 1:01 
GeneralI can't show a CStatic in Dialog!! Pin
thanh-hai.bui7-Apr-05 0:31
thanh-hai.bui7-Apr-05 0:31 
Hello!

I've a problem, i can't show a CStatic in my Dialog!

this is my code:

On OnInitDialog()
<br />
        CBitmap m_bmp;<br />
	BOOL res = m_bmp.LoadBitmap(IDR_BMP_NEW2);<br />
	if (res) MessageBox("Image ok") // it's ok, so problem isn't here<br />
<br />
	CStatic myStatic;<br />
<br />
	myStatic.Create(_T("my static"), <br />
		WS_CHILD|WS_VISIBLE|SS_BITMAP|SS_CENTERIMAGE|WS_BORDER, CRect(10,10,150,50),	this);<br />
	myStatic.SetBitmap(HBITMAP(m_bmp));<br />


when i launch my app, there is nothing on Dialog
plz, help me! thanks

hzocm
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 0:35
toxcct7-Apr-05 0:35 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 0:37
BadJerry7-Apr-05 0:37 
GeneralRe: I can't show a CStatic in Dialog!! Pin
thanh-hai.bui7-Apr-05 1:18
thanh-hai.bui7-Apr-05 1:18 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 1:23
BadJerry7-Apr-05 1:23 
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 1:57
toxcct7-Apr-05 1:57 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 4:18
BadJerry7-Apr-05 4:18 
GeneralRe: I can't show a CStatic in Dialog!! Pin
Cedric Moonen7-Apr-05 4:25
Cedric Moonen7-Apr-05 4:25 
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 5:07
toxcct7-Apr-05 5:07 
GeneralRe: I can't show a CStatic in Dialog!! Pin
BadJerry7-Apr-05 5:13
BadJerry7-Apr-05 5:13 
GeneralRe: I can't show a CStatic in Dialog!! Pin
toxcct7-Apr-05 5:16
toxcct7-Apr-05 5:16 
Generalsmtp Pin
_tasleem6-Apr-05 23:55
_tasleem6-Apr-05 23:55 
GeneralRe: smtp Pin
Steve S7-Apr-05 1:15
Steve S7-Apr-05 1:15 
GeneralRe: smtp Pin
Alexander M.,7-Apr-05 5:00
Alexander M.,7-Apr-05 5:00 
GeneralCreate button Pin
Francis Chau6-Apr-05 23:55
Francis Chau6-Apr-05 23:55 
GeneralRe: Create button Pin
ThatsAlok7-Apr-05 0:15
ThatsAlok7-Apr-05 0:15 
GeneralHelp me... Pin
vtalau6-Apr-05 23:11
vtalau6-Apr-05 23:11 
GeneralRe: Help me... Pin
David Crow7-Apr-05 2:26
David Crow7-Apr-05 2:26 

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.