Bitmap Not Displayed  
Author Message
BonnieT





PostPosted: Wed Oct 19 01:35:43 CDT 2005 Top

MFC >> Bitmap Not Displayed A bitmap that appears in the MFC dialog editor does not display when the
application runs. The property settings and ID are the same in the VS 2003
version and the VS 6 version. The VS 6 version works fine.

It appears the update from VC++ 6 to VC++ 2003 has changed the mapping to
the runtime bitmap file, but why does the bitmap picture appear (as it
should) in the dialog editor, but not in the running version? The bitmap is
labeled as a "system" bitmap, but this is a custom developed bitmap (lots of
colors).

Any clues to why the bitmap will not display and how to fix it?

Thanks!
--
Dave Boyd

Visual Studio148  
 
 
v-garych





PostPosted: Wed Oct 19 01:35:43 CDT 2005 Top

MFC >> Bitmap Not Displayed Hi Dave,

>A bitmap that appears in the MFC dialog editor does not
>display when the application runs. The property settings
>and ID are the same in the VS 2003 version and the VS 6
>version. The VS 6 version works fine.

I am afraid I am not very clear about how do you display a bitmap in a MFC
dialog, I could not repro this problem in my local machine.

I have tested a VC6 MFC dialog application, with a picture control
displaying a custom bitmap(256 color bit) on it. And opened and upgraded it
in VS2003 IDE. Then rebuild and executed the upgraded application, the
bitmap could be displayed well as expected.


Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

 
 
daveboyd





PostPosted: Wed Oct 19 11:45:01 CDT 2005 Top

MFC >> Bitmap Not Displayed Hi Gary,

Thanks for the quick response. Here's some more information -- when I
right-click on the bitmap and attempt to Edit Control I get the following
error message:

Failed to connect.
Link may be broken.

How do I "repair" the link?

--
Dave Boyd


""Gary Chang[MSFT]"" wrote:

> Hi Dave,
>
> >A bitmap that appears in the MFC dialog editor does not
> >display when the application runs. The property settings
> >and ID are the same in the VS 2003 version and the VS 6
> >version. The VS 6 version works fine.
>
> I am afraid I am not very clear about how do you display a bitmap in a MFC
> dialog, I could not repro this problem in my local machine.
>
> I have tested a VC6 MFC dialog application, with a picture control
> displaying a custom bitmap(256 color bit) on it. And opened and upgraded it
> in VS2003 IDE. Then rebuild and executed the upgraded application, the
> bitmap could be displayed well as expected.
>
>
> Thanks!
>
> Best regards,
>
> Gary Chang
> Microsoft Community Support
> --------------------
> Get Secure! ¡§C www.microsoft.com/security
> Register to Access MSDN Managed Newsgroups!
> http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
> &SD=msdn
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
 
 
v-garych





PostPosted: Thu Oct 20 05:40:16 CDT 2005 Top

MFC >> Bitmap Not Displayed Hi Dave,

>when I right-click on the bitmap and attempt to
>edit Control I get the following error message:
>
>Failed to connect.
>Link may be broken.
>
>How do I "repair" the link?

I could not repro your scenario in my local machine, would you please send
us a self-alone project(zipped) for research, you can send it to me
directly(please remove the "online" word of my email address).


Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

 
 
daveboyd





PostPosted: Fri Oct 28 11:09:06 CDT 2005 Top

MFC >> Bitmap Not Displayed Gary,

This is part of a large application that I can't send to you, sorry! The
problem is that the VC++ 6 release used a Microsoft Forms 2.0 Image control.
When the program was moved to VC++ 2003 the control broke and the image
disappeared (or the link was broken). The control properties in VS2003 allow
navigating to the bitmap, but the property for PICTURE in the v6 was bitmap,
in this version is seems to have changed to system.drawing.bitmap. How do I
fix the link? or move to a control that works easily?? How hard can it be to
put a bitmap on a dialog screen --- do I really have to rely on user written
code provided in the public domain to learn how to do this simple task (where
is my VB)?
--
Dave Boyd


""Gary Chang[MSFT]"" wrote:

> Hi Dave,
>
> >when I right-click on the bitmap and attempt to
> >edit Control I get the following error message:
> >
> >Failed to connect.
> >Link may be broken.
> >
> >How do I "repair" the link?
>
> I could not repro your scenario in my local machine, would you please send
> us a self-alone project(zipped) for research, you can send it to me
> directly(please remove the "online" word of my email address).
>
>
> Thanks for your understanding!
>
> Best regards,
>
> Gary Chang
> Microsoft Community Support
> --------------------
> Get Secure! ¡§C www.microsoft.com/security
> Register to Access MSDN Managed Newsgroups!
> http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
> &SD=msdn
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
 
 
david





PostPosted: Mon Oct 31 15:20:58 CST 2005 Top

MFC >> Bitmap Not Displayed Gary,

Upon further investigation the control works in a newly created dialog,
but not in the existing dialogs. Removing and readding the control
doesn't help. Setting the properties of the dialog that doesn't work
to the properties of the new dialog that does work doesn't help. Are
there any known bugs in the MS Forms 2.0 Image control (v11.0.5601.0 --
fm20.dll)? Is there possibly an error in the resource file? Since I
can't reproduce the problem outside my large application, can you
suggest any debugging steps I might be able to take?

Thanks,

Dave

 
 
v-garych





PostPosted: Tue Nov 01 00:17:10 CST 2005 Top

MFC >> Bitmap Not Displayed Hi Dave,

I noticed you also posted this issue to the dotnet.languages.vc group, I
have already replied it in that group. please check it there.


Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.