Click here to Skip to main content
15,912,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MCI Adjust Volume Problem Pin
Blake Miller9-Nov-05 4:37
Blake Miller9-Nov-05 4:37 
QuestionStrange unicode rendering problem Pin
Luke Murray8-Nov-05 22:41
Luke Murray8-Nov-05 22:41 
AnswerRe: Strange unicode rendering problem Pin
Johann Gerell9-Nov-05 0:27
Johann Gerell9-Nov-05 0:27 
AnswerRe: Strange unicode rendering problem Pin
James R. Twine9-Nov-05 4:42
James R. Twine9-Nov-05 4:42 
GeneralRe: Strange unicode rendering problem Pin
Luke Murray9-Nov-05 11:53
Luke Murray9-Nov-05 11:53 
GeneralRe: Strange unicode rendering problem Pin
Johann Gerell9-Nov-05 21:01
Johann Gerell9-Nov-05 21:01 
GeneralRe: Strange unicode rendering problem Pin
James R. Twine10-Nov-05 8:05
James R. Twine10-Nov-05 8:05 
QuestionDisplay bitmap in toolbar with CStatic Pin
Mircea Grelus8-Nov-05 22:33
Mircea Grelus8-Nov-05 22:33 
I have an Intenet Explorer toolbar and I want to display a bitmap on it. I used the button separator to make room for the control in the toolbar and I can display text in the CStatic, but when I try to display an image the whole CStatic is painted with a single color. I think it is the first pixel color of the bmp.

I use the following code:
//in the header file:
<br />
CStatic anonTitle;<br />

//in the cpp file
<br />
anonTitle.Create("",WS_CHILD | WS_VISIBLE | SS_BITMAP | SS_CENTERIMAGE, rcTitle,this));<br />
<br />
CBitmap anonPic;<br />
anonPic.LoadBitmap(IDB_BITMAP3);<br />
anonTitle.SetBitmap((HBITMAP)anonPic.m_hObject);<br />
anonPic.Detach();<br />

If I use the code from a MFC application it works. But in the toolbar the whole static is painted with only one color.

I have also tried with :
<br />
anonTitle.Create("",WS_CHILD | WS_VISIBLE | SS_BITMAP | SS_CENTERIMAGE, rcTitle,this));<br />
anonTitle.SetBitmap( ::LoadBitmap(AfxGetResourceHandle(), MAKEINTRESOURCE(IDB_BITMAP3)));<br />

and
<br />
CString str;<br />
str.Format(_T("#%d"), IDB_BITMAP3); <br />
anonTitle.Create(str,WS_CHILD | WS_VISIBLE | SS_BITMAP | SS_CENTERIMAGE, rcTitle,this));<br />

and still same result.

Desperate help needed.
Best regards,
Mircea


Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
AnswerRe: Display bitmap in toolbar with CStatic Pin
Mircea Grelus9-Nov-05 3:00
Mircea Grelus9-Nov-05 3:00 
QuestionDynamic double dimension Pin
Arrun8-Nov-05 22:01
Arrun8-Nov-05 22:01 
AnswerRe: Dynamic double dimension Pin
kakan8-Nov-05 22:23
professionalkakan8-Nov-05 22:23 
AnswerRe: Dynamic double dimension Pin
Cedric Moonen8-Nov-05 22:32
Cedric Moonen8-Nov-05 22:32 
QuestionRe: Dynamic double dimension Pin
Arrun8-Nov-05 23:06
Arrun8-Nov-05 23:06 
AnswerRe: Dynamic double dimension Pin
kakan8-Nov-05 23:11
professionalkakan8-Nov-05 23:11 
QuestionRe: Dynamic double dimension Pin
Arrun8-Nov-05 23:40
Arrun8-Nov-05 23:40 
AnswerRe: Dynamic double dimension Pin
kakan9-Nov-05 0:07
professionalkakan9-Nov-05 0:07 
QuestionRe: Dynamic double dimension Pin
Arrun9-Nov-05 0:27
Arrun9-Nov-05 0:27 
AnswerRe: Dynamic double dimension Pin
kakan9-Nov-05 0:32
professionalkakan9-Nov-05 0:32 
AnswerRe: Dynamic double dimension Pin
kakan9-Nov-05 2:13
professionalkakan9-Nov-05 2:13 
AnswerRe: Dynamic double dimension Pin
David Crow9-Nov-05 3:22
David Crow9-Nov-05 3:22 
Question(Urgent) Problem in inserting line numbers in CRichEditView application Pin
sandakith8-Nov-05 21:41
sandakith8-Nov-05 21:41 
AnswerRe: (Urgent) Problem in inserting line numbers in CRichEditView application Pin
James R. Twine9-Nov-05 4:50
James R. Twine9-Nov-05 4:50 
GeneralRe: (Urgent) Problem in inserting line numbers in CRichEditView application Pin
sandakith9-Nov-05 16:12
sandakith9-Nov-05 16:12 
GeneralRe: (Urgent) Problem in inserting line numbers in CRichEditView application Pin
James R. Twine9-Nov-05 16:43
James R. Twine9-Nov-05 16:43 
QuestionProtocol and web-site Pin
includeh108-Nov-05 19:32
includeh108-Nov-05 19:32 

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.