Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ VC++
Hi guys,
I developed one MFC/GUI based application in visual studio 2005(c++) . I need to add one logo or image to my application.Pls let me know some tutorial or site to check for this ....pls Help me it is some what urgent ..Thanks in advance'
Posted 19-Jun-12 3:58am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

What we used to do for a MDI application to draw our company logo on the background of the main frame background, was to create a simple CWnd derived class and override the OnEraseBkgnd(CDC* pDC) method to draw our stuff.
 
The way we link that class to the current main frame class :
 
class CMainFrame : public CMDIFrameWndEx
{
///  ...
  CMDIClient m_MDIClient; // CMDIClient is there to draw on the Application background.
/// ...
}
 
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
// ... lot of code...

	// Install the view of this main frame.
	VERIFY( m_MDIClient.mbSubclassWindow(this) );
 
// ... lot of code...
}
 
As I wrote, the drawing is done in the CMDIClient::OnEraseBkgnd() method.
 
If you are doing a dialog based application, you should be able to adapt (or get inspiration) from the above.
 

THis should get you started.
 
Good luck.
  Permalink  
Comments
Sandeep Mewara at 20-Jun-12 1:44am
   
5!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Where do you want to add your logo ?
 
As a splash screen ? in the about box ? as icons in the title bar ? somewhere else
?
  Permalink  
Comments
Member 9102753 at 19-Jun-12 10:31am
   
Just i need to add my Company logo on the top of my application .some thing like icon
nv3 at 19-Jun-12 10:48am
   
No need to downvote the friendly person who is trying to help you.
Maximilien at 19-Jun-12 10:49am
   
What is the "top" of your application? the title bar ?
 
Have a look at the application resources, you can change a lot of things there (application icons, bitmaps, ... )
 
Are you talking about a splash screen? or display the logo as part of the background of the application ?
 
Please, look up the definition of a "splash screen", is that what you want ?
Member 9102753 at 19-Jun-12 13:43pm
   
just to make that logo in the background of the GUI application ....not like splash screen.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Hi,
 
If your requirement is to change the GUI application ICON, here is you answer
 
Change ICON of MFC Application and Dialog[^]
  Permalink  
Comments
Member 9102753 at 20-Jun-12 1:00am
   
No actually like one button in the GUI the picture or image should be there permanently .it may be of 3cm x3cm size is good enough
Binu MD at 20-Jun-12 1:18am
   
then you can use a MFC picture control for loading image and you can set its size too. This link may be useful
 
http://www.functionx.com/visualc/controls/picture.htm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 540
1 Sergey Alexandrovich Kryukov 432
2 Yogesh Kumar Tyagi 384
3 Prakriti Goyal 280
4 Maciej Los 205
0 OriginalGriff 6,632
1 Sergey Alexandrovich Kryukov 5,404
2 Maciej Los 3,474
3 Peter Leow 3,299
4 DamithSL 2,495


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 20 Jun 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100